Label: change cursor on link hover

This commit is contained in:
selsta 2019-11-28 00:59:44 +01:00
parent d5f4d5d93f
commit 4cc3d3f3e2
No known key found for this signature in database
GPG key ID: 2EA0A99A8B07AE5E

View file

@ -69,5 +69,10 @@ Item {
color: fontColor color: fontColor
onLinkActivated: item.linkActivated() onLinkActivated: item.linkActivated()
textFormat: parent.textFormat textFormat: parent.textFormat
MouseArea {
anchors.fill: parent
acceptedButtons: Qt.NoButton
cursorShape: parent.hoveredLink ? Qt.PointingHandCursor : Qt.ArrowCursor
}
} }
} }