diff options
author | Daniel Smith <daniel.smith@qt.io> | 2023-02-28 09:38:19 +0100 |
---|---|---|
committer | Daniel Smith <Daniel.Smith@qt.io> | 2023-03-03 09:23:42 +0000 |
commit | 3b1a5cdb3732b9609810f7dc1ff31e8de5218a5a (patch) | |
tree | a1e761aca9290c3eaa2fdf3940651623da80ad91 | |
parent | b0bb5823ecada2c699ea0f84b0190d3575d6a087 (diff) |
Fix scoping of index in SwipeDelegate snippet
Fixes: QTBUG-111566
Change-Id: Idf3d5fd140f2b69215844ff25b24bfc2abfc14b1
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
(cherry picked from commit 925c6b06b17e78f125cc5119efe702774298b154)
-rw-r--r-- | src/quickcontrols2/doc/snippets/qtquickcontrols2-swipedelegate.qml | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/quickcontrols2/doc/snippets/qtquickcontrols2-swipedelegate.qml b/src/quickcontrols2/doc/snippets/qtquickcontrols2-swipedelegate.qml index fb2df4f6d3..9f6ec74537 100644 --- a/src/quickcontrols2/doc/snippets/qtquickcontrols2-swipedelegate.qml +++ b/src/quickcontrols2/doc/snippets/qtquickcontrols2-swipedelegate.qml @@ -21,6 +21,7 @@ ListView { required property string sender required property string title + required property int index ListView.onRemove: SequentialAnimation { PropertyAction { @@ -52,8 +53,6 @@ ListView { SwipeDelegate.onClicked: listView.model.remove(index) - required property int index - background: Rectangle { color: deleteLabel.SwipeDelegate.pressed ? Qt.darker("tomato", 1.1) : "tomato" } |