Destroy incubated objects if they are not claimed when ready.
authorAndrew den Exter <andrew.den-exter@nokia.com>
Tue, 5 Jun 2012 04:16:50 +0000 (14:16 +1000)
committerQt by Nokia <qt-info@nokia.com>
Fri, 8 Jun 2012 01:54:01 +0000 (03:54 +0200)
commitc98947c6011dacdde984929a9923958bae379fa3
tree6ece76a82e00021ba9176d2a8487e24e683fea8c
parent836e075ea016f960b0e983fc96f61466e064757b
Destroy incubated objects if they are not claimed when ready.

If model data is removed while an object is incubating for it the view
cannot cancel the incubation because the index is invalidated. So if
the object has not been referenced after signalling it is ready assume
it's been abandoned and destroy it.

Change-Id: I32708e940cfbccbe0d330ad7822f29d3c1f39d13
Reviewed-by: Martin Jones <martin.jones@nokia.com>
src/quick/items/qquickvisualdatamodel.cpp
src/quick/items/qquickvisualdatamodel_p_p.h
tests/auto/quick/qquickvisualdatamodel/tst_qquickvisualdatamodel.cpp