Avoid recreating QVariantLists when extracted from a QVariant
authorJocelyn Turcotte <jturcotte@woboq.com>
Mon, 10 Aug 2015 19:39:04 +0000 (21:39 +0200)
committerJocelyn Turcotte (Woboq GmbH) <jturcotte@woboq.com>
Mon, 24 Aug 2015 21:03:24 +0000 (21:03 +0000)
commit1977855f3115ab9ad1642b522840ff3424a5f2fe
tree4cd370bd01c9fe1d5f8889d171f98507e8470a37
parent2f43ac9dcdf4681267538f046a3d1b2c82ae0746
Avoid recreating QVariantLists when extracted from a QVariant

Wrapping a QVariantList in a QVariant to pass it to QML would
trigger a deep copy each time QML would try to access elements
in the list (specifically in QQmlListAccessor::at).

This reverts a part of 8c4deff51c8064f5a15cae0342bfa66b6663662b
by specifying the associative array conversions explicitly without
including the current type in the list of types to convert through
an iteration.

Task-number: QTBUG-41403
Change-Id: If9fddfe6d36f789ac4aa61a7c32677cd1dd077d8
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
src/corelib/kernel/qmetatype.h
src/corelib/kernel/qvariant.h