From 13e14588040afa864c4791d1ef297a27372a2039 Mon Sep 17 00:00:00 2001 From: alve Date: Fri, 13 Oct 2006 21:45:31 +0000 Subject: [PATCH] added display of subversion revision in about dialog (can be switched off for release by uncommenting it in mmapper2.pro) git-svn-id: svn://svn.code.sf.net/p/mmapper/code/trunk/mmapper@98 14c008a5-6e10-0410-bf79-c100e0f1932b --- src/mainwindow/mainwindow.cpp | 9 +++++++-- src/mmapper2.pro | 2 ++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/mainwindow/mainwindow.cpp b/src/mainwindow/mainwindow.cpp index 937f12568..c76638b4a 100644 --- a/src/mainwindow/mainwindow.cpp +++ b/src/mainwindow/mainwindow.cpp @@ -843,8 +843,13 @@ bool MainWindow::saveAs() void MainWindow::about() { - QMessageBox::about(this, tr("About MMapper2 v 2.0.2"), - tr("The MMapper2 application is specially designed " +#ifdef SVN_REVISION +QString version = tr("MMapper2 Subversion Revision ") + QString::number(SVN_REVISION) + tr("

"); +#else +QString version = tr("MMapper2 Release 2.0.2

"); +#endif + QMessageBox::about(this, tr("About MMapper2"), version + + tr("The MMapper2 application is specially designed " "for MUME (fire.pvv.org:4242)

" "Author: Caligor (krejza@gmail.com)

" "Special thanks to:
" diff --git a/src/mmapper2.pro b/src/mmapper2.pro index e2cb141d2..c64a9a079 100644 --- a/src/mmapper2.pro +++ b/src/mmapper2.pro @@ -126,7 +126,9 @@ SOURCES += main.cpp \ ./mapstorage/abstractmapstorage.cpp \ ./mapstorage/mapstorage.cpp \ ./mapstorage/oldconnection.cpp + TARGET = mmapper2 +DEFINES += SVN_REVISION=$$system("svn info | grep Revision | sed s/Revision:\ //") RESOURCES += resources/mmapper2.qrc TEMPLATE = app DEPENDPATH += .