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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue