[cmake-commits] clinton committed CMakeSetup.cxx 1.10 1.11 CMakeSetupDialog.cxx 1.29 1.30

cmake-commits at cmake.org cmake-commits at cmake.org
Fri Feb 1 11:48:02 EST 2008


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

Modified Files:
	CMakeSetup.cxx CMakeSetupDialog.cxx 
Log Message:
ENH:  Show version number in window title.


Index: CMakeSetupDialog.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/QtDialog/CMakeSetupDialog.cxx,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -d -r1.29 -r1.30
--- CMakeSetupDialog.cxx	1 Feb 2008 15:41:29 -0000	1.29
+++ CMakeSetupDialog.cxx	1 Feb 2008 16:48:00 -0000	1.30
@@ -550,7 +550,7 @@
 
 void CMakeSetupDialog::doAbout()
 {
-  QString msg = QApplication::applicationName() + "\nwww.cmake.org";
+  QString msg = "CMake\nwww.cmake.org";
 
   QDialog dialog;
   dialog.setWindowTitle(tr("About"));

Index: CMakeSetup.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/QtDialog/CMakeSetup.cxx,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- CMakeSetup.cxx	1 Feb 2008 15:41:29 -0000	1.10
+++ CMakeSetup.cxx	1 Feb 2008 16:48:00 -0000	1.11
@@ -24,6 +24,7 @@
 #include "cmDocumentation.h"
 #include "cmSystemTools.h"
 #include "cmake.h"
+#include "cmVersion.h"
 
 //----------------------------------------------------------------------------
 static const char * cmDocumentationName[][3] =
@@ -106,7 +107,9 @@
     }
 
   CMakeSetupDialog dialog;
-  dialog.setWindowTitle(QApplication::applicationName());
+  QString title = QString("CMake %1");
+  title = title.arg(cmVersion::GetCMakeVersion().c_str());
+  dialog.setWindowTitle(title);
   dialog.show();
  
   // for now: args support specifying build and/or source directory 



More information about the Cmake-commits mailing list