summaryrefslogtreecommitdiffstats
path: root/Source/QtDialog/CMakeSetup.cxx
diff options
context:
space:
mode:
authorClinton Stimpson <clinton@elemtech.com>2008-02-01 16:48:00 (GMT)
committerClinton Stimpson <clinton@elemtech.com>2008-02-01 16:48:00 (GMT)
commitf1b334ca7ade2867dcb94dc9c012dfc7b4039341 (patch)
tree729c8366d85cda2db47b27e0283500fd7da82e6f /Source/QtDialog/CMakeSetup.cxx
parent2564097e8c5b394b76d382e0a817555829edbadf (diff)
downloadCMake-f1b334ca7ade2867dcb94dc9c012dfc7b4039341.zip
CMake-f1b334ca7ade2867dcb94dc9c012dfc7b4039341.tar.gz
CMake-f1b334ca7ade2867dcb94dc9c012dfc7b4039341.tar.bz2
ENH: Show version number in window title.
Diffstat (limited to 'Source/QtDialog/CMakeSetup.cxx')
-rw-r--r--Source/QtDialog/CMakeSetup.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/QtDialog/CMakeSetup.cxx b/Source/QtDialog/CMakeSetup.cxx
index 255b757..e79f3ed 100644
--- a/Source/QtDialog/CMakeSetup.cxx
+++ b/Source/QtDialog/CMakeSetup.cxx
@@ -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 @@ int main(int argc, char** argv)
}
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