ProjectExplorer: Remove direct runconfig dependency from ISettingsAspect

Change-Id: I5d8a6a31f6bf97c34163b64b8d37f9ea070717ba
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
This commit is contained in:
hjk
2018-09-10 15:39:27 +02:00
parent 02d8dde4c9
commit 69753cf9b6
12 changed files with 29 additions and 53 deletions

View File

@@ -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;