mirror of https://github.com/KDE/kasts.git
Port away from DelegateRecycler
This commit is contained in:
parent
690b3a8d7e
commit
97062cad24
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue