diff options
author | Daniel Teske <daniel.teske@digia.com> | 2012-11-08 17:35:59 +0100 |
---|---|---|
committer | Daniel Teske <daniel.teske@digia.com> | 2012-11-16 14:43:09 +0100 |
commit | b5bbdb38d90e9f0b2049442ad69fc61ad4e74055 (patch) | |
tree | 3f5313b4464eb1c4a6e7a4dbf586ddd800ecc2f5 /src/plugins/autotoolsprojectmanager/autotoolsbuildsettingswidget.cpp | |
parent | 8cbafa83b677c5fab089cd68f94828c549d76573 (diff) | |
download | qt-creator-b5bbdb38d90e9f0b2049442ad69fc61ad4e74055.tar.gz |
Remove BuildConfigWidget::init()
It no longer serves a purpose.
Change-Id: Icdcb69c87112e295cefd4975dfa2b3d65818365a
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
Diffstat (limited to 'src/plugins/autotoolsprojectmanager/autotoolsbuildsettingswidget.cpp')
-rw-r--r-- | src/plugins/autotoolsprojectmanager/autotoolsbuildsettingswidget.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/plugins/autotoolsprojectmanager/autotoolsbuildsettingswidget.cpp b/src/plugins/autotoolsprojectmanager/autotoolsbuildsettingswidget.cpp index fa7c262e04..3d106a0614 100644 --- a/src/plugins/autotoolsprojectmanager/autotoolsbuildsettingswidget.cpp +++ b/src/plugins/autotoolsprojectmanager/autotoolsbuildsettingswidget.cpp @@ -49,7 +49,7 @@ using namespace AutotoolsProjectManager; using namespace AutotoolsProjectManager::Internal; using namespace ProjectExplorer; -AutotoolsBuildSettingsWidget::AutotoolsBuildSettingsWidget() : +AutotoolsBuildSettingsWidget::AutotoolsBuildSettingsWidget(AutotoolsBuildConfiguration *bc) : m_buildConfiguration(0) { QFormLayout *fl = new QFormLayout(this); @@ -61,6 +61,9 @@ AutotoolsBuildSettingsWidget::AutotoolsBuildSettingsWidget() : m_pathChooser->setExpectedKind(Utils::PathChooser::Directory); fl->addRow(tr("Build directory:"), m_pathChooser); connect(m_pathChooser, SIGNAL(changed(QString)), this, SLOT(buildDirectoryChanged())); + + m_pathChooser->setBaseDirectory(bc->target()->project()->projectDirectory()); + m_pathChooser->setPath(m_buildConfiguration->buildDirectory()); } QString AutotoolsBuildSettingsWidget::displayName() const @@ -68,13 +71,6 @@ QString AutotoolsBuildSettingsWidget::displayName() const return QLatin1String("Autotools Manager"); } -void AutotoolsBuildSettingsWidget::init(BuildConfiguration *bc) -{ - m_buildConfiguration = static_cast<AutotoolsBuildConfiguration *>(bc); - m_pathChooser->setBaseDirectory(bc->target()->project()->projectDirectory()); - m_pathChooser->setPath(m_buildConfiguration->buildDirectory()); -} - void AutotoolsBuildSettingsWidget::buildDirectoryChanged() { m_buildConfiguration->setBuildDirectory(m_pathChooser->rawPath()); |