forked from qt-creator/qt-creator
Create RunConfiguration specific QmlProfilerWorkerFactories
Instead of relying on the QmlProfilerRunWorkerFactory to match for all RunConfiguration, every plugin needs to create a WorkerFactory for its own RunConfiguration. Similar to the SimpleTargetRunnerFactory there is now a SimpleQmlProfilerRunnerFactory which makes the setup easy. Change-Id: I504ca5afe232cb4e3aa0bb0b67271637a7e7a9d0 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -255,9 +255,13 @@ class LocalQmlProfilerRunWorkerFactory final : public RunWorkerFactory
|
||||
public:
|
||||
LocalQmlProfilerRunWorkerFactory()
|
||||
{
|
||||
setId(ProjectExplorer::Constants::QML_PROFILER_RUN_FACTORY);
|
||||
setProduct<LocalQmlProfilerSupport>();
|
||||
addSupportedRunMode(ProjectExplorer::Constants::QML_PROFILER_RUN_MODE);
|
||||
addSupportedDeviceType(ProjectExplorer::Constants::DESKTOP_DEVICE_TYPE);
|
||||
addSupportedRunConfig(ProjectExplorer::Constants::QMAKE_RUNCONFIG_ID);
|
||||
addSupportedRunConfig(ProjectExplorer::Constants::QBS_RUNCONFIG_ID);
|
||||
addSupportedRunConfig(ProjectExplorer::Constants::CMAKE_RUNCONFIG_ID);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user