From 61eb38a154730aca31f6b64cf705feeb2d574a98 Mon Sep 17 00:00:00 2001 From: Rudi Timmermans Date: Tue, 17 Dec 2019 21:43:15 +0100 Subject: [PATCH] Adding Appname and Version to main qml for easy change version numbers. --- qml/harbour-seaprint.qml | 5 +++++ qml/pages/AboutPage.qml | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/qml/harbour-seaprint.qml b/qml/harbour-seaprint.qml index 7cdb91a..f005601 100644 --- a/qml/harbour-seaprint.qml +++ b/qml/harbour-seaprint.qml @@ -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 diff --git a/qml/pages/AboutPage.qml b/qml/pages/AboutPage.qml index 66c586a..62cae00 100644 --- a/qml/pages/AboutPage.qml +++ b/qml/pages/AboutPage.qml @@ -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