tFix link activation on the About page - sailfish-safe - Sailfish frontend for safe(1)
HTML git clone git://git.z3bra.org/sailfish-safe.git
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 8401ea3421ead0f6fb320deb444083131fa7d06f
DIR parent 9fb43bf5a1bb9cb28664d065e5cce521d6bcf868
HTML Author: Daniel Vrátil <dvratil@kde.org>
Date: Mon, 4 Feb 2019 01:28:30 +0100
Fix link activation on the About page
Diffstat:
M qml/pages/AboutPage.qml | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
---
DIR diff --git a/qml/pages/AboutPage.qml b/qml/pages/AboutPage.qml
t@@ -68,8 +68,14 @@ Page {
}
Label {
- text: qsTr("Homepage: <a href=\"%1\">Github</a>").arg("https://github.com/danvratil/harbour-passilic")
+ readonly property string _url: "https://github.com/danvratil/harbour-passilic"
+
+ textFormat: Text.RichText
+ text: qsTr("Homepage: <a href=\"%1\">Github</a>").arg(_url)
font.pixelSize: Theme.fontSizeSmall
+ linkColor: Theme.highlightColor
+
+ onLinkActivated: Qt.openUrlExternally(_url)
}
Label {