From 5daacc0a229699af7c6290c58be3ca18931fc8ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Sat, 30 Apr 2016 09:44:28 +0200 Subject: [PATCH] Program version now defined in the project file --- gpxsee.pro | 4 +++- gpxsee.rc | 1 - src/config.h | 1 - 3 files changed, 3 insertions(+), 3 deletions(-) delete mode 100644 gpxsee.rc diff --git a/gpxsee.pro b/gpxsee.pro index 297eedba..00aca9a7 100644 --- a/gpxsee.pro +++ b/gpxsee.pro @@ -1,4 +1,5 @@ TARGET = GPXSee +VERSION = 2.13 QT += core \ gui \ network @@ -72,4 +73,5 @@ macx { ICON = icons/gpxsee.icns QMAKE_INFO_PLIST = Info.plist } -win32:RC_FILE = gpxsee.rc +win32:RC_ICONS = icons/gpxsee.ico +DEFINES += APP_VERSION=\\\"$$VERSION\\\" diff --git a/gpxsee.rc b/gpxsee.rc deleted file mode 100644 index afc1964a..00000000 --- a/gpxsee.rc +++ /dev/null @@ -1 +0,0 @@ -IDI_ICON1 ICON DISCARDABLE "icons/gpxsee.ico" \ No newline at end of file diff --git a/src/config.h b/src/config.h index 82268744..267130f7 100644 --- a/src/config.h +++ b/src/config.h @@ -8,7 +8,6 @@ #define APP_NAME "GPXSee" #define APP_HOMEPAGE "http://tumic.wz.cz/gpxsee" -#define APP_VERSION "2.13" #define FONT_FAMILY "Arial" #define FONT_SIZE 12