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