ENH: Show version number in window title.
This commit is contained in:
parent
2564097e8c
commit
f1b334ca7a
|
@ -24,6 +24,7 @@
|
||||||
#include "cmDocumentation.h"
|
#include "cmDocumentation.h"
|
||||||
#include "cmSystemTools.h"
|
#include "cmSystemTools.h"
|
||||||
#include "cmake.h"
|
#include "cmake.h"
|
||||||
|
#include "cmVersion.h"
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
static const char * cmDocumentationName[][3] =
|
static const char * cmDocumentationName[][3] =
|
||||||
|
@ -106,7 +107,9 @@ int main(int argc, char** argv)
|
||||||
}
|
}
|
||||||
|
|
||||||
CMakeSetupDialog dialog;
|
CMakeSetupDialog dialog;
|
||||||
dialog.setWindowTitle(QApplication::applicationName());
|
QString title = QString("CMake %1");
|
||||||
|
title = title.arg(cmVersion::GetCMakeVersion().c_str());
|
||||||
|
dialog.setWindowTitle(title);
|
||||||
dialog.show();
|
dialog.show();
|
||||||
|
|
||||||
// for now: args support specifying build and/or source directory
|
// for now: args support specifying build and/or source directory
|
||||||
|
|
|
@ -550,7 +550,7 @@ void CMakeSetupDialog::doDeleteCache()
|
||||||
|
|
||||||
void CMakeSetupDialog::doAbout()
|
void CMakeSetupDialog::doAbout()
|
||||||
{
|
{
|
||||||
QString msg = QApplication::applicationName() + "\nwww.cmake.org";
|
QString msg = "CMake\nwww.cmake.org";
|
||||||
|
|
||||||
QDialog dialog;
|
QDialog dialog;
|
||||||
dialog.setWindowTitle(tr("About"));
|
dialog.setWindowTitle(tr("About"));
|
||||||
|
|
Loading…
Reference in New Issue