From 0826a9083399fe37164c8ae73c36af7a491677b5 Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Thu, 7 Jun 2018 12:44:01 +0200 Subject: [PATCH] also add link to nymea website to about dialog --- mea/ui/AboutPage.qml | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/mea/ui/AboutPage.qml b/mea/ui/AboutPage.qml index feeb077d..24981386 100644 --- a/mea/ui/AboutPage.qml +++ b/mea/ui/AboutPage.qml @@ -82,13 +82,14 @@ Page { ColumnLayout { Layout.fillWidth: true + ItemDelegate { Layout.fillWidth: true contentItem: RowLayout { Label { Layout.fillWidth: true - text: qsTr("View license text") + text: qsTr("Visit the nymea website") } Image { source: "images/next.svg" @@ -98,7 +99,7 @@ Page { } onClicked: { - pageStack.push(licenseTextComponent) + Qt.openUrlExternally("https://nymea.io") } } @@ -120,6 +121,26 @@ Page { Qt.openUrlExternally("https://github.com/guh/mea") } } + + ItemDelegate { + Layout.fillWidth: true + + contentItem: RowLayout { + Label { + Layout.fillWidth: true + text: qsTr("View license text") + } + Image { + source: "images/next.svg" + Layout.preferredHeight: parent.height + Layout.preferredWidth: height + } + } + + onClicked: { + pageStack.push(licenseTextComponent) + } + } } @@ -161,7 +182,7 @@ Page { } onClicked: { - Qt.openUrlExternally("https://qt.io") + Qt.openUrlExternally("https://www.qt.io") } } }