Propagate mouse click events on avatars

This commit is contained in:
miruka 2019-07-09 23:49:59 -04:00
parent 7e4cee31c7
commit d091f3bcb6
3 changed files with 7 additions and 2 deletions

View File

@ -112,8 +112,6 @@ class ImageProvider:
def get(self, image_id: str, requested_size: Size) -> ImageData:
print("Get image:", image_id, "with size", requested_size)
width = 128 if requested_size[0] < 1 else requested_size[0]
height = width if requested_size[1] < 1 else requested_size[1]
thumb = Thumbnail(self, image_id, width, height)

View File

@ -52,6 +52,7 @@ Rectangle {
id: imageMouseArea
anchors.fill: parent
hoverEnabled: true
propagateComposedEvents: true
}
HToolTip {

View File

@ -15,4 +15,10 @@ ToolTip {
exit: Transition {
HNumberAnimation { property: "opacity"; from: 1.0; to: 0.0 }
}
MouseArea {
anchors.fill: parent
propagateComposedEvents: true
onClicked: { toolTip.close(); mouse.accepted = false }
}
}