From 9b18440b4f989da4fcd764f33291d17dbbcb82e3 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Sat, 28 Sep 2019 11:07:58 +0200 Subject: Reenable ImageOverlay --- resources/qml/delegates/ImageMessage.qml | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'resources/qml/delegates') diff --git a/resources/qml/delegates/ImageMessage.qml b/resources/qml/delegates/ImageMessage.qml index a3bc78e5..f4f5e369 100644 --- a/resources/qml/delegates/ImageMessage.qml +++ b/resources/qml/delegates/ImageMessage.qml @@ -5,10 +5,16 @@ Item { height: 300 * eventData.proportionalHeight Image { + id: img anchors.fill: parent source: eventData.url.replace("mxc://", "image://MxcImage/") asynchronous: true fillMode: Image.PreserveAspectFit + + MouseArea { + anchors.fill: parent + onClicked: timelineManager.openImageOverlay(img.source) + } } } -- cgit 1.5.1