summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--client/client.pro2
-rw-r--r--client/mainwindow.cc2
-rw-r--r--client/pracro.cc2
3 files changed, 3 insertions, 3 deletions
diff --git a/client/client.pro b/client/client.pro
index 1faa111..830362a 100644
--- a/client/client.pro
+++ b/client/client.pro
@@ -10,6 +10,8 @@ QT += core gui network xml sql
# For debugging
QMAKE_CXXFLAGS += -g -Wall -Werror
+DEFINES+=VERSION=\\\"1.0.0\\\"
+
win32 {
LIBPATH += lua/lib
INCLUDEPATH += lua/include
diff --git a/client/mainwindow.cc b/client/mainwindow.cc
index f0601ca..fd55ba0 100644
--- a/client/mainwindow.cc
+++ b/client/mainwindow.cc
@@ -49,7 +49,7 @@ MainWindow::MainWindow(QString cpr, QString course, QString host, quint16 port,
setWindowTitle("Pracro - " + cpr);
QStatusBar *status = statusBar();
- status->addPermanentWidget(new QLabel("Pracro v.1.0.0 - test2"));
+ status->addPermanentWidget(new QLabel("Pracro v."VERSION));
QScrollArea *s = new QScrollArea();
setCentralWidget(s);
diff --git a/client/pracro.cc b/client/pracro.cc
index e47ff1d..93c9429 100644
--- a/client/pracro.cc
+++ b/client/pracro.cc
@@ -36,8 +36,6 @@
#include "netcom.h"
#include "mainwindow.h"
-#define VERSION "1.0"
-
#define CPR_DEFAULT ""
#define MACRO_DEFAULT ""
#define COURSE_DEFAULT ""