Fixed image preview
authorMohammed Sameer <msameer@foolab.org>
Mon, 31 Dec 2012 23:22:54 +0000 (01:22 +0200)
committerMohammed Sameer <msameer@foolab.org>
Mon, 31 Dec 2012 23:22:54 +0000 (01:22 +0200)
We were showing the preview image only during the opacity animation.
The intention was to show it during pause animation too.

qml/PreviewImage.qml

index eee31dd..7f0d8c8 100644 (file)
@@ -28,7 +28,7 @@ Image {
         id: image
         anchors.fill: parent
         property alias animationRunning: animation.running
-        opacity: 0
+        opacity: visible ? 1 : 0
         z: 1
 
         visible: opacity != 0
@@ -48,8 +48,8 @@ Image {
         }
 
         function setPreview(preview) {
-                animation.start();
                 image.source = preview;
-                image.visible = true;
+                image.opacity = 1;
+                animation.start();
         }
 }