start implementing model for koto artist
This commit is contained in:
parent
e3a00ab8ac
commit
ddfd17c67c
12 changed files with 267 additions and 34 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
@ -20,7 +20,7 @@ Kirigami.GlobalDrawer {
|
|||
drawerOpen: !isMobile()
|
||||
edge: Qt.LeftEdge
|
||||
height: parent.height
|
||||
modal: isMobile()
|
||||
modal: false
|
||||
|
||||
actions: [
|
||||
Kirigami.Action {
|
||||
|
|
|
@ -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 {
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue