From 39f2d825fc3ed7eca617afce56042eed7c38cdd6 Mon Sep 17 00:00:00 2001 From: Clinton Stimpson Date: Mon, 30 Mar 2009 10:56:43 -0400 Subject: [PATCH] ENH: Add version info to about dialog, including Qt version. --- Source/QtDialog/CMakeSetupDialog.cxx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Source/QtDialog/CMakeSetupDialog.cxx b/Source/QtDialog/CMakeSetupDialog.cxx index c4047abca..36d99b7ff 100644 --- a/Source/QtDialog/CMakeSetupDialog.cxx +++ b/Source/QtDialog/CMakeSetupDialog.cxx @@ -37,6 +37,7 @@ #include "QCMakeCacheView.h" #include "AddCacheEntry.h" #include "FirstConfigure.h" +#include "cmVersion.h" QCMakeThread::QCMakeThread(QObject* p) : QThread(p), CMakeInstance(NULL) @@ -673,7 +674,12 @@ void CMakeSetupDialog::doDeleteCache() void CMakeSetupDialog::doAbout() { - QString msg = "CMake\nwww.cmake.org"; + QString msg = "CMake %1\n" + "Using Qt %2\n" + "www.cmake.org"; + + msg = msg.arg(cmVersion::GetCMakeVersion()); + msg = msg.arg(qVersion()); QDialog dialog; dialog.setWindowTitle(tr("About"));