diff options
author | Jarek Kobus <[email protected]> | 2025-01-03 15:33:53 +0100 |
---|---|---|
committer | Jarek Kobus <[email protected]> | 2025-01-07 11:46:15 +0000 |
commit | da475f400dcf1cf309d0d1622f57b76a136db281 (patch) | |
tree | 10ec0f71271160c0061ab0d3f5ff7258a24972f0 /src/plugins/qmlprofiler/qmlprofilertool.cpp | |
parent | 49a66abf1f6afcf59df9376f656d6037fb234865 (diff) |
QmlProfiler: Simplify QmlProfilerRunner
Remove registerProfilerStateManager() and connect to
state manager's signal directly from the start() function.
Remove Q_OBJECT macro.
Change-Id: Id03486f077c81909fbe0889bb342ee7595631e9d
Reviewed-by: Ulf Hermann <[email protected]>
Reviewed-by: hjk <[email protected]>
Diffstat (limited to 'src/plugins/qmlprofiler/qmlprofilertool.cpp')
-rw-r--r-- | src/plugins/qmlprofiler/qmlprofilertool.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/plugins/qmlprofiler/qmlprofilertool.cpp b/src/plugins/qmlprofiler/qmlprofilertool.cpp index efc3fcd0641..810d373887f 100644 --- a/src/plugins/qmlprofiler/qmlprofilertool.cpp +++ b/src/plugins/qmlprofiler/qmlprofilertool.cpp @@ -178,7 +178,7 @@ QmlProfilerTool::QmlProfilerTool() d->m_clearButton->setIcon(Utils::Icons::CLEAN_TOOLBAR.icon()); d->m_clearButton->setToolTip(Tr::tr("Discard data")); - connect(d->m_clearButton, &QAbstractButton::clicked, [this](){ + connect(d->m_clearButton, &QAbstractButton::clicked, [this] { if (checkForUnsavedNotes()) clearData(); }); @@ -382,7 +382,6 @@ void QmlProfilerTool::finalizeRunControl(QmlProfilerRunner *runWorker) connect(d->m_stopAction, &QAction::triggered, runControl, &RunControl::initiateStop); updateRunActions(); - runWorker->registerProfilerStateManager(d->m_profilerState); // // Initialize m_projectFinder @@ -391,7 +390,7 @@ void QmlProfilerTool::finalizeRunControl(QmlProfilerRunner *runWorker) d->m_profilerModelManager->populateFileFinder(runControl->target()); connect(d->m_profilerConnections, &QmlProfilerClientManager::connectionFailed, - runWorker, [this, runWorker]() { + runWorker, [this, runWorker] { auto infoBox = new QMessageBox(ICore::dialogParent()); infoBox->setIcon(QMessageBox::Critical); infoBox->setWindowTitle(QGuiApplication::applicationDisplayName()); |