Fix view delegate parent binding regression.
authorMartin Jones <martin.jones@nokia.com>
Tue, 12 Jun 2012 01:54:40 +0000 (11:54 +1000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 12 Jun 2012 13:40:13 +0000 (15:40 +0200)
commit14e15458a53ea5de16d829dd0dce0d9d0c4f1611
treebbd0f7b1df539ad06f252196a2fd1bdbd7f5a1e6
parenteacbc7805e937e64b7e117705919b214aed4f736
Fix view delegate parent binding regression.

762b4d90110465aeceb96f44cd06dcda229dfe89 introduced a regression by
setting the item parent after completion.  This was to avoid rendering
an incubated object before completion.  However this breaks bindings.

Restore setting the item parent before completion, and ensure items are
not rendered until completed.

Change-Id: Ifc9d0c34ee62e687889c32ffab7c091b4c8cc470
Reviewed-by: Bea Lam <bea.lam@nokia.com>
src/quick/items/qquickitem.cpp
src/quick/items/qquickitemview.cpp
tests/auto/quick/qquicklistview/data/parentBinding.qml [new file with mode: 0644]
tests/auto/quick/qquicklistview/tst_qquicklistview.cpp