start implementing model for koto artist

This commit is contained in:
Joshua Strobl 2024-10-27 19:16:30 +02:00
parent e3a00ab8ac
commit ddfd17c67c
12 changed files with 267 additions and 34 deletions

View file

@ -3,10 +3,35 @@ import QtQuick.Controls as Controls
import QtQuick.Layouts
import org.kde.kirigami as Kirigami
Kirigami.Page {
ColumnLayout {
Controls.Label {
text: qsTr("blah!")
Kirigami.ScrollablePage {
Component {
id: listDelegate
Controls.ItemDelegate {
required property string name
text: name
width: ListView.view.width
}
}
// 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
}
}

View file

@ -20,7 +20,7 @@ Kirigami.GlobalDrawer {
drawerOpen: !isMobile()
edge: Qt.LeftEdge
height: parent.height
modal: isMobile()
modal: false
actions: [
Kirigami.Action {

View file

@ -9,11 +9,14 @@ Kirigami.Page {
ColumnLayout {
id: rootLayout
Layout.fillWidth: true
anchors.fill: parent
Controls.StackView {
id: rootStack
Layout.fillHeight: true
Layout.fillWidth: true
initialItem: HomePage {
}
}