Fix package items not being destroyed when a package is destroyed.
authorAndrew den Exter <andrew.den-exter@nokia.com>
Thu, 8 Dec 2011 07:52:35 +0000 (17:52 +1000)
committerQt by Nokia <qt-info@nokia.com>
Mon, 12 Dec 2011 04:40:30 +0000 (05:40 +0100)
commitb156b5d8c313f3b3711b1da6e06768473db3cf12
treeaba1c52e8052b9fb61918e6458d74949bfc156e0
parent18ce33ecd994666d42e438c4aa62302c72465458
Fix package items not being destroyed when a package is destroyed.

The views parent the delegate items to themselves on creation, before
we delete the package we need to reparent them back to it or they'll
persist indefinately.

Change-Id: I01a36fadb2b0ff1035de46ec2b84a54d73c49bcf
Reviewed-by: Bea Lam <bea.lam@nokia.com>
src/quick/items/qquickvisualdatamodel.cpp
tests/auto/qtquick2/qquickvisualdatamodel/data/packageView.qml [new file with mode: 0644]
tests/auto/qtquick2/qquickvisualdatamodel/tst_qquickvisualdatamodel.cpp