Commit 241f36f8 authored by Daniel Teske's avatar Daniel Teske
Browse files

BuildConfiugration: Rename subConfigWidgets to createSubConfigWidgets



Indicating that new widgets are indeed created.

Change-Id: Iccc5e1e99f536fdfb0718f252a23f498053ad3a3
Reviewed-by: default avatarTobias Hunger <tobias.hunger@digia.com>
parent 613f3345
......@@ -70,12 +70,6 @@ BuildConfigWidget *AutotoolsBuildConfiguration::createConfigWidget()
return new AutotoolsBuildSettingsWidget;
}
QList<BuildConfigWidget *> AutotoolsBuildConfiguration::subConfigWidgets()
{
return QList<BuildConfigWidget *>() << new ProjectExplorer::BuildEnvironmentWidget;
}
AutotoolsBuildConfiguration::AutotoolsBuildConfiguration(ProjectExplorer::Target *parent, const Core::Id id)
: BuildConfiguration(parent, id)
{
......
......@@ -117,7 +117,7 @@ BuildConfiguration::~BuildConfiguration()
delete m_macroExpander;
}
QList<BuildConfigWidget*> BuildConfiguration::subConfigWidgets()
QList<BuildConfigWidget*> BuildConfiguration::createSubConfigWidgets()
{
return QList<BuildConfigWidget *>() << new ProjectExplorer::BuildEnvironmentWidget;
}
......
......@@ -61,7 +61,7 @@ public:
virtual QString buildDirectory() const = 0;
virtual BuildConfigWidget *createConfigWidget() = 0;
virtual QList<BuildConfigWidget*> subConfigWidgets();
virtual QList<BuildConfigWidget*> createSubConfigWidgets();
// Maybe the BuildConfiguration is not the best place for the environment
Utils::Environment baseEnvironment() const;
......
......@@ -242,7 +242,7 @@ void BuildSettingsWidget::updateBuildSettings()
addSubWidget(new BuildStepsPage(m_target, Core::Id(Constants::BUILDSTEPS_BUILD)));
addSubWidget(new BuildStepsPage(m_target, Core::Id(Constants::BUILDSTEPS_CLEAN)));
QList<BuildConfigWidget *> subConfigWidgets = m_buildConfiguration->subConfigWidgets();
QList<BuildConfigWidget *> subConfigWidgets = m_buildConfiguration->createSubConfigWidgets();
foreach (BuildConfigWidget *subConfigWidget, subConfigWidgets)
addSubWidget(subConfigWidget);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment