Skip to content
Snippets Groups Projects
Commit b96588cc authored by Fatih Uzunoğlu's avatar Fatih Uzunoğlu Committed by Jean-Baptiste Kempf
Browse files

qml: set `reuseItems` property declaratively in KeyNavigableListView

parent 82db96fa
No related branches found
No related tags found
1 merge request!5317qml: set `reuseItems` property declaratively in KeyNavigableListView
Pipeline #465239 passed with warnings with stages
in 40 minutes and 11 seconds
......@@ -83,6 +83,8 @@ ListView {
boundsBehavior: Flickable.StopAtBounds
reuseItems: true
section.property: ""
section.criteria: ViewSection.FullString
section.delegate: sectionHeading
......@@ -91,13 +93,6 @@ ListView {
// Events
Component.onCompleted: {
if (typeof root.reuseItems === "boolean") {
// Qt 5.15 feature, on by default here:
root.reuseItems = true
}
}
// NOTE: We always want a valid 'currentIndex' by default.
onCountChanged: if (count && currentIndex === -1) currentIndex = 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment