aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qsglistview/data/sizelessthan1.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/declarative/qsglistview/data/sizelessthan1.qml')
-rw-r--r--tests/auto/declarative/qsglistview/data/sizelessthan1.qml26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/auto/declarative/qsglistview/data/sizelessthan1.qml b/tests/auto/declarative/qsglistview/data/sizelessthan1.qml
new file mode 100644
index 0000000000..aa9dc20ae9
--- /dev/null
+++ b/tests/auto/declarative/qsglistview/data/sizelessthan1.qml
@@ -0,0 +1,26 @@
+import QtQuick 2.0
+
+Rectangle {
+ width: 240
+ height: 320
+ color: "#ffffff"
+ Component {
+ id: myDelegate
+ Rectangle {
+ id: wrapper
+ objectName: "wrapper"
+ height: 0.5
+ width: 240
+ color: ((index % 2) == 1 ? "red" : "blue")
+ }
+ }
+ ListView {
+ id: list
+ objectName: "list"
+ focus: true
+ width: 240
+ height: 320
+ model: testModel
+ delegate: myDelegate
+ }
+}