src/Main.h

changeset 685
2e74d99ee7ec
parent 634
5ef894f699d7
child 639
851634b85893
--- a/src/Main.h	Sun Feb 23 18:49:24 2014 +0200
+++ b/src/Main.h	Sun Feb 23 20:02:36 2014 +0200
@@ -30,28 +30,10 @@
 #include <QString>
 #include <QTextFormat>
 
+#include "Version.h"
 #include "PropertyMacro.h"
 #include "Configuration.h"
 
-#define APPNAME			"LDForge"
-#define UNIXNAME		"ldforge"
-#define VERSION_MAJOR	0
-#define VERSION_MINOR	2
-#define VERSION_PATCH	999
-#define BUILD_ID		BUILD_INTERNAL
-
-#define BUILD_INTERNAL	0
-#define BUILD_RELEASE	1
-
-// =============================================
-#ifdef DEBUG
-# undef RELEASE
-#endif // DEBUG
-
-#ifdef RELEASE
-# undef DEBUG
-#endif // RELEASE
-
 // =============================================
 #define alias auto&
 #define elif(A) else if (A)
@@ -97,9 +79,9 @@
 # define assert(N) {}
 #endif // DEBUG
 
-// Version string identifier
-QString versionString();
-QString fullVersionString();
+// Version string identifier. These are defined in Version.cc.
+const char* versionString();
+const char* fullVersionString();
 
 #define properties private
 #define typedefs public

mercurial