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