comparison mainwindow.cpp @ 229:a1f4b5359051

* Add version number to About box
author Chris Cannam
date Thu, 06 Jan 2011 13:16:34 +0000
parents b286f26561c9
children e67bd8abc3e3
comparison
equal deleted inserted replaced
228:b286f26561c9 229:a1f4b5359051
39 #include "debug.h" 39 #include "debug.h"
40 #include "logparser.h" 40 #include "logparser.h"
41 #include "confirmcommentdialog.h" 41 #include "confirmcommentdialog.h"
42 #include "incomingdialog.h" 42 #include "incomingdialog.h"
43 #include "settingsdialog.h" 43 #include "settingsdialog.h"
44 #include "version.h"
44 45
45 46
46 MainWindow::MainWindow(QString myDirPath) : 47 MainWindow::MainWindow(QString myDirPath) :
47 m_myDirPath(myDirPath) 48 m_myDirPath(myDirPath)
48 { 49 {
152 } 153 }
153 154
154 void MainWindow::about() 155 void MainWindow::about()
155 { 156 {
156 QMessageBox::about(this, tr("About EasyMercurial"), 157 QMessageBox::about(this, tr("About EasyMercurial"),
157 tr("<qt><h2>About EasyMercurial</h2>" 158 tr("<qt><h2>EasyMercurial v%1</h2>"
158 #ifdef Q_OS_MAC 159 #ifdef Q_OS_MAC
159 "<font size=-1>" 160 "<font size=-1>"
160 #endif 161 #endif
161 "<p>EasyMercurial is a simple user interface for the " 162 "<p>EasyMercurial is a simple user interface for the "
162 "Mercurial</a> version control system.</p>" 163 "Mercurial</a> version control system.</p>"
186 "License, or (at your option) any later version. See the file " 187 "License, or (at your option) any later version. See the file "
187 "COPYING included with this distribution for more information.</p>" 188 "COPYING included with this distribution for more information.</p>"
188 #ifdef Q_OS_MAC 189 #ifdef Q_OS_MAC
189 "</font>" 190 "</font>"
190 #endif 191 #endif
191 )); 192 ).arg(EASYHG_VERSION));
192 } 193 }
193 194
194 void MainWindow::clearSelections() 195 void MainWindow::clearSelections()
195 { 196 {
196 hgTabs->clearSelections(); 197 hgTabs->clearSelections();