summaryrefslogtreecommitdiffstats
path: root/framework/qml/Label.qml
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-10-23 12:39:27 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-10-23 12:39:27 +0200
commit3eee9784f01a1d5b56ca735eb7ab8ab605d91f8c (patch)
tree7a618c3fd3c37f63d104268a377e72d56fe2a4ce /framework/qml/Label.qml
parent4ea3d40ea0c4e3437925bc79869f5a8c7b7bc159 (diff)
downloadkube-3eee9784f01a1d5b56ca735eb7ab8ab605d91f8c.tar.gz
kube-3eee9784f01a1d5b56ca735eb7ab8ab605d91f8c.zip
Support links on all labels
Diffstat (limited to 'framework/qml/Label.qml')
-rw-r--r--framework/qml/Label.qml7
1 files changed, 7 insertions, 0 deletions
diff --git a/framework/qml/Label.qml b/framework/qml/Label.qml
index cc8235a3..850ed8ba 100644
--- a/framework/qml/Label.qml
+++ b/framework/qml/Label.qml
@@ -23,4 +23,11 @@ import org.kube.framework 1.0 as Kube
23T.Label { 23T.Label {
24 color: Kube.Colors.textColor 24 color: Kube.Colors.textColor
25 font.family: Kube.Font.fontFamily 25 font.family: Kube.Font.fontFamily
26 linkColor: Kube.Colors.highlightColor
27 onLinkActivated: Qt.openUrlExternally(link)
28 MouseArea {
29 anchors.fill: parent
30 acceptedButtons: Qt.NoButton // we don't want to eat clicks on the Text
31 cursorShape: parent.hoveredLink ? Qt.PointingHandCursor : Qt.ArrowCursor
32 }
26} 33}