Restore compatibility with custom QVariantList/QVariantMap converters


QVariant::toValue<QVariantList> does not honor explicit custom converters
for a sequentially iterable container to a QVariantList. This breaks
compatibility with Qt 5.12.3 and before, where the old code path using
QVariant::toList() used the custom converter. Do the same for
QVariantMap.

This patch restores the compatibility with old code. The real fix will
target the QVariantList converter code in QtCore - this is just a hotfix
within Qt WebChannel for now.

Task-number: QTBUG-80751
Change-Id: Ic70c6a353aad43ddbaefbc6626a0af87bd0d024f
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
commitbdec52548ca739e5533792c3bf656b8e2cf9fcb6
parent1f793c887773f9b7477a73467aa1e2497ffef25c
authorMilian Wolff <milian.wolff@kdab.com>
committerVolker Hilsheimer <volker.hilsheimer@qt.io>
commit timeWed, 15 Apr 2020 15:57:41 +0200