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 } |