From 4e6a4213ff44808edf1e13fc0d471b9deeceddec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20Fdez?= Date: Sun, 1 Apr 2018 22:10:30 +0200 Subject: [PATCH] Add Qt Runtime version to settings page --- main.cpp | 2 ++ pages/Settings.qml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index c03b1605..33aeddd8 100644 --- a/main.cpp +++ b/main.cpp @@ -173,6 +173,8 @@ int main(int argc, char *argv[]) engine.rootContext()->setContextProperty("mainApp", &app); + engine.rootContext()->setContextProperty("qtRuntimeVersion", qVersion()); + // Exclude daemon manager from IOS #ifndef Q_OS_IOS DaemonManager * daemonManager = DaemonManager::instance(&arguments); diff --git a/pages/Settings.qml b/pages/Settings.qml index abfc0e05..980f3769 100644 --- a/pages/Settings.qml +++ b/pages/Settings.qml @@ -623,7 +623,7 @@ Rectangle { Layout.topMargin: 8 font.pixelSize: 14 Layout.fillWidth: true - text: qsTr("GUI version: ") + Version.GUI_VERSION + translationManager.emptyString + text: qsTr("GUI version: ") + Version.GUI_VERSION + " (Qt " + qtRuntimeVersion + ")" + translationManager.emptyString } TextBlock { id: guiMoneroVersion