diff options
Diffstat (limited to 'examples/quickcontrols2/gallery/pages/DelegatePage.qml')
-rw-r--r-- | examples/quickcontrols2/gallery/pages/DelegatePage.qml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/quickcontrols2/gallery/pages/DelegatePage.qml b/examples/quickcontrols2/gallery/pages/DelegatePage.qml index d2064d9870..116762154d 100644 --- a/examples/quickcontrols2/gallery/pages/DelegatePage.qml +++ b/examples/quickcontrols2/gallery/pages/DelegatePage.qml @@ -193,7 +193,9 @@ Pane { // Can't find a way to do this in the SwipeDelegate component itself, // so do it here instead. - ListView.onRemove: SequentialAnimation { + SequentialAnimation { + id: removeAnimation + PropertyAction { target: delegateLoader property: "ListView.delayRemove" @@ -211,6 +213,7 @@ Pane { value: false } } + ListView.onRemove: removeAnimation.start() } } } |