punktdateien/kde/plasma/plasmoids/com.siezi.plasma.mpdWidget/contents/ui/Components/Albumartists/AlbumartistSongsPage.qml
2024-02-14 21:14:16 +01:00

29 lines
625 B
QML

import QtQuick 2.15
import org.kde.kirigami 2.20 as Kirigami
import "../Songlist"
Kirigami.ScrollablePage {
id: root
property alias songs: listView.songs
SonglistView {
id: listView
property var songs
delegate: SonglistItem {
id: songlistItem
parentView: listView
alternatingBackground: true
carretIndex: listView.currentIndex
}
Component.onCompleted: {
listView.model.clear()
listView.songs.forEach(function (song) {
listView.model.append(song)
})
}
}
}