Fix room subtitle not passing click events

This commit is contained in:
miruka 2019-07-04 19:23:40 -04:00
parent 5812dcb051
commit 13266303ff

View File

@ -8,6 +8,7 @@ HLabel {
id: mouseArea id: mouseArea
anchors.fill: parent anchors.fill: parent
hoverEnabled: true hoverEnabled: true
propagateComposedEvents: true
onPositionChanged: function (event) { onPositionChanged: function (event) {
cursorShape = label.linkAt(event.x, event.y) ? cursorShape = label.linkAt(event.x, event.y) ?
@ -16,6 +17,7 @@ HLabel {
onClicked: function(event) { onClicked: function(event) {
var link = label.linkAt(event.x, event.y) var link = label.linkAt(event.x, event.y)
event.accepted = Boolean(link)
if (link) { Qt.openUrlExternally(link) } if (link) { Qt.openUrlExternally(link) }
} }
} }