diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2017-01-29 11:00:59 +0100 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2017-01-29 11:00:59 +0100 |
commit | affa4b43443a980ff2e80441a9e340801ccc8159 (patch) | |
tree | f9d6d359250024160a3720d9bee6c8e45994074f /src/main.cpp | |
parent | Added qbs project file (diff) | |
download | smolbote-affa4b43443a980ff2e80441a9e340801ccc8159.tar.xz |
Reading version tag from repo
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index 2a28439..d6a6fd0 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -27,7 +27,9 @@ int main(int argc, char *argv[]) { QApplication app(argc, argv); app.setApplicationName("smolbote"); - app.setApplicationVersion("0.0.0"); +#ifdef VERSION + app.setApplicationVersion(VERSION); +#endif app.setWindowIcon(QIcon(QLatin1String(":/icon.svg"))); QCommandLineParser parser; |