-
Committer:
Tarmac
-
Author(s):
Albert Astals Cid
-
Date:
2015-01-29 15:17:50 UTC
-
mfrom:
(1388.3.1 staging)
-
Revision ID:
tarmac-20150129151750-9oj2af77g4juyori
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/1395017.
Approved by PS Jenkins bot, Zsombor Egri.