diff options
author | Clinton Stimpson <clinton@elemtech.com> | 2009-09-22 22:29:35 (GMT) |
---|---|---|
committer | Clinton Stimpson <clinton@elemtech.com> | 2009-09-22 22:29:35 (GMT) |
commit | ecfca5d0a87f7558fa5030386a51448477e1fb46 (patch) | |
tree | 11822d0206daca777c31bb6a856d6d042fc44d12 /Source/QtDialog | |
parent | 694338d56615df7e4eb417ba5ee15d566b8c7f88 (diff) | |
download | CMake-ecfca5d0a87f7558fa5030386a51448477e1fb46.zip CMake-ecfca5d0a87f7558fa5030386a51448477e1fb46.tar.gz CMake-ecfca5d0a87f7558fa5030386a51448477e1fb46.tar.bz2 |
fix issue 9346. add binary directory to window title to make it easier to deal with multiple cmake-gui instances
Diffstat (limited to 'Source/QtDialog')
-rw-r--r-- | Source/QtDialog/CMakeSetup.cxx | 3 | ||||
-rw-r--r-- | Source/QtDialog/CMakeSetupDialog.cxx | 9 |
2 files changed, 9 insertions, 3 deletions
diff --git a/Source/QtDialog/CMakeSetup.cxx b/Source/QtDialog/CMakeSetup.cxx index 756e2c8..4dd33c9 100644 --- a/Source/QtDialog/CMakeSetup.cxx +++ b/Source/QtDialog/CMakeSetup.cxx @@ -151,9 +151,6 @@ int main(int argc, char** argv) app.setWindowIcon(QIcon(":/Icons/CMakeSetup.png")); CMakeSetupDialog dialog; - QString title = QString("CMake %1"); - title = title.arg(cmVersion::GetCMakeVersion()); - dialog.setWindowTitle(title); dialog.show(); cmsys::CommandLineArguments arg; diff --git a/Source/QtDialog/CMakeSetupDialog.cxx b/Source/QtDialog/CMakeSetupDialog.cxx index 552f84e..d0d0aa8 100644 --- a/Source/QtDialog/CMakeSetupDialog.cxx +++ b/Source/QtDialog/CMakeSetupDialog.cxx @@ -62,6 +62,10 @@ void QCMakeThread::run() CMakeSetupDialog::CMakeSetupDialog() : ExitAfterGenerate(true), CacheModified(false), CurrentState(Interrupting) { + QString title = QString(tr("CMake %1")); + title = title.arg(cmVersion::GetCMakeVersion()); + this->setWindowTitle(title); + // create the GUI QSettings settings; settings.beginGroup("Settings/StartPath"); @@ -513,6 +517,11 @@ void CMakeSetupDialog::onSourceDirectoryChanged(const QString& dir) void CMakeSetupDialog::onBinaryDirectoryChanged(const QString& dir) { + QString title = QString(tr("CMake %1 - %2")); + title = title.arg(cmVersion::GetCMakeVersion()); + title = title.arg(dir); + this->setWindowTitle(title); + this->CacheModified = false; this->CacheValues->cacheModel()->clear(); qobject_cast<QCMakeCacheModelDelegate*>(this->CacheValues->itemDelegate())->clearChanges(); |