diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2010-08-10 01:50:49 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2010-08-10 01:50:49 (GMT) |
commit | 6feb5b75ce96aeeefee189af003949db8c031519 (patch) | |
tree | 1d079b5ed48007f3dff4a4ffaced61eed83d9012 /tests/auto/declarative/qdeclarativeitem/data/childrenRectBug3.qml | |
parent | 27b5da4ff5a762df0ab3e98ecde9dac4aa589178 (diff) | |
download | Qt-6feb5b75ce96aeeefee189af003949db8c031519.zip Qt-6feb5b75ce96aeeefee189af003949db8c031519.tar.gz Qt-6feb5b75ce96aeeefee189af003949db8c031519.tar.bz2 |
Don't double-add item change listeners.
When a Repeater was used as the child of an Item binding to childrenRect,
the item change listener was being added twice for the items created
by the Repeater.
Task-number: QTBUG-12722
Diffstat (limited to 'tests/auto/declarative/qdeclarativeitem/data/childrenRectBug3.qml')
-rw-r--r-- | tests/auto/declarative/qdeclarativeitem/data/childrenRectBug3.qml | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativeitem/data/childrenRectBug3.qml b/tests/auto/declarative/qdeclarativeitem/data/childrenRectBug3.qml new file mode 100644 index 0000000..f19ab4f --- /dev/null +++ b/tests/auto/declarative/qdeclarativeitem/data/childrenRectBug3.qml @@ -0,0 +1,15 @@ +import Qt 4.7
+
+Rectangle {
+ width: 300
+ height: 300
+
+ Rectangle {
+ height: childrenRect.height
+
+ Repeater {
+ model: 1
+ Rectangle { }
+ }
+ }
+}
|