summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativeloader/data
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2011-02-02 01:20:29 (GMT)
committerMartin Jones <martin.jones@nokia.com>2011-02-02 01:20:29 (GMT)
commit501180c6fbed0857126da2bb0ff1f17ee35472c6 (patch)
tree74f8b6c25c955e0e23d27dfde4962525c309c7ae /tests/auto/declarative/qdeclarativeloader/data
parente09cd7062bb50067eb2d2db9197eb9d4ee170360 (diff)
downloadQt-501180c6fbed0857126da2bb0ff1f17ee35472c6.zip
Qt-501180c6fbed0857126da2bb0ff1f17ee35472c6.tar.gz
Qt-501180c6fbed0857126da2bb0ff1f17ee35472c6.tar.bz2
Make sure we update Loader size if item size changes after creation.
Task-number: QTBUG-17114 Reviewed-by: Bea Lam
Diffstat (limited to 'tests/auto/declarative/qdeclarativeloader/data')
-rw-r--r--tests/auto/declarative/qdeclarativeloader/data/QTBUG_17114.qml18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativeloader/data/QTBUG_17114.qml b/tests/auto/declarative/qdeclarativeloader/data/QTBUG_17114.qml
new file mode 100644
index 0000000..8a49733
--- /dev/null
+++ b/tests/auto/declarative/qdeclarativeloader/data/QTBUG_17114.qml
@@ -0,0 +1,18 @@
+import QtQuick 1.1
+
+Rectangle {
+ property real loaderWidth: loader.width
+ property real loaderHeight: loader.height
+ width: 200
+ height: 200
+
+ Loader {
+ id: loader
+ sourceComponent: Item {
+ property real iwidth: 32
+ property real iheight: 32
+ width: iwidth
+ height: iheight
+ }
+ }
+}