From 208567d44c5140ca0d4350fde42948e6fca5dc58 Mon Sep 17 00:00:00 2001 From: Martin Jones Date: Mon, 9 Nov 2009 15:30:08 +1000 Subject: Animate item removal. --- tests/auto/declarative/qmlgraphicslistview/data/listview.qml | 5 +++++ 1 file changed, 5 insertions(+) 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 } + } } } ] -- cgit v0.12