notifs: make links work

This commit is contained in:
2 * r + 2 * t 2025-06-18 15:32:23 +10:00
parent 43f8c36677
commit 686566c12e

View file

@ -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 {