From b5328ec14021e5b9b941c2906b45398c422192f4 Mon Sep 17 00:00:00 2001 From: Black Hat Date: Wed, 8 Aug 2018 01:58:06 +0800 Subject: [PATCH] Minor improvement in ImageBubble. --- qml/component/ImageBubble.qml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/qml/component/ImageBubble.qml b/qml/component/ImageBubble.qml index be929d8..fe473da 100644 --- a/qml/component/ImageBubble.qml +++ b/qml/component/ImageBubble.qml @@ -26,6 +26,12 @@ AvatarContainer { z: -4 sourceSize.width: 128 source: "image://mxc/" + (content.thumbnail_url ? content.thumbnail_url : content.url) + + MouseArea { + anchors.fill: parent + propagateComposedEvents: true + onClicked: downloadAndOpen() + } } } }