From 686566c12efa4cf98f2a880b1709165609eeee9f Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Wed, 18 Jun 2025 15:32:23 +1000 Subject: notifs: make links work --- modules/notifications/Notification.qml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/notifications/Notification.qml b/modules/notifications/Notification.qml index 6550e28..a57c8d2 100644 --- a/modules/notifications/Notification.qml +++ b/modules/notifications/Notification.qml @@ -36,7 +36,7 @@ StyledRect { anchors.fill: parent hoverEnabled: true - cursorShape: pressed ? Qt.ClosedHandCursor : undefined + cursorShape: body.hoveredLink ? Qt.PointingHandCursor : pressed ? Qt.ClosedHandCursor : undefined acceptedButtons: Qt.LeftButton | Qt.MiddleButton preventStealing: true @@ -414,6 +414,11 @@ StyledRect { font.pointSize: Appearance.font.size.small wrapMode: Text.WrapAtWordBoundaryOrAnywhere + onLinkActivated: link => { + Qt.openUrlExternally(link); + root.modelData.popup = false; + } + opacity: root.expanded ? 1 : 0 Behavior on opacity { -- cgit v1.2.3-freya