Port away from DelegateRecycler

This commit is contained in:
Bart De Vries 2023-02-09 22:03:07 +01:00
parent 690b3a8d7e
commit 97062cad24
1 changed files with 5 additions and 7 deletions

View File

@ -42,6 +42,7 @@ Kirigami.ScrollablePage {
GenericEntryListView { GenericEntryListView {
id: queueList id: queueList
reuseItems: true
isQueue: true isQueue: true
anchors.fill: parent anchors.fill: parent
@ -71,19 +72,16 @@ Kirigami.ScrollablePage {
id: queueModel id: queueModel
} }
Component { delegate: Item {
id: delegateComponent width: queueList.width
height: entryDelegate.height
GenericEntryDelegate { GenericEntryDelegate {
id: entryDelegate
isQueue: true isQueue: true
listView: queueList listView: queueList
} }
} }
delegate: Kirigami.DelegateRecycler {
width: queueList.width
sourceComponent: delegateComponent
}
moveDisplaced: Transition { moveDisplaced: Transition {
YAnimator { YAnimator {
duration: Kirigami.Units.longDuration duration: Kirigami.Units.longDuration