diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-10-24 15:12:57 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-10-24 15:12:57 +0200 |
commit | 349ed63038fffe8835446a2f5bbea9d090f8ad51 (patch) | |
tree | 0c176a67447c16257af2aff6f8c4371aca465325 /src/main.cpp | |
parent | Update PKGBUILD to use meson (diff) | |
download | smolbote-349ed63038fffe8835446a2f5bbea9d090f8ad51.tar.xz |
Use vcs_tag to get version information
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp index 6ceacab..1a8dd11 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -18,6 +18,7 @@ #include <memory> #include <QPluginLoader> #include <plugininterface.h> +#include <QVersionNumber> #ifdef _WIN32 #include <cstdio> #include <windows.h> @@ -93,13 +94,14 @@ int main(int argc, char **argv) // --version if(config->exists("version")) { - std::cout << "smolbote " << poi_Version << std::endl; + auto ver = QVersionNumber::fromString(QLatin1String(poi_Version)); + std::cout << "smolbote " << ver.toString().toStdString() << std::endl; return 0; } // --build if(config->exists("build")) { - std::cout << poi_Build; + std::cout << poi_Version << std::endl; return 0; } |