diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2019-09-28 11:07:58 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2019-11-23 20:06:14 +0100 |
commit | 9b18440b4f989da4fcd764f33291d17dbbcb82e3 (patch) | |
tree | 968354719b88c8a94edf7d3c557d4ad6916ea9ff /resources/qml/delegates | |
parent | Add lock to encrypted messages (diff) | |
download | nheko-9b18440b4f989da4fcd764f33291d17dbbcb82e3.tar.xz |
Reenable ImageOverlay
Diffstat (limited to 'resources/qml/delegates')
-rw-r--r-- | resources/qml/delegates/ImageMessage.qml | 6 |
1 files changed, 6 insertions, 0 deletions
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) + } } } |