aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qquickitem2/data/childrenRect.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/declarative/qquickitem2/data/childrenRect.qml')
-rw-r--r--tests/auto/declarative/qquickitem2/data/childrenRect.qml27
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/auto/declarative/qquickitem2/data/childrenRect.qml b/tests/auto/declarative/qquickitem2/data/childrenRect.qml
new file mode 100644
index 0000000000..ebc57aefbe
--- /dev/null
+++ b/tests/auto/declarative/qquickitem2/data/childrenRect.qml
@@ -0,0 +1,27 @@
+import QtQuick 2.0
+
+Rectangle {
+ width: 400
+ height: 400
+
+ property int childCount: 0;
+
+ Item {
+ objectName: "testItem"
+ width: childrenRect.width
+ height: childrenRect.height
+
+ Repeater {
+ id: repeater
+ model: childCount
+ delegate: Rectangle {
+ x: index*10
+ y: index*20
+ width: 10
+ height: 20
+
+ color: "red"
+ }
+ }
+ }
+}