mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-24 13:55:26 +00:00
Switch to registerChanged from seekChanged where possible
Some widgets would constantly refresh when moving around, making the interface very laggy
This commit is contained in:
parent
0b849bc05e
commit
2fb59b26ad
@ -30,7 +30,7 @@ BacktraceWidget::BacktraceWidget(MainWindow *main, QAction *action) :
|
|||||||
});
|
});
|
||||||
|
|
||||||
connect(Core(), &CutterCore::refreshAll, this, &BacktraceWidget::updateContents);
|
connect(Core(), &CutterCore::refreshAll, this, &BacktraceWidget::updateContents);
|
||||||
connect(Core(), &CutterCore::seekChanged, this, &BacktraceWidget::updateContents);
|
connect(Core(), &CutterCore::registersChanged, this, &BacktraceWidget::updateContents);
|
||||||
connect(Config(), &Configuration::fontsUpdated, this, &BacktraceWidget::fontsUpdatedSlot);
|
connect(Config(), &Configuration::fontsUpdated, this, &BacktraceWidget::fontsUpdatedSlot);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -56,7 +56,7 @@ ProcessesWidget::ProcessesWidget(MainWindow *main, QAction *action) :
|
|||||||
connect(ui->quickFilterView, &QuickFilterView::filterTextChanged, modelFilter,
|
connect(ui->quickFilterView, &QuickFilterView::filterTextChanged, modelFilter,
|
||||||
&ProcessesFilterModel::setFilterWildcard);
|
&ProcessesFilterModel::setFilterWildcard);
|
||||||
connect(Core(), &CutterCore::refreshAll, this, &ProcessesWidget::updateContents);
|
connect(Core(), &CutterCore::refreshAll, this, &ProcessesWidget::updateContents);
|
||||||
connect(Core(), &CutterCore::seekChanged, this, &ProcessesWidget::updateContents);
|
connect(Core(), &CutterCore::registersChanged, this, &ProcessesWidget::updateContents);
|
||||||
connect(Core(), &CutterCore::debugTaskStateChanged, this, &ProcessesWidget::updateContents);
|
connect(Core(), &CutterCore::debugTaskStateChanged, this, &ProcessesWidget::updateContents);
|
||||||
// Seek doesn't necessarily change when switching processes
|
// Seek doesn't necessarily change when switching processes
|
||||||
connect(Core(), &CutterCore::switchedProcess, this, &ProcessesWidget::updateContents);
|
connect(Core(), &CutterCore::switchedProcess, this, &ProcessesWidget::updateContents);
|
||||||
|
@ -37,7 +37,7 @@ StackWidget::StackWidget(MainWindow *main, QAction *action) :
|
|||||||
});
|
});
|
||||||
|
|
||||||
connect(Core(), &CutterCore::refreshAll, this, &StackWidget::updateContents);
|
connect(Core(), &CutterCore::refreshAll, this, &StackWidget::updateContents);
|
||||||
connect(Core(), &CutterCore::seekChanged, this, &StackWidget::updateContents);
|
connect(Core(), &CutterCore::registersChanged, this, &StackWidget::updateContents);
|
||||||
connect(Core(), &CutterCore::stackChanged, this, &StackWidget::updateContents);
|
connect(Core(), &CutterCore::stackChanged, this, &StackWidget::updateContents);
|
||||||
connect(Config(), &Configuration::fontsUpdated, this, &StackWidget::fontsUpdatedSlot);
|
connect(Config(), &Configuration::fontsUpdated, this, &StackWidget::fontsUpdatedSlot);
|
||||||
connect(viewStack, SIGNAL(doubleClicked(const QModelIndex &)), this,
|
connect(viewStack, SIGNAL(doubleClicked(const QModelIndex &)), this,
|
||||||
|
@ -54,7 +54,7 @@ ThreadsWidget::ThreadsWidget(MainWindow *main, QAction *action) :
|
|||||||
connect(ui->quickFilterView, &QuickFilterView::filterTextChanged, modelFilter,
|
connect(ui->quickFilterView, &QuickFilterView::filterTextChanged, modelFilter,
|
||||||
&ThreadsFilterModel::setFilterWildcard);
|
&ThreadsFilterModel::setFilterWildcard);
|
||||||
connect(Core(), &CutterCore::refreshAll, this, &ThreadsWidget::updateContents);
|
connect(Core(), &CutterCore::refreshAll, this, &ThreadsWidget::updateContents);
|
||||||
connect(Core(), &CutterCore::seekChanged, this, &ThreadsWidget::updateContents);
|
connect(Core(), &CutterCore::registersChanged, this, &ThreadsWidget::updateContents);
|
||||||
connect(Core(), &CutterCore::debugTaskStateChanged, this, &ThreadsWidget::updateContents);
|
connect(Core(), &CutterCore::debugTaskStateChanged, this, &ThreadsWidget::updateContents);
|
||||||
// Seek doesn't necessarily change when switching threads/processes
|
// Seek doesn't necessarily change when switching threads/processes
|
||||||
connect(Core(), &CutterCore::switchedThread, this, &ThreadsWidget::updateContents);
|
connect(Core(), &CutterCore::switchedThread, this, &ThreadsWidget::updateContents);
|
||||||
|
Loading…
Reference in New Issue
Block a user