From: Mohammed Sameer Date: Mon, 24 Dec 2012 15:10:06 +0000 (+0200) Subject: Add a MouseArea to PreviewImage and prevent interacting with controls below while... X-Git-Url: http://cgit.sxemacs.org/?a=commitdiff_plain;h=3ebdbc119f7fa281fae23c509778e3b614390fdf;p=harmattan%2Fcameraplus Add a MouseArea to PreviewImage and prevent interacting with controls below while its visible --- 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 }