Allow binding the size of a Loader to its item.
authorMartin Jones <martin.jones@nokia.com>
Thu, 16 Feb 2012 03:45:02 +0000 (13:45 +1000)
committerQt by Nokia <qt-info@nokia.com>
Thu, 16 Feb 2012 05:36:38 +0000 (06:36 +0100)
commit990a95fa3760af233195f87281dfc354002284a0
tree287ac2a8b5e0350b21c3d72fe763abce3dc718ff
parentcadb17a958653fbfea31ff2f924eb0d72b3f83a1
Allow binding the size of a Loader to its item.

If the size of the Loader is bound to the item, the item was resized
before the binding was evaluated, resulting in an item height of 0.
This change allows bindings to the item to be evaluated before we
apply the resize logic.

Task-number: QTBUG-22628
Change-Id: I30acdb54214b422a9d4aa4e7e02a0af3674322db
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
src/quick/items/qquickloader.cpp
tests/auto/qtquick2/qquickloader/data/sizebound.qml [new file with mode: 0644]
tests/auto/qtquick2/qquickloader/tst_qquickloader.cpp