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 {
|
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
|
||||||
|
|
Loading…
Reference in New Issue