summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2009-11-09 05:30:08 (GMT)
committerMartin Jones <martin.jones@nokia.com>2009-11-09 05:30:08 (GMT)
commit208567d44c5140ca0d4350fde42948e6fca5dc58 (patch)
tree0bc2aa8e0f30ecb1b5b4a6cd754ac9d6691ae76a /tests/auto/declarative
parentb6556899e387186da045610cf8ffedcb0644acec (diff)
downloadQt-208567d44c5140ca0d4350fde42948e6fca5dc58.zip
Qt-208567d44c5140ca0d4350fde42948e6fca5dc58.tar.gz
Qt-208567d44c5140ca0d4350fde42948e6fca5dc58.tar.bz2
Animate item removal.
Diffstat (limited to 'tests/auto/declarative')
-rw-r--r--tests/auto/declarative/qmlgraphicslistview/data/listview.qml5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/auto/declarative/qmlgraphicslistview/data/listview.qml b/tests/auto/declarative/qmlgraphicslistview/data/listview.qml
index 93a3ae3..3ef1be1 100644
--- a/tests/auto/declarative/qmlgraphicslistview/data/listview.qml
+++ b/tests/auto/declarative/qmlgraphicslistview/data/listview.qml
@@ -32,6 +32,11 @@ Rectangle {
text: wrapper.y
}
color: ListView.isCurrentItem ? "lightsteelblue" : "white"
+ ListView.onRemove: SequentialAnimation {
+ PropertyAction { target: wrapper.ListView; property: "delayRemove"; value: true }
+ NumberAnimation { target: wrapper; property: "scale"; to: 0; duration: 250; easing: "easeInOutQuad" }
+ PropertyAction { target: wrapper.ListView; property: "delayRemove"; value: false }
+ }
}
}
]