native: table srewable
This commit is contained in:
parent
e26c33533f
commit
f1001578d5
1 changed files with 24 additions and 19 deletions
|
@ -104,30 +104,35 @@ Rectangle {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ListView {
|
ScrollView {
|
||||||
id: listView
|
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
clip: true
|
|
||||||
boundsBehavior: Flickable.StopAtBounds
|
|
||||||
model: filteredApiDataModel // Use the filtered model
|
|
||||||
|
|
||||||
delegate: Rectangle {
|
ListView {
|
||||||
width: listView.width
|
id: listView
|
||||||
height: 50
|
Layout.fillWidth: true
|
||||||
color: getColors().button
|
Layout.fillHeight: true
|
||||||
|
clip: true
|
||||||
|
boundsBehavior: Flickable.StopAtBounds
|
||||||
|
model: filteredApiDataModel // Use the filtered model
|
||||||
|
|
||||||
RowLayout {
|
delegate: Rectangle {
|
||||||
anchors.fill: parent
|
width: listView.width
|
||||||
spacing: 10
|
height: 50
|
||||||
anchors.margins: 5
|
color: getColors().button
|
||||||
|
|
||||||
Text { text: model.name; color: getColors().text; Layout.fillWidth: true }
|
RowLayout {
|
||||||
Text { text: model.key; color: getColors().text; Layout.fillWidth: true }
|
anchors.fill: parent
|
||||||
Text { text: model.amount; color: getColors().text; Layout.fillWidth: true }
|
spacing: 10
|
||||||
Text { text: model.start; color: getColors().text; Layout.fillWidth: true }
|
anchors.margins: 5
|
||||||
Text { text: model.end; color: getColors().text; Layout.fillWidth: true }
|
|
||||||
Text { text: model.group; color: getColors().text; Layout.fillWidth: true }
|
Text { text: model.name; color: getColors().text; Layout.fillWidth: true }
|
||||||
|
Text { text: model.key; color: getColors().text; Layout.fillWidth: true }
|
||||||
|
Text { text: model.amount; color: getColors().text; Layout.fillWidth: true }
|
||||||
|
Text { text: model.start; color: getColors().text; Layout.fillWidth: true }
|
||||||
|
Text { text: model.end; color: getColors().text; Layout.fillWidth: true }
|
||||||
|
Text { text: model.group; color: getColors().text; Layout.fillWidth: true }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue