src/main.cpp

changeset 40
809a75a7113b
parent 38
db677d321cf4
child 41
e985ebb67fdd
equal deleted inserted replaced
39:2c368cf5cc19 40:809a75a7113b
19 #include <QApplication> 19 #include <QApplication>
20 #include "config.h" 20 #include "config.h"
21 #include "types.h" 21 #include "types.h"
22 #include "demo.h" 22 #include "demo.h"
23 #include "prompts.h" 23 #include "prompts.h"
24 #include "hginfo.h"
24 25
25 // 26 //
26 // ------------------------------------------------------------------------------------------------- 27 // -------------------------------------------------------------------------------------------------
27 // 28 //
28 29
65 // ------------------------------------------------------------------------------------------------- 66 // -------------------------------------------------------------------------------------------------
66 // 67 //
67 68
68 QString versionString() 69 QString versionString()
69 { 70 {
71 #ifndef RELEASE
72 # ifdef HG_NODE
73 // non-release with hg info
74 return VERSION_STRING "-" HG_NODE;
75 # else
76 // non-release, no hg info
77 return VERSION_STRING "-beta";
78 # endif
79 #else
80 // release
70 return VERSION_STRING; 81 return VERSION_STRING;
82 #endif
71 } 83 }
72 84
73 // 85 //
74 // ------------------------------------------------------------------------------------------------- 86 // -------------------------------------------------------------------------------------------------
75 // 87 //
76 88
77 QString versionSignature() 89 QString versionSignature()
78 { 90 {
79 return QString (APPNAME) + " " + versionString(); 91 #ifdef HG_DATE_STRING
92 # define DATE_INFO " (" HG_DATE_STRING ")"
93 #else
94 # define DATE_INFO ""
95 #endif
96
97 return QString (APPNAME) + " " + versionString() + DATE_INFO;
80 } 98 }

mercurial