summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaj Grönholm <kaj.gronholm@qt.io>2024-05-08 14:29:27 +0300
committerKaj Grönholm <kaj.gronholm@qt.io>2024-05-10 19:48:42 +0300
commit22fc4895fad594e019b4ede253a6e0d86eb9494a (patch)
tree5f229089fa0f436b39f926a51375f19e4f8ebb0e
parent97c160a512bfd0384adecb9ad049f4a38c667160 (diff)
Separate testbed examples in 2 lists
Also make them scrollable in case list doesn't fit into window. Change-Id: I5a4bde137f3a10cc7eadb9cc39b0de92e3978c9e Reviewed-by: Sami Varanka <sami.varanka@qt.io> Reviewed-by: Kaj Grönholm <kaj.gronholm@qt.io>
-rw-r--r--examples/graphs/2d/testbed/qml/testbed/StartupView.qml14
1 files changed, 13 insertions, 1 deletions
diff --git a/examples/graphs/2d/testbed/qml/testbed/StartupView.qml b/examples/graphs/2d/testbed/qml/testbed/StartupView.qml
index f7b90ee..d5c0514 100644
--- a/examples/graphs/2d/testbed/qml/testbed/StartupView.qml
+++ b/examples/graphs/2d/testbed/qml/testbed/StartupView.qml
@@ -53,6 +53,9 @@ Item {
name: "Scatter Properties"
file: "ScatterProperties.qml"
}
+ }
+ ListModel {
+ id: testsModel2
ListElement {
name: "Callout"
file: "Callout.qml"
@@ -135,13 +138,22 @@ Item {
anchors.horizontalCenter: parent.horizontalCenter
anchors.top: topLabel.bottom
anchors.topMargin: 20
+ anchors.bottom: parent.bottom
spacing: 20
+ clip: true
ListView {
id: examplesListView
width: mainView.listItemWidth
- height: count * mainView.listItemHeight
+ height: parent.height
model: testsModel
delegate: listComponent
}
+ ListView {
+ id: examplesListView2
+ width: mainView.listItemWidth
+ height: parent.height
+ model: testsModel2
+ delegate: listComponent
+ }
}
}