Skip to content

Commit

Permalink
added display of subversion revision in about dialog (can be switched…
Browse files Browse the repository at this point in the history
… 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
  • Loading branch information
alve committed Oct 13, 2006
1 parent 1694c7b commit 13e1458
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/mainwindow/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -843,8 +843,13 @@ bool MainWindow::saveAs()

void MainWindow::about()
{
QMessageBox::about(this, tr("About MMapper2 v 2.0.2"),
tr("The <b>MMapper2</b> application is specially designed "
#ifdef SVN_REVISION
QString version = tr("<b>MMapper2 Subversion Revision ") + QString::number(SVN_REVISION) + tr("</b><br><br>");
#else
QString version = tr("<b>MMapper2 Release 2.0.2</b><br><br>");
#endif
QMessageBox::about(this, tr("About MMapper2"), version +
tr("The MMapper2 application is specially designed "
"for MUME (fire.pvv.org:4242)<br><br>"
"Author: Caligor ([email protected])<br><br>"
"Special thanks to:<br>"
Expand Down
2 changes: 2 additions & 0 deletions src/mmapper2.pro
Original file line number Diff line number Diff line change
Expand Up @@ -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 += .
Expand Down

0 comments on commit 13e1458

Please sign in to comment.