diff options
author | hjk <hjk@qt.io> | 2018-09-10 15:39:27 +0200 |
---|---|---|
committer | hjk <hjk@qt.io> | 2018-09-11 07:51:11 +0000 |
commit | 69753cf9b60ec480d71654329daeb320d144f03b (patch) | |
tree | b848323cdfe18e89114b5cdfcbbea980edbefea0 /src/plugins/qmlprofiler/qmlprofilersettings.cpp | |
parent | 02d8dde4c971b7a7afc4a0dd562bf4b85645f689 (diff) |
ProjectExplorer: Remove direct runconfig dependency from ISettingsAspect
Change-Id: I5d8a6a31f6bf97c34163b64b8d37f9ea070717ba
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/plugins/qmlprofiler/qmlprofilersettings.cpp')
-rw-r--r-- | src/plugins/qmlprofiler/qmlprofilersettings.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/plugins/qmlprofiler/qmlprofilersettings.cpp b/src/plugins/qmlprofiler/qmlprofilersettings.cpp index 1a6bdc63dde..11b2c99d9ff 100644 --- a/src/plugins/qmlprofiler/qmlprofilersettings.cpp +++ b/src/plugins/qmlprofiler/qmlprofilersettings.cpp @@ -34,8 +34,8 @@ namespace QmlProfiler { namespace Internal { -QmlProfilerSettings::QmlProfilerSettings(ProjectExplorer::RunConfiguration *runConfiguration) : - ProjectExplorer::ISettingsAspect(runConfiguration) +QmlProfilerSettings::QmlProfilerSettings() + : ProjectExplorer::ISettingsAspect([this] { return new QmlProfilerConfigWidget(this); }) { QVariantMap defaults; defaults.insert(QLatin1String(Constants::FLUSH_INTERVAL), 1000); @@ -54,11 +54,6 @@ QmlProfilerSettings::QmlProfilerSettings(ProjectExplorer::RunConfiguration *runC fromMap(map); } -QWidget *QmlProfilerSettings::createConfigWidget(QWidget *parent) -{ - return new Internal::QmlProfilerConfigWidget(this, parent); -} - bool QmlProfilerSettings::flushEnabled() const { return m_flushEnabled; |