aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquicklistview/data/listview-sections_delegate_required.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/quick/qquicklistview/data/listview-sections_delegate_required.qml')
-rw-r--r--tests/auto/quick/qquicklistview/data/listview-sections_delegate_required.qml15
1 files changed, 10 insertions, 5 deletions
diff --git a/tests/auto/quick/qquicklistview/data/listview-sections_delegate_required.qml b/tests/auto/quick/qquicklistview/data/listview-sections_delegate_required.qml
index 18ce406e3f..6b4dd733d2 100644
--- a/tests/auto/quick/qquicklistview/data/listview-sections_delegate_required.qml
+++ b/tests/auto/quick/qquicklistview/data/listview-sections_delegate_required.qml
@@ -17,6 +17,16 @@ Rectangle {
property string prevSection: ListView.previousSection
height: 20;
width: 240
+
+ ListView.onRemove: sequentialAnimation.start()
+
+ SequentialAnimation {
+ id: sequentialAnimation
+ PropertyAction { target: wrapper; property: "ListView.delayRemove"; value: true }
+ NumberAnimation { target: wrapper; property: "height"; to: 0; duration: 100; easing.type: Easing.InOutQuad }
+ PropertyAction { target: wrapper; property: "ListView.delayRemove"; value: false }
+ }
+
Rectangle {
height: 20
width: parent.width
@@ -46,11 +56,6 @@ Rectangle {
text: wrapper.y
}
}
- ListView.onRemove: SequentialAnimation {
- PropertyAction { target: wrapper; property: "ListView.delayRemove"; value: true }
- NumberAnimation { target: wrapper; property: "height"; to: 0; duration: 100; easing.type: Easing.InOutQuad }
- PropertyAction { target: wrapper; property: "ListView.delayRemove"; value: false }
- }
}
}
]