--- a/src/constants.h +++ b/src/constants.h @@ -32,8 +32,9 @@ #define SINGLEINSTANCE_EXPERIMENTAL true // When true, enable the experimental function for the "single instance" system +#define POINTVERSION "0.20.0" // major.minor.revision -const QString VERSION = "0.20.0"; // major.minor.revision +const QString VERSION = POINTVERSION; const QString COPYRIGHT = QObject::trUtf8("Copyright © 2010-2012, the Notepadqq team"); const QString URL = "http://notepadqq.sourceforge.net/"; --- a/src/main.cpp +++ b/src/main.cpp @@ -194,7 +194,7 @@ void displayVersion() { - printf("notepadqq version 0.13.0\n"); + printf(POINTVERSION "\n"); } inline