From 3ebdbc119f7fa281fae23c509778e3b614390fdf Mon Sep 17 00:00:00 2001 From: Mohammed Sameer Date: Mon, 24 Dec 2012 17:10:06 +0200 Subject: [PATCH] Add a MouseArea to PreviewImage and prevent interacting with controls below while its visible --- qml/PreviewImage.qml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/qml/PreviewImage.qml b/qml/PreviewImage.qml index 89cc63a..eee31dd 100644 --- a/qml/PreviewImage.qml +++ b/qml/PreviewImage.qml @@ -28,11 +28,19 @@ Image { id: image anchors.fill: parent property alias animationRunning: animation.running + opacity: 0 + z: 1 + + visible: opacity != 0 - visible: false cache: false fillMode: Image.PreserveAspectFit + MouseArea { + anchors.fill: parent + enabled: parent.visible + } + SequentialAnimation { id: animation PauseAnimation { duration: 500; alwaysRunToEnd: true } -- 2.25.1