diff options
author | dt <qtc-committer@nokia.com> | 2009-12-03 19:45:09 +0100 |
---|---|---|
committer | dt <qtc-committer@nokia.com> | 2009-12-07 15:00:17 +0100 |
commit | 24a4590767cba0da6d372093a7cd777dd021bc88 (patch) | |
tree | c90e9ee1cf28485af2457b77bf1afb783e735639 /src/plugins/cmakeprojectmanager/cmakerunconfiguration.cpp | |
parent | 1e46cb424e05a8be9909b13b2031625b691839ec (diff) | |
download | qt-creator-24a4590767cba0da6d372093a7cd777dd021bc88.tar.gz |
Cmake: Let the generator determine the toolchain
Otherwise we need to parse the cbp file, which happens only if the
buildconfiguration gets active. Also try to decouple a few internals a
little bit by using signals. The CMakeProject still handles a few things
directly instead of via signals, more to come eventually.
Diffstat (limited to 'src/plugins/cmakeprojectmanager/cmakerunconfiguration.cpp')
-rw-r--r-- | src/plugins/cmakeprojectmanager/cmakerunconfiguration.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/plugins/cmakeprojectmanager/cmakerunconfiguration.cpp b/src/plugins/cmakeprojectmanager/cmakerunconfiguration.cpp index 30d6f0f322..0933ae548c 100644 --- a/src/plugins/cmakeprojectmanager/cmakerunconfiguration.cpp +++ b/src/plugins/cmakeprojectmanager/cmakerunconfiguration.cpp @@ -56,12 +56,8 @@ CMakeRunConfiguration::CMakeRunConfiguration(CMakeProject *pro, const QString &t { setName(title); - connect(pro, SIGNAL(activeBuildConfigurationChanged()), + connect(pro, SIGNAL(environmentChanged()), this, SIGNAL(baseEnvironmentChanged())); - - // TODO -// connect(pro, SIGNAL(environmentChanged(ProjectExplorer::BuildConfiguration *)), -// this, SIGNAL(baseEnvironmentChanged())); } CMakeRunConfiguration::~CMakeRunConfiguration() @@ -317,8 +313,8 @@ CMakeRunConfigurationWidget::CMakeRunConfigurationWidget(CMakeRunConfiguration * connect(resetButton, SIGNAL(clicked()), this, SLOT(resetWorkingDirectory())); - connect(m_environmentWidget, SIGNAL(userChangesUpdated()), - this, SLOT(userChangesUpdated())); + connect(m_environmentWidget, SIGNAL(userChangesChanged()), + this, SLOT(userChangesChanged())); connect(m_cmakeRunConfiguration, SIGNAL(workingDirectoryChanged(QString)), this, SLOT(workingDirectoryChanged(QString))); @@ -351,7 +347,7 @@ void CMakeRunConfigurationWidget::resetWorkingDirectory() m_cmakeRunConfiguration->setUserWorkingDirectory(""); } -void CMakeRunConfigurationWidget::userChangesUpdated() +void CMakeRunConfigurationWidget::userChangesChanged() { m_cmakeRunConfiguration->setUserEnvironmentChanges(m_environmentWidget->userChanges()); } |