[Cmake-commits] [cmake-commits] clinton committed CMakeSetup.cxx 1.23 1.24 CMakeSetupDialog.cxx 1.61 1.62

cmake-commits at cmake.org cmake-commits at cmake.org
Tue Sep 22 18:29:37 EDT 2009


Update of /cvsroot/CMake/CMake/Source/QtDialog
In directory public:/mounts/ram/cvs-serv10674

Modified Files:
	CMakeSetup.cxx CMakeSetupDialog.cxx 
Log Message:
fix issue 9346.  add binary directory to window title to make it easier to deal with multiple cmake-gui instances


Index: CMakeSetupDialog.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/QtDialog/CMakeSetupDialog.cxx,v
retrieving revision 1.61
retrieving revision 1.62
diff -C 2 -d -r1.61 -r1.62
*** CMakeSetupDialog.cxx	4 Sep 2009 20:43:06 -0000	1.61
--- CMakeSetupDialog.cxx	22 Sep 2009 22:29:35 -0000	1.62
***************
*** 63,66 ****
--- 63,70 ----
    : 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;
***************
*** 514,517 ****
--- 518,526 ----
  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();

Index: CMakeSetup.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/QtDialog/CMakeSetup.cxx,v
retrieving revision 1.23
retrieving revision 1.24
diff -C 2 -d -r1.23 -r1.24
*** CMakeSetup.cxx	14 Jul 2009 23:34:50 -0000	1.23
--- CMakeSetup.cxx	22 Sep 2009 22:29:35 -0000	1.24
***************
*** 152,158 ****
    
    CMakeSetupDialog dialog;
-   QString title = QString("CMake %1");
-   title = title.arg(cmVersion::GetCMakeVersion());
-   dialog.setWindowTitle(title);
    dialog.show();
   
--- 152,155 ----



More information about the Cmake-commits mailing list