From 5b63d9501320ddbc565f873921ea3c02c9b8efe0 Mon Sep 17 00:00:00 2001 From: deva Date: Mon, 6 Apr 2009 08:20:29 +0000 Subject: Version number added in pro file. --- client/client.pro | 2 ++ client/mainwindow.cc | 2 +- client/pracro.cc | 2 -- 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 "" -- cgit v1.2.3