-
Committer:
Albert Astals Cid
-
Date:
2015-02-05 14:07:28 UTC
-
mto:
This revision was merged to the branch mainline in
revision
954.
-
Revision ID:
albert.astals@canonical.com-20150205140728-5s6x4y6leuiqrfpi
Adapt to behaviour change in handling of QVariants from QML to C++ in Qt 5.4
[QTBUG-40431] When a JavaScript object/array is passed to C++ through
a QVariant, the engine no longer immediately converts the object
recursively into a QVariantMap or QVariantList but instead stores a
QJSValue in the QVariant. This prevents a loss of data when the JS
object contains non-primitive types such as function objects for
example. Code that expects the variant type to be exactly
QVariant::Map or QVariant::List may need to be adapted. Registered
conversion functions however ensure that code that merely calls
toMap() or toList() continues to work. Fixes: https://bugs.launchpad.net/bugs/1417963