Propagate mouse click events on avatars
This commit is contained in:
parent
7e4cee31c7
commit
d091f3bcb6
|
@ -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)
|
||||
|
|
|
@ -52,6 +52,7 @@ Rectangle {
|
|||
id: imageMouseArea
|
||||
anchors.fill: parent
|
||||
hoverEnabled: true
|
||||
propagateComposedEvents: true
|
||||
}
|
||||
|
||||
HToolTip {
|
||||
|
|
|
@ -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 }
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user