also add link to nymea website to about dialog

pull/1/head
Michael Zanetti 2018-06-07 12:44:01 +02:00
parent 1a3df08921
commit 0826a90833
1 changed files with 24 additions and 3 deletions

View File

@ -82,13 +82,14 @@ Page {
ColumnLayout { ColumnLayout {
Layout.fillWidth: true Layout.fillWidth: true
ItemDelegate { ItemDelegate {
Layout.fillWidth: true Layout.fillWidth: true
contentItem: RowLayout { contentItem: RowLayout {
Label { Label {
Layout.fillWidth: true Layout.fillWidth: true
text: qsTr("View license text") text: qsTr("Visit the nymea website")
} }
Image { Image {
source: "images/next.svg" source: "images/next.svg"
@ -98,7 +99,7 @@ Page {
} }
onClicked: { onClicked: {
pageStack.push(licenseTextComponent) Qt.openUrlExternally("https://nymea.io")
} }
} }
@ -120,6 +121,26 @@ Page {
Qt.openUrlExternally("https://github.com/guh/mea") 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: { onClicked: {
Qt.openUrlExternally("https://qt.io") Qt.openUrlExternally("https://www.qt.io")
} }
} }
} }