VisualDataModel performance improvements.
authorAndrew den Exter <andrew.den-exter@nokia.com>
Wed, 21 Dec 2011 04:23:41 +0000 (14:23 +1000)
committerQt by Nokia <qt-info@nokia.com>
Fri, 23 Dec 2011 06:23:55 +0000 (07:23 +0100)
commited361944159a99abe67df7a4a883d5ee6f4ec73f
tree209ad261a14389e8fa3640523a92a53576e166c6
parentfb00bd445b1d77ffd7be8c60fce30f58e53eb6de
VisualDataModel performance improvements.

Avoid a linear scan of all cache items and associated accesses by
getting the cache item from an objects  vdm attached object instead.

Make the model context property a property of the context object instead
of a separate property on the context object.

Parent the vdm attached object to the delegate object with
QDeclarative_setParent_noEvent instead of passing it in the constructor.

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