forked from qt-creator/qt-creator
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user