Skip to content

Commit

Permalink
Add version number to title bar
Browse files Browse the repository at this point in the history
  • Loading branch information
Deflaktor committed Apr 25, 2021
1 parent ab92828 commit ab1ebd8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
12 changes: 10 additions & 2 deletions csmm.pro
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
TARGET = CSMM

# update this for release
VERSION = 1.0.0.0
#Application version
VERSION_MAJOR = 1
VERSION_MINOR = 0
VERSION_BUILD = 5

DEFINES += "VERSION_MAJOR=$$VERSION_MAJOR"\
"VERSION_MINOR=$$VERSION_MINOR"\
"VERSION_BUILD=$$VERSION_BUILD"

VERSION = $${VERSION_MAJOR}.$${VERSION_MINOR}.$${VERSION_BUILD}

QMAKE_TARGET_BUNDLE_PREFIX = com.fortunestreetmodding

Expand Down
1 change: 1 addition & 0 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ int main(int argc, char *argv[])
initDarkThemeSettings();

MainWindow w;
w.setWindowTitle(QString("CSMM %1.%2.%3").arg(VERSION_MAJOR).arg(VERSION_MINOR).arg(VERSION_BUILD));
w.show();
return a.exec();
}

0 comments on commit ab1ebd8

Please sign in to comment.