summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativeitem/data
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2010-06-15 05:23:28 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2010-06-15 05:23:28 (GMT)
commitb18a343cc63f93a8e97a8c6c623e56a666775b57 (patch)
tree7a35d17235f26ed971f4367756a280ebfbc8e6a3 /tests/auto/declarative/qdeclarativeitem/data
parent7390cfbcbd5000a7da3eb5dbef790d114b06d042 (diff)
downloadQt-b18a343cc63f93a8e97a8c6c623e56a666775b57.zip
Qt-b18a343cc63f93a8e97a8c6c623e56a666775b57.tar.gz
Qt-b18a343cc63f93a8e97a8c6c623e56a666775b57.tar.bz2
Fix bug with childrenRect resizing on startup.
This also optimizes the implementation. Task-number: QTBUG-11383
Diffstat (limited to 'tests/auto/declarative/qdeclarativeitem/data')
-rw-r--r--tests/auto/declarative/qdeclarativeitem/data/childrenRectBug.qml23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativeitem/data/childrenRectBug.qml b/tests/auto/declarative/qdeclarativeitem/data/childrenRectBug.qml
new file mode 100644
index 0000000..4a2f056
--- /dev/null
+++ b/tests/auto/declarative/qdeclarativeitem/data/childrenRectBug.qml
@@ -0,0 +1,23 @@
+import Qt 4.7
+
+Rectangle {
+ width: 400
+ height: 200
+
+ Item {
+ objectName: "theItem"
+ anchors.centerIn: parent
+ width: childrenRect.width
+ height: childrenRect.height
+ Rectangle {
+ id: text1
+ anchors.verticalCenter: parent.verticalCenter
+ width: 100; height: 100; color: "green"
+ }
+ Rectangle {
+ anchors.left: text1.right
+ anchors.verticalCenter: parent.verticalCenter
+ width: 100; height: 100; color: "green"
+ }
+ }
+}