diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2022-12-22 10:15:47 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2023-01-04 08:55:55 +0100 |
commit | 32a9015c8f511608d98a9fdf16795b32c52052c3 (patch) | |
tree | 8608a6ed31eb45ac8f24ed83082418786f89e341 /tests/auto/qml/qqmlproperty/data | |
parent | bb06d1382174b3a1ce560790df6432c9bf67a1cc (diff) |
QML: Re-allow assigning QVariantList to arbitrary other lists
Since we can assign a QVariant to any other singular value, we should be
able to do the same with lists of QVariant. This ability was lost when
we stopped converting QVariantList to JS array but rather started to
express it as QV4::Sequence.
As a drive-by, generalize the messy code that allows assigning singular
values to lists. This should also just work for any singular value and
any kind of list.
Fixes: QTBUG-109584
Pick-to: 6.4 6.5
Change-Id: Icab1dceff332c5fc4fae9e7e8a8b5fde9f0b0ea9
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tests/auto/qml/qqmlproperty/data')
-rw-r--r-- | tests/auto/qml/qqmlproperty/data/assignVariantList.qml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmlproperty/data/assignVariantList.qml b/tests/auto/qml/qqmlproperty/data/assignVariantList.qml new file mode 100644 index 0000000000..78565b64b9 --- /dev/null +++ b/tests/auto/qml/qqmlproperty/data/assignVariantList.qml @@ -0,0 +1,6 @@ +import Test +import QtQml + +ListHolder { + doubleList: varList +} |