Skip to content
Snippets Groups Projects
Verified Commit 88381baa authored by Nicolas Werner's avatar Nicolas Werner Committed by Joe Donofry
Browse files

Reenable still image viewer for WebP until we qmlify the image viewer

parent 022932e8
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !16. Comments created here will be created in the context of that merge request.
......@@ -46,15 +46,6 @@ Item {
smooth: true
mipmap: true
TapHandler {
enabled: type == MtxEvent.ImageMessage && img.status == Image.Ready
onSingleTapped: {
TimelineManager.openImageOverlay(url, room.data.eventId);
eventPoint.accepted = true;
}
gesturePolicy: TapHandler.ReleaseWithinBounds
}
}
MxcAnimatedImage {
......@@ -67,6 +58,16 @@ Item {
eventId: parent.eventId
}
TapHandler {
// TODO(Nico): Replace this with a qml thingy, that also can show animated images
enabled: type == MtxEvent.ImageMessage && (img.status == Image.Ready || mxcimage.loaded)
onSingleTapped: {
TimelineManager.openImageOverlay(url, room.data.eventId);
eventPoint.accepted = true;
}
gesturePolicy: TapHandler.ReleaseWithinBounds
}
HoverHandler {
id: mouseArea
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment