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:
yossizap 2019-12-20 12:15:04 +00:00 committed by Florian Märkl
parent 0b849bc05e
commit 2fb59b26ad
4 changed files with 4 additions and 4 deletions

View File

@ -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);
} }

View File

@ -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);

View File

@ -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,

View File

@ -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);