forked from qt-creator/qt-creator
Use function objects for IRunConfigurationAspect::createConfigurationWidget
Change-Id: Ief70ed8fc2731ad21b00c74407ff4b659d705caf Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
@@ -43,6 +43,7 @@ QmlProfilerRunConfigurationAspect::QmlProfilerRunConfigurationAspect(
|
||||
setDisplayName(QCoreApplication::translate("QmlProfilerRunConfiguration", "QML Profiler Settings"));
|
||||
setUsingGlobalSettings(true);
|
||||
resetProjectToGlobalSettings();
|
||||
setRunConfigWidgetCreator([this] { return new Debugger::AnalyzerRunConfigWidget(this); });
|
||||
}
|
||||
|
||||
ProjectExplorer::IRunConfigurationAspect *QmlProfilerRunConfigurationAspect::create(
|
||||
@@ -51,10 +52,5 @@ ProjectExplorer::IRunConfigurationAspect *QmlProfilerRunConfigurationAspect::cre
|
||||
return new QmlProfilerRunConfigurationAspect(runConfig);
|
||||
}
|
||||
|
||||
ProjectExplorer::RunConfigWidget *QmlProfilerRunConfigurationAspect::createConfigurationWidget()
|
||||
{
|
||||
return new Debugger::AnalyzerRunConfigWidget(this);
|
||||
}
|
||||
|
||||
} // Internal
|
||||
} // QmlProfiler
|
||||
|
||||
Reference in New Issue
Block a user