-
Committer:
Albert Astals Cid
-
Date:
2015-01-29 14:15:41 UTC
-
mto:
(1394.1.1 staging)
-
mto:
This revision was merged to the branch mainline in
revision
1392.
-
Revision ID:
albert.astals@canonical.com-20150129141541-25q8cjy65cvwl6nd
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.