Improve detection of deleted VisualDataModel items.
authorAndrew den Exter <andrew.den-exter@nokia.com>
Wed, 28 Mar 2012 06:30:50 +0000 (16:30 +1000)
committerQt by Nokia <qt-info@nokia.com>
Mon, 21 May 2012 05:52:15 +0000 (07:52 +0200)
commit8c951842d81a73c1fd6712701723430584d1a497
tree8ca50dcf2e2e4a60fd29a100826ab5e8ee3d0ac9
parentcd5df3ec6fdb79260ca5bddff4f3eda9717bd70b
Improve detection of deleted VisualDataModel items.

The data object for each delegate object has a pointer guard with a
virtual objectDestroyed() function, that's a better tool for detecting
deletion than the destructor of a child object.

Change-Id: Iad1516e3daeb5e019ece6c3b2eb65da768cf43cb
Reviewed-by: Bea Lam <bea.lam@nokia.com>
Reviewed-by: Martin Jones <martin.jones@nokia.com>
src/quick/items/qquickvisualdatamodel.cpp
src/quick/items/qquickvisualdatamodel_p_p.h