Contruct per-delegate QQmlContextData directly.
authorAndrew den Exter <andrew.den-exter@nokia.com>
Mon, 2 Apr 2012 03:20:04 +0000 (13:20 +1000)
committerQt by Nokia <qt-info@nokia.com>
Thu, 24 May 2012 00:41:06 +0000 (02:41 +0200)
commitd8d047b75172dc4cf3abd38152d5181ef83975b8
treef808f3986529f4637ee1025708844d13ddc466b2
parentafbde67c01baad017cf7ed385a6415e137269e9e
Contruct per-delegate QQmlContextData directly.

The QQmlContext object created per item is a weighty (QObject) wrapper
around QQmlContextData that isn't utilized except as an intermeditrary
for the QQmlComponent API.  By duplicating a little code out of
QQmlComponent we can avoid the need to ever contruct the wrapper.

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