24
24
#include < assert.h>
25
25
#include < set>
26
26
27
- #include " global .h"
27
+ #include " config .h"
28
28
#include " csvFile.h"
29
29
#include " resultCsvImport.h"
30
30
#include " event.h"
@@ -60,7 +60,8 @@ MainWindow::MainWindow(QWidget* parent)
60
60
mainLayout->addWidget (tabWidget);
61
61
setLayout (mainLayout);
62
62
63
- setWindowTitle (QString (" %1 %2" ).arg (APP_NAME).arg (APP_VERSION));
63
+ void (QT_TRANSLATE_NOOP (" Global" , " CupCalculator" ));
64
+ setWindowTitle (QString (" %1 %2" ).arg (PROJECT_NAME, PROJECT_VERSION_DISPLAY));
64
65
setWindowIcon (QIcon (" images/control.png" ));
65
66
66
67
setSizeGripEnabled (true );
@@ -1207,16 +1208,18 @@ void SeriesScoringTab::seriesDoubleClicked(QListWidgetItem* item)
1207
1208
1208
1209
AboutTab::AboutTab (MainWindow* mainWindow, QWidget* parent): QWidget(parent), mainWindow(mainWindow)
1209
1210
{
1210
- QLabel* programLabel = new QLabel (QString (" <b>%1 %2</b>" ).arg (APP_NAME).arg (APP_VERSION));
1211
+ void (QT_TRANSLATE_NOOP (" Global" , " CupCalculator" ));
1212
+ QLabel* programLabel = new QLabel (QString (" <b>%1 %2</b>" ).arg (PROJECT_NAME, PROJECT_VERSION_DISPLAY));
1211
1213
programLabel->setAlignment (Qt::AlignHCenter);
1212
1214
QFont hugeFont = programLabel->font ();
1213
1215
hugeFont.setPointSize (20 );
1214
1216
programLabel->setFont (hugeFont);
1215
1217
1216
- QLabel* aboutLabel = new QLabel (tr (" Copyright (C) 2011, 2012, 2015 Thomas Schöps<br>"
1217
- " This program comes with ABSOLUTELY NO WARRANTY;<br>"
1218
- " This is free software, and you are welcome to redistribute it<br>"
1219
- " under certain conditions; see the file COPYING for details." ));
1218
+ QLabel* aboutLabel = new QLabel (tr (" %1<br>"
1219
+ " This program comes with ABSOLUTELY NO WARRANTY;<br>"
1220
+ " This is free software, and you are welcome to redistribute it<br>"
1221
+ " under certain conditions; see the file COPYING for details." )
1222
+ .arg (PROJECT_COPYRIGHT));
1220
1223
aboutLabel->setAlignment (Qt::AlignHCenter);
1221
1224
QFont bigFont = aboutLabel->font ();
1222
1225
bigFont.setPointSize (12 );
@@ -1228,7 +1231,7 @@ AboutTab::AboutTab(MainWindow* mainWindow, QWidget* parent): QWidget(parent), ma
1228
1231
mediumFont.setPointSize (12 );
1229
1232
imageLabel->setFont (mediumFont);
1230
1233
1231
- QLabel* aboutImage = new QLabel (" <a href=\" http ://www.openorienteering.org\" ><img src=\" images/open_orienteering.png\" /></a>" );
1234
+ QLabel* aboutImage = new QLabel (" <a href=\" https ://www.openorienteering.org\" ><img src=\" images/open_orienteering.png\" /></a>" );
1232
1235
1233
1236
QVBoxLayout* layout = new QVBoxLayout ();
1234
1237
layout->addStretch (1 );
0 commit comments