Page MenuHomePhorge

D18.1732488702.diff
No OneTemporary

Size
875 B
Referenced Files
None
Subscribers
None

D18.1732488702.diff

diff --git a/src/contents/ui/event-types/TextTemplate.qml b/src/contents/ui/event-types/TextTemplate.qml
--- a/src/contents/ui/event-types/TextTemplate.qml
+++ b/src/contents/ui/event-types/TextTemplate.qml
@@ -30,6 +30,21 @@
Layout.fillWidth: true
wrapMode: Text.Wrap
text: upper.text
+ onLinkActivated: (link) => {
+ Qt.openUrlExternally(link);
+ }
+ onHoveredLinkChanged: (link) => {
+ if (link) {
+ // first give it text, then make it visible
+ label.ToolTip.text = link;
+ label.ToolTip.visible = true;
+ } else {
+ // first make it invisible, then remove the text
+ label.ToolTip.visible = false;
+ label.ToolTip.text = '';
+ }
+ }
+ ToolTip.delay: Kirigami.Units.shortDuration
}
data: [

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 24, 2:51 PM (10 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
39827
Default Alt Text
D18.1732488702.diff (875 B)

Event Timeline