diff --git a/src/plugins/qmlprofiler/localqmlprofilerrunner.cpp b/src/plugins/qmlprofiler/localqmlprofilerrunner.cpp index 9a7bcfa9385..114e92ca0f0 100644 --- a/src/plugins/qmlprofiler/localqmlprofilerrunner.cpp +++ b/src/plugins/qmlprofiler/localqmlprofilerrunner.cpp @@ -25,7 +25,6 @@ #include "localqmlprofilerrunner.h" #include "qmlprofilerplugin.h" -#include "qmlprofilerruncontrol.h" #include #include @@ -33,6 +32,7 @@ #include #include #include +#include #include #include @@ -65,16 +65,16 @@ Utils::Port LocalQmlProfilerRunner::findFreePort(QString &host) } LocalQmlProfilerRunner::LocalQmlProfilerRunner(const Configuration &configuration, - QmlProfilerRunControl *engine) : + Debugger::AnalyzerRunControl *engine) : QObject(engine), m_configuration(configuration) { connect(&m_launcher, &ApplicationLauncher::appendMessage, this, &LocalQmlProfilerRunner::appendMessage); connect(this, &LocalQmlProfilerRunner::stopped, - engine, &QmlProfilerRunControl::notifyRemoteFinished); + engine, &Debugger::AnalyzerRunControl::notifyRemoteFinished); connect(this, &LocalQmlProfilerRunner::appendMessage, - engine, &QmlProfilerRunControl::appendMessage); + engine, &Debugger::AnalyzerRunControl::appendMessage); connect(engine, &Debugger::AnalyzerRunControl::starting, this, &LocalQmlProfilerRunner::start); connect(engine, &RunControl::finished, diff --git a/src/plugins/qmlprofiler/localqmlprofilerrunner.h b/src/plugins/qmlprofiler/localqmlprofilerrunner.h index 757f09f8aee..4ad92b3e609 100644 --- a/src/plugins/qmlprofiler/localqmlprofilerrunner.h +++ b/src/plugins/qmlprofiler/localqmlprofilerrunner.h @@ -31,9 +31,12 @@ #include #include +namespace Debugger { +class AnalyzerRunControl; +} + namespace QmlProfiler { -class QmlProfilerRunControl; class QMLPROFILER_EXPORT LocalQmlProfilerRunner : public QObject { Q_OBJECT @@ -45,7 +48,8 @@ public: QString socket; }; - LocalQmlProfilerRunner(const Configuration &configuration, QmlProfilerRunControl *engine); + LocalQmlProfilerRunner(const Configuration &configuration, + Debugger::AnalyzerRunControl *engine); ~LocalQmlProfilerRunner(); static Utils::Port findFreePort(QString &host);