QmlProfiler: use dedicated classes to create run workers

Change-Id: I70d6b778ce6e4892260d4c826b708eadce6b4017
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2023-01-06 15:32:39 +01:00
parent 263c5e6b7c
commit ea41beb90a
6 changed files with 46 additions and 38 deletions

View File

@@ -29,10 +29,9 @@
using namespace Core;
using namespace ProjectExplorer;
namespace QmlProfiler {
namespace Internal {
namespace QmlProfiler::Internal {
static QString QmlServerUrl = "QmlServerUrl";
const QString QmlServerUrl = "QmlServerUrl";
//
// QmlProfilerRunControlPrivate
@@ -237,5 +236,21 @@ LocalQmlProfilerSupport::LocalQmlProfilerSupport(RunControl *runControl, const Q
});
}
} // namespace Internal
} // namespace QmlProfiler
// Factories
// The bits plugged in in remote setups.
QmlProfilerRunWorkerFactory::QmlProfilerRunWorkerFactory()
{
setProduct<QmlProfilerRunner>();
addSupportedRunMode(ProjectExplorer::Constants::QML_PROFILER_RUNNER);
}
// The full local profiler.
LocalQmlProfilerRunWorkerFactory::LocalQmlProfilerRunWorkerFactory()
{
setProduct<LocalQmlProfilerSupport>();
addSupportedRunMode(ProjectExplorer::Constants::QML_PROFILER_RUN_MODE);
addSupportedDeviceType(ProjectExplorer::Constants::DESKTOP_DEVICE_TYPE);
}
} // QmlProfiler::Internal