aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2017-01-29 11:00:59 +0100
committerAqua-sama <aqua@iserlohn-fortress.net>2017-01-29 11:00:59 +0100
commitaffa4b43443a980ff2e80441a9e340801ccc8159 (patch)
treef9d6d359250024160a3720d9bee6c8e45994074f /src/main.cpp
parentAdded qbs project file (diff)
downloadsmolbote-affa4b43443a980ff2e80441a9e340801ccc8159.tar.xz
Reading version tag from repo
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp4
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;