notifs: make links work
This commit is contained in:
parent
43f8c36677
commit
686566c12e
1 changed files with 6 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue