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:40 +0000 |
commit | e5a0152d6dc4f2079fcdf8d104e914842bf231b6 (patch) | |
tree | 8f59c5790b11e63e22744b81209d169a30adaf5a /src | |
parent | f568f1ead957c217b4d1d3e9393e1a48920dd98b (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)
Diffstat (limited to 'src')
-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 f7e27978c5..866e711481 100644 --- a/src/quickcontrols2/doc/snippets/qtquickcontrols2-swipedelegate.qml +++ b/src/quickcontrols2/doc/snippets/qtquickcontrols2-swipedelegate.qml @@ -45,6 +45,7 @@ ListView { required property string sender required property string title + required property int index ListView.onRemove: SequentialAnimation { PropertyAction { @@ -76,8 +77,6 @@ ListView { SwipeDelegate.onClicked: listView.model.remove(index) - required property int index - background: Rectangle { color: deleteLabel.SwipeDelegate.pressed ? Qt.darker("tomato", 1.1) : "tomato" } |