ProjectExplorer: Use a ISettingsAspect::setConfigWidgetCreator() setter

Closer to the usual pattern elsewhere.

Change-Id: Ieaed483bc7f61b63e5bde87a721f43c3e3d737aa
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2019-08-28 08:55:28 +02:00
parent 8b4344f2a2
commit cd3876fd1a
6 changed files with 25 additions and 18 deletions

View File

@@ -35,8 +35,9 @@ namespace QmlProfiler {
namespace Internal {
QmlProfilerSettings::QmlProfilerSettings()
: ProjectExplorer::ISettingsAspect([this] { return new QmlProfilerConfigWidget(this); })
{
setConfigWidgetCreator([this] { return new QmlProfilerConfigWidget(this); });
QVariantMap defaults;
defaults.insert(QLatin1String(Constants::FLUSH_INTERVAL), 1000);
defaults.insert(QLatin1String(Constants::FLUSH_ENABLED), false);