diff options
author | Eike Ziller <eike.ziller@qt.io> | 2017-07-18 15:23:29 +0200 |
---|---|---|
committer | Eike Ziller <eike.ziller@qt.io> | 2017-07-18 15:23:29 +0200 |
commit | 361fdad3be3421496be4dab014a8bee369687387 (patch) | |
tree | 4412737d90b20953064b8f53817c014ddc9714c3 /src/plugins/qmlprofiler/qmlprofilerplugin.cpp | |
parent | 5e38bdbfd8bef6c3bdcede9fe0be11f34e9a0f7c (diff) | |
parent | 41ae823bda7cc1bad4b85861d9b0e3087c130e4a (diff) |
Merge remote-tracking branch 'origin/4.4'
Change-Id: I778acc044ac105a11054b314aecac5b1c2cfee6a
Diffstat (limited to 'src/plugins/qmlprofiler/qmlprofilerplugin.cpp')
-rw-r--r-- | src/plugins/qmlprofiler/qmlprofilerplugin.cpp | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/plugins/qmlprofiler/qmlprofilerplugin.cpp b/src/plugins/qmlprofiler/qmlprofilerplugin.cpp index 777a042fc1..ea89b6b6dc 100644 --- a/src/plugins/qmlprofiler/qmlprofilerplugin.cpp +++ b/src/plugins/qmlprofiler/qmlprofilerplugin.cpp @@ -76,16 +76,6 @@ namespace Internal { Q_GLOBAL_STATIC(QmlProfilerSettings, qmlProfilerGlobalSettings) - -class QmlProfilerRunControlFactory : public IRunControlFactory -{ -public: - IRunConfigurationAspect *createRunConfigurationAspect(RunConfiguration *rc) override - { - return new QmlProfilerRunConfigurationAspect(rc); - } -}; - bool QmlProfilerPlugin::initialize(const QStringList &arguments, QString *errorString) { Q_UNUSED(arguments) @@ -101,7 +91,8 @@ void QmlProfilerPlugin::extensionsInitialized() (void) new QmlProfilerTool(this); addAutoReleasedObject(new QmlProfilerOptionsPage); - addAutoReleasedObject(new QmlProfilerRunControlFactory); + + RunConfiguration::registerAspect<QmlProfilerRunConfigurationAspect>(); auto constraint = [](RunConfiguration *runConfiguration) { Target *target = runConfiguration ? runConfiguration->target() : nullptr; |