Fix setting of target lists when target Transition is not set
authorBea Lam <bea.lam@nokia.com>
Mon, 5 Mar 2012 23:39:24 +0000 (09:39 +1000)
committerQt by Nokia <qt-info@nokia.com>
Wed, 7 Mar 2012 05:31:56 +0000 (06:31 +0100)
commit22a53bcd69d39a5ea128d53231e9e51455a98cc4
tree182a6ff3c0871285f437a8470e19d2ad4f83a2cf
parent83b4f5cc4f2661a41bbed4e17606a5e40bd06b7c
Fix setting of target lists when target Transition is not set

Target items are now set from QQuickViewItem::prepareTransition()
instead of QQuickItemView and QQuickPositioner to ensure they are
for a displaced transition even if there is no matching target
transition.

Task-number: QTBUG-24535
Change-Id: I0a6c7e3c6198786527014d421b96fc562c6186dc
Reviewed-by: Martin Jones <martin.jones@nokia.com>
src/quick/items/qquickitemview.cpp
src/quick/items/qquickitemviewtransition.cpp
src/quick/items/qquickitemviewtransition_p.h
src/quick/items/qquickpositioners.cpp
tests/auto/quick/qquickgridview/data/displacedTransitions.qml
tests/auto/quick/qquickgridview/tst_qquickgridview.cpp
tests/auto/quick/qquicklistview/data/displacedTransitions.qml
tests/auto/quick/qquicklistview/tst_qquicklistview.cpp