ENH: Add version info to about dialog, including Qt version.
This commit is contained in:
parent
3a34b35dec
commit
39f2d825fc
@ -37,6 +37,7 @@
|
|||||||
#include "QCMakeCacheView.h"
|
#include "QCMakeCacheView.h"
|
||||||
#include "AddCacheEntry.h"
|
#include "AddCacheEntry.h"
|
||||||
#include "FirstConfigure.h"
|
#include "FirstConfigure.h"
|
||||||
|
#include "cmVersion.h"
|
||||||
|
|
||||||
QCMakeThread::QCMakeThread(QObject* p)
|
QCMakeThread::QCMakeThread(QObject* p)
|
||||||
: QThread(p), CMakeInstance(NULL)
|
: QThread(p), CMakeInstance(NULL)
|
||||||
@ -673,7 +674,12 @@ void CMakeSetupDialog::doDeleteCache()
|
|||||||
|
|
||||||
void CMakeSetupDialog::doAbout()
|
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;
|
QDialog dialog;
|
||||||
dialog.setWindowTitle(tr("About"));
|
dialog.setWindowTitle(tr("About"));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user