mirror of
https://github.com/Lime3DS/Lime3DS
synced 2024-12-27 01:22:37 -06:00
Shader Debugger: Remove useless signal
This commit is contained in:
parent
f77dfb3966
commit
2c98275b51
2 changed files with 2 additions and 10 deletions
|
@ -361,9 +361,6 @@ GraphicsVertexShaderWidget::GraphicsVertexShaderWidget(std::shared_ptr< Pica::De
|
||||||
|
|
||||||
cycle_index = new QSpinBox;
|
cycle_index = new QSpinBox;
|
||||||
|
|
||||||
connect(this, SIGNAL(SelectCommand(const QModelIndex&, QItemSelectionModel::SelectionFlags)),
|
|
||||||
binary_list->selectionModel(), SLOT(select(const QModelIndex&, QItemSelectionModel::SelectionFlags)));
|
|
||||||
|
|
||||||
connect(dump_shader, SIGNAL(clicked()), this, SLOT(DumpShader()));
|
connect(dump_shader, SIGNAL(clicked()), this, SLOT(DumpShader()));
|
||||||
|
|
||||||
connect(cycle_index, SIGNAL(valueChanged(int)), this, SLOT(OnCycleIndexChanged(int)));
|
connect(cycle_index, SIGNAL(valueChanged(int)), this, SLOT(OnCycleIndexChanged(int)));
|
||||||
|
@ -550,7 +547,7 @@ void GraphicsVertexShaderWidget::OnCycleIndexChanged(int index) {
|
||||||
instruction_description->setText(text);
|
instruction_description->setText(text);
|
||||||
|
|
||||||
// Scroll to current instruction
|
// Scroll to current instruction
|
||||||
const QModelIndex& instr_index = model->index(record.instruction_offset, 0);
|
QModelIndex instr_index = model->index(record.instruction_offset, 0);
|
||||||
emit SelectCommand(instr_index, QItemSelectionModel::ClearAndSelect | QItemSelectionModel::Rows);
|
binary_list->selectionModel()->select(instr_index, QItemSelectionModel::ClearAndSelect | QItemSelectionModel::Rows);
|
||||||
binary_list->scrollTo(instr_index, QAbstractItemView::EnsureVisible);
|
binary_list->scrollTo(instr_index, QAbstractItemView::EnsureVisible);
|
||||||
}
|
}
|
||||||
|
|
|
@ -60,11 +60,6 @@ private slots:
|
||||||
*/
|
*/
|
||||||
void Reload(bool replace_vertex_data = false, void* vertex_data = nullptr);
|
void Reload(bool replace_vertex_data = false, void* vertex_data = nullptr);
|
||||||
|
|
||||||
|
|
||||||
signals:
|
|
||||||
// Call this to change the current command selection in the disassembly view
|
|
||||||
void SelectCommand(const QModelIndex&, QItemSelectionModel::SelectionFlags);
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QLabel* instruction_description;
|
QLabel* instruction_description;
|
||||||
QTreeView* binary_list;
|
QTreeView* binary_list;
|
||||||
|
|
Loading…
Reference in a new issue