koto/desktop/qml/HomePage.qml

39 lines
797 B
QML
Raw Normal View History

2024-09-29 17:29:10 +03:00
import QtQuick
import QtQuick.Controls as Controls
import QtQuick.Layouts
import org.kde.kirigami as Kirigami
import com.github.joshstrobl.koto
2024-09-29 17:29:10 +03:00
Kirigami.ScrollablePage {
Component {
id: listDelegate
Controls.ItemDelegate {
required property string name
text: name
width: ListView.view.width
2024-09-29 17:29:10 +03:00
}
}
// ListModel {
// id: blah
//
// ListElement {
// name: "blah1"
// }
// ListElement {
// name: "blah2"
// }
// ListElement {
// name: "blah3"
// }
// }
ListView {
Layout.fillHeight: true
Layout.fillWidth: true
delegate: listDelegate
//model: blah
model: Cartographer.artists
}
2024-09-29 17:29:10 +03:00
}