From f1b334ca7ade2867dcb94dc9c012dfc7b4039341 Mon Sep 17 00:00:00 2001 From: Clinton Stimpson Date: Fri, 1 Feb 2008 11:48:00 -0500 Subject: [PATCH] ENH: Show version number in window title. --- Source/QtDialog/CMakeSetup.cxx | 5 ++++- Source/QtDialog/CMakeSetupDialog.cxx | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Source/QtDialog/CMakeSetup.cxx b/Source/QtDialog/CMakeSetup.cxx index 255b7573f..e79f3ed40 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 diff --git a/Source/QtDialog/CMakeSetupDialog.cxx b/Source/QtDialog/CMakeSetupDialog.cxx index 04a4dc74c..bd696c885 100644 --- a/Source/QtDialog/CMakeSetupDialog.cxx +++ b/Source/QtDialog/CMakeSetupDialog.cxx @@ -550,7 +550,7 @@ void CMakeSetupDialog::doDeleteCache() void CMakeSetupDialog::doAbout() { - QString msg = QApplication::applicationName() + "\nwww.cmake.org"; + QString msg = "CMake\nwww.cmake.org"; QDialog dialog; dialog.setWindowTitle(tr("About"));