qtdeclarative/tests/auto/qml/qjsengine
Ulf Hermann d2737bdedb QML: Clean up sequence registrations for value types
We want to be able to construct a meaningful list type by surrounding
the internal name of the type with QList<>. Usually this works because
of the way we auto-register sequential containers for types. Only for
the builtins we need to do some special casing. That special casing
should happen in the builtins, not in QtQml, though.

The generic QList<foo> sequence type is implicitly given for any value
type foo these days. There is no need to mention it in .qmltypes.

QtQml retains some extra container declarations that are not straight
QList<foo> for a value type foo. Everything that's registered by the
value type registration anyway is dropped.

We keep the aliases QStringList and QVariantList in the builtins because
they are really common.

Since we now register QVariantList the way it's mandated by the
builtins, we also have to handle it correctly in qv4sequenceobject.cpp.
In particular, we need to append variants as-is rather than poking into
them.

As QStringList is an additional builtin now, we need to teach the type
resolver about it.

Change-Id: I0dfb5b780b27250f36f6886bc4e0926a03c114b4
Reviewed-by: Andrei Golubev <andrei.golubev@qt.io>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2022-02-11 09:36:59 +01:00
..
script/com
translations
CMakeLists.txt tst_qjsengine: Do not depend on widgets 2021-08-26 11:17:17 +02:00
dummy_imports.qml Fix deployment of QtQuick for Android with dummy_imports.qml 2019-08-21 14:58:35 +02:00
exporterror1.mjs Fix error reporting when imports or re-exports in modules fail 2018-10-11 14:40:18 +00:00
idtranslatable-unicode.js
idtranslatable.js
importerror1.mjs Fix error reporting when imports or re-exports in modules fail 2018-10-11 14:40:18 +00:00
modulewithlexicals.mjs Fix use of lexically scoped variables in modules 2018-09-23 20:27:40 +00:00
testmodule.mjs Add API to QJSEngine for importing ECMAScript modules 2018-08-16 11:05:28 +00:00
testregister.mjs Add QJSEngine::registerModule 2021-05-01 17:26:00 -04:00
testregister2.mjs Add QJSEngine::registerModule 2021-05-01 17:26:00 -04:00
testregister3.mjs Add QJSEngine::registerModule 2021-05-01 17:26:00 -04:00
translatable-unicode.js
translatable.js
translatable2.js
tst_qjsengine.cpp QML: Clean up sequence registrations for value types 2022-02-11 09:36:59 +01:00