From 3eee9784f01a1d5b56ca735eb7ab8ab605d91f8c Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Mon, 23 Oct 2017 12:39:27 +0200 Subject: Support links on all labels --- framework/qml/Label.qml | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'framework/qml') 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 T.Label { color: Kube.Colors.textColor font.family: Kube.Font.fontFamily + linkColor: Kube.Colors.highlightColor + onLinkActivated: Qt.openUrlExternally(link) + MouseArea { + anchors.fill: parent + acceptedButtons: Qt.NoButton // we don't want to eat clicks on the Text + cursorShape: parent.hoveredLink ? Qt.PointingHandCursor : Qt.ArrowCursor + } } -- cgit v1.2.3