Use a shared meta-object for VisualDataModel list context objects.
authorAndrew den Exter <andrew.den-exter@nokia.com>
Mon, 21 May 2012 03:04:06 +0000 (13:04 +1000)
committerQt by Nokia <qt-info@nokia.com>
Wed, 30 May 2012 04:01:46 +0000 (06:01 +0200)
commit486ec88d2b88378768487a12dcbf6493c33d5699
treecdbe03a466cf9cd64233582c830e597b984e390d
parent47eb68ab0b8d9ffd357cbad2f74b63ee2cf00dad
Use a shared meta-object for VisualDataModel list context objects.

The objectDestroyed() function on QAbstractDynamicMetaObject makes it
possible to reference count dynamic meta objects so there is no longer
a need to construct an instance per item.

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