aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmlprofiler
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2019-08-28 08:55:28 +0200
committerhjk <hjk@qt.io>2019-08-30 11:13:51 +0000
commitcd3876fd1af94e117ddf6dc3fb6c38cfa05a420f (patch)
tree566f65a589ae058de17a8833f927747f92682788 /src/plugins/qmlprofiler
parent8b4344f2a295db6ba0aad42148e67c62009bab79 (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.cpp3
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);