From 66520eae195ad252021ebb5c6bfe2a1efc5f8adf Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Sun, 2 Jan 2022 21:46:29 +0100 Subject: Port image overlay to qml Allows you to zoom and pan now. relates to #647 --- resources/qml/Root.qml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'resources/qml/Root.qml') diff --git a/resources/qml/Root.qml b/resources/qml/Root.qml index 85ae783d..c85b641a 100644 --- a/resources/qml/Root.qml +++ b/resources/qml/Root.qml @@ -136,6 +136,14 @@ Page { } + Component { + id: imageOverlay + + ImageOverlay { + } + + } + Shortcut { sequence: "Ctrl+K" onActivated: { @@ -234,6 +242,15 @@ Page { dialog.open(); } + function onShowImageOverlay(room, eventId, url, proportionalHeight, originalWidth) { + var dialog = imageOverlay.createObject(timelineRoot, { + "room": room, + "eventId": eventId, + "url": url + }); + dialog.showFullScreen(); + } + target: TimelineManager } -- cgit 1.5.1