summary refs log tree commit diff
path: root/resources/qml/delegates
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2019-09-28 11:07:58 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2019-11-23 20:06:14 +0100
commit9b18440b4f989da4fcd764f33291d17dbbcb82e3 (patch)
tree968354719b88c8a94edf7d3c557d4ad6916ea9ff /resources/qml/delegates
parentAdd lock to encrypted messages (diff)
downloadnheko-9b18440b4f989da4fcd764f33291d17dbbcb82e3.tar.xz
Reenable ImageOverlay
Diffstat (limited to 'resources/qml/delegates')
-rw-r--r--resources/qml/delegates/ImageMessage.qml6
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)
+		}
 	}
 }