summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativeanimatedimage/data
diff options
context:
space:
mode:
authorYann Bodson <yann.bodson@nokia.com>2011-02-03 06:54:13 (GMT)
committerYann Bodson <yann.bodson@nokia.com>2011-02-04 04:14:18 (GMT)
commit80d0fe9cbd92288a08d5ced8767f1edb651dae37 (patch)
treea11b4cda0bbbcb04a96edea52ba6eccf487fef2d /tests/auto/declarative/qdeclarativeanimatedimage/data
parent9f8a181a619649c8a227e92f3d16677f4b7cb30a (diff)
downloadQt-80d0fe9cbd92288a08d5ced8767f1edb651dae37.zip
Qt-80d0fe9cbd92288a08d5ced8767f1edb651dae37.tar.gz
Qt-80d0fe9cbd92288a08d5ced8767f1edb651dae37.tar.bz2
AnimatedImage does not notify on status change.
Task-number: QTBUG-16520 Reviewed-by: Michael Brasser
Diffstat (limited to 'tests/auto/declarative/qdeclarativeanimatedimage/data')
-rw-r--r--tests/auto/declarative/qdeclarativeanimatedimage/data/qtbug-16520.qml17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativeanimatedimage/data/qtbug-16520.qml b/tests/auto/declarative/qdeclarativeanimatedimage/data/qtbug-16520.qml
new file mode 100644
index 0000000..cf5b601
--- /dev/null
+++ b/tests/auto/declarative/qdeclarativeanimatedimage/data/qtbug-16520.qml
@@ -0,0 +1,17 @@
+import QtQuick 1.0
+
+Rectangle {
+ width: 500
+ height: 500
+
+ AnimatedImage {
+ objectName: "anim"
+ anchors.centerIn: parent
+ asynchronous: true
+ opacity: status == AnimatedImage.Ready ? 1 : 0
+
+ Behavior on opacity {
+ NumberAnimation { duration: 1000 }
+ }
+ }
+}