Adding Appname and Version to main qml for easy change version numbers.

This commit is contained in:
Rudi Timmermans 2019-12-17 21:43:15 +01:00
parent d355b41777
commit 61eb38a154
2 changed files with 6 additions and 1 deletions

View file

@ -10,6 +10,11 @@ ApplicationWindow
cover: Qt.resolvedUrl("cover/CoverPage.qml")
allowedOrientations: defaultAllowedOrientations
id: appVersion
property string appName: "SeaPrint"
property string version: "0.3-3"
Item {
id: db
property var db_conn

View file

@ -54,7 +54,7 @@ Page {
AboutLabel {
font.pixelSize: Theme.fontSizeLarge
color: Theme.highlightColor
text: "SeaPrint 0.3-3"
text: appVersion.appName + " v" + appVersion.version
}
AboutLabel {
font.pixelSize: Theme.fontSizeSmall