changeset 229:a1f4b5359051

* Add version number to About box
author Chris Cannam
date Thu, 06 Jan 2011 13:16:34 +0000
parents b286f26561c9
children e67bd8abc3e3
files mainwindow.cpp
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mainwindow.cpp	Thu Jan 06 12:22:56 2011 +0000
+++ b/mainwindow.cpp	Thu Jan 06 13:16:34 2011 +0000
@@ -41,6 +41,7 @@
 #include "confirmcommentdialog.h"
 #include "incomingdialog.h"
 #include "settingsdialog.h"
+#include "version.h"
 
 
 MainWindow::MainWindow(QString myDirPath) :
@@ -154,7 +155,7 @@
 void MainWindow::about()
 {
    QMessageBox::about(this, tr("About EasyMercurial"),
-                      tr("<qt><h2>About EasyMercurial</h2>"
+                      tr("<qt><h2>EasyMercurial v%1</h2>"
 #ifdef Q_OS_MAC
                          "<font size=-1>"
 #endif
@@ -188,7 +189,7 @@
 #ifdef Q_OS_MAC
                          "</font>"
 #endif
-                          ));
+                          ).arg(EASYHG_VERSION));
 }
 
 void MainWindow::clearSelections()