diff options
author | hjk <hjk@qt.io> | 2019-08-28 08:55:28 +0200 |
---|---|---|
committer | hjk <hjk@qt.io> | 2019-08-30 11:13:51 +0000 |
commit | cd3876fd1af94e117ddf6dc3fb6c38cfa05a420f (patch) | |
tree | 566f65a589ae058de17a8833f927747f92682788 /src/plugins/qmlprofiler | |
parent | 8b4344f2a295db6ba0aad42148e67c62009bab79 (diff) |
ProjectExplorer: Use a ISettingsAspect::setConfigWidgetCreator() setter
Closer to the usual pattern elsewhere.
Change-Id: Ieaed483bc7f61b63e5bde87a721f43c3e3d737aa
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/qmlprofiler')
-rw-r--r-- | src/plugins/qmlprofiler/qmlprofilersettings.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/qmlprofiler/qmlprofilersettings.cpp b/src/plugins/qmlprofiler/qmlprofilersettings.cpp index 11b2c99d9f..ded460bead 100644 --- a/src/plugins/qmlprofiler/qmlprofilersettings.cpp +++ b/src/plugins/qmlprofiler/qmlprofilersettings.cpp @@ -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); |