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 {
|
||||
id: listView
|
||||
ScrollView {
|
||||
Layout.fillWidth: true
|
||||
Layout.fillHeight: true
|
||||
clip: true
|
||||
boundsBehavior: Flickable.StopAtBounds
|
||||
model: filteredApiDataModel // Use the filtered model
|
||||
|
||||
delegate: Rectangle {
|
||||
width: listView.width
|
||||
height: 50
|
||||
color: getColors().button
|
||||
ListView {
|
||||
id: listView
|
||||
Layout.fillWidth: true
|
||||
Layout.fillHeight: true
|
||||
clip: true
|
||||
boundsBehavior: Flickable.StopAtBounds
|
||||
model: filteredApiDataModel // Use the filtered model
|
||||
|
||||
RowLayout {
|
||||
anchors.fill: parent
|
||||
spacing: 10
|
||||
anchors.margins: 5
|
||||
delegate: Rectangle {
|
||||
width: listView.width
|
||||
height: 50
|
||||
color: getColors().button
|
||||
|
||||
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 }
|
||||
RowLayout {
|
||||
anchors.fill: parent
|
||||
spacing: 10
|
||||
anchors.margins: 5
|
||||
|
||||
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