diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/citra_qt/debugger/graphics_vertex_shader.cpp | 7 | ||||
| -rw-r--r-- | src/citra_qt/debugger/graphics_vertex_shader.h | 5 |
2 files changed, 2 insertions, 10 deletions
diff --git a/src/citra_qt/debugger/graphics_vertex_shader.cpp b/src/citra_qt/debugger/graphics_vertex_shader.cpp index 831ead51a..64a3569d4 100644 --- a/src/citra_qt/debugger/graphics_vertex_shader.cpp +++ b/src/citra_qt/debugger/graphics_vertex_shader.cpp | |||
| @@ -361,9 +361,6 @@ GraphicsVertexShaderWidget::GraphicsVertexShaderWidget(std::shared_ptr< Pica::De | |||
| 361 | 361 | ||
| 362 | cycle_index = new QSpinBox; | 362 | cycle_index = new QSpinBox; |
| 363 | 363 | ||
| 364 | connect(this, SIGNAL(SelectCommand(const QModelIndex&, QItemSelectionModel::SelectionFlags)), | ||
| 365 | binary_list->selectionModel(), SLOT(select(const QModelIndex&, QItemSelectionModel::SelectionFlags))); | ||
| 366 | |||
| 367 | connect(dump_shader, SIGNAL(clicked()), this, SLOT(DumpShader())); | 364 | connect(dump_shader, SIGNAL(clicked()), this, SLOT(DumpShader())); |
| 368 | 365 | ||
| 369 | connect(cycle_index, SIGNAL(valueChanged(int)), this, SLOT(OnCycleIndexChanged(int))); | 366 | connect(cycle_index, SIGNAL(valueChanged(int)), this, SLOT(OnCycleIndexChanged(int))); |
| @@ -550,7 +547,7 @@ void GraphicsVertexShaderWidget::OnCycleIndexChanged(int index) { | |||
| 550 | instruction_description->setText(text); | 547 | instruction_description->setText(text); |
| 551 | 548 | ||
| 552 | // Scroll to current instruction | 549 | // Scroll to current instruction |
| 553 | const QModelIndex& instr_index = model->index(record.instruction_offset, 0); | 550 | QModelIndex instr_index = model->index(record.instruction_offset, 0); |
| 554 | emit SelectCommand(instr_index, QItemSelectionModel::ClearAndSelect | QItemSelectionModel::Rows); | 551 | binary_list->selectionModel()->select(instr_index, QItemSelectionModel::ClearAndSelect | QItemSelectionModel::Rows); |
| 555 | binary_list->scrollTo(instr_index, QAbstractItemView::EnsureVisible); | 552 | binary_list->scrollTo(instr_index, QAbstractItemView::EnsureVisible); |
| 556 | } | 553 | } |
diff --git a/src/citra_qt/debugger/graphics_vertex_shader.h b/src/citra_qt/debugger/graphics_vertex_shader.h index d4e93103f..0bf1652fc 100644 --- a/src/citra_qt/debugger/graphics_vertex_shader.h +++ b/src/citra_qt/debugger/graphics_vertex_shader.h | |||
| @@ -60,11 +60,6 @@ private slots: | |||
| 60 | */ | 60 | */ |
| 61 | void Reload(bool replace_vertex_data = false, void* vertex_data = nullptr); | 61 | void Reload(bool replace_vertex_data = false, void* vertex_data = nullptr); |
| 62 | 62 | ||
| 63 | |||
| 64 | signals: | ||
| 65 | // Call this to change the current command selection in the disassembly view | ||
| 66 | void SelectCommand(const QModelIndex&, QItemSelectionModel::SelectionFlags); | ||
| 67 | |||
| 68 | private: | 63 | private: |
| 69 | QLabel* instruction_description; | 64 | QLabel* instruction_description; |
| 70 | QTreeView* binary_list; | 65 | QTreeView* binary_list; |