Fix room subtitle not passing click events
This commit is contained in:
parent
5812dcb051
commit
13266303ff
@ -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) }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user