projects
/
harmattan
/
cameraplus
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9779b8e
)
Fixed image preview
author
Mohammed Sameer
<msameer@foolab.org>
Mon, 31 Dec 2012 23:22:54 +0000
(
01:22
+0200)
committer
Mohammed 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
patch
|
blob
|
history
diff --git
a/qml/PreviewImage.qml
b/qml/PreviewImage.qml
index
eee31dd
..
7f0d8c8
100644
(file)
--- a/
qml/PreviewImage.qml
+++ b/
qml/PreviewImage.qml
@@
-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();
}
}