Qt Declarative (Quick 2)
Go to file
Ulf Hermann b0fc028cb5 QML: Allow named lists of value types
We register QList<T> as sequential container type for any value type T
we get. This way we can always find a type to use for list<t> with t
being a value type. The metatypes are shuffled around so that we have an
easier time associating a type with its list and vice versa.

As QQmlPropertyData's isQList flag denotes both QQmlListProperty<T> and
QList<T> now, we need to use QMetaType::IsQmlList more often.

Conversely, any name given to extra sequential containers registered via
QML_SEQUENTIAL_CONTAINER is explicitly ignored now. As you can do
list<foo> for any type foo now, there is not much of a point in having
further named container registrations for the same type. It would just
make things more complicated. Mind that the name had already been
ignored before, just not explicitly.

[ChangeLog][QtQml] You can now use lists of value types in QML. For
example a property of type list<int> will hold a list of integers.

Task-number: QTBUG-82443
Change-Id: I7bee61cee3963dae5d231bf59f70b8012984371d
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2022-01-28 15:03:00 +01:00
cmake Restore comment describing how the compile hash works 2022-01-26 11:18:54 +01:00
coin Doc: Enable zero warning limit for documentation 2022-01-14 00:05:08 +01:00
dist Merge qtquickcontrols2 into qtdeclarative 2021-07-28 11:21:25 +02:00
examples Improve examples CMakeLists.txt 2022-01-24 13:25:13 +01:00
features
src QML: Allow named lists of value types 2022-01-28 15:03:00 +01:00
tests QML: Allow named lists of value types 2022-01-28 15:03:00 +01:00
tools Fix qmlscene CMakeLists.txt 2022-01-24 17:39:21 +00:00
.cmake.conf Bump version 2021-09-14 08:16:35 +03:00
.gitattributes qmlformat: improve testing of file based options 2021-11-04 13:35:48 +01:00
.gitignore Merge qtquickcontrols2 into qtdeclarative 2021-07-28 11:21:25 +02:00
.gitmodules Update to the latest version of the ecmascript test suite 2018-04-26 20:26:36 +00:00
.tag Use tree hash rather than commit hash in .tag file 2022-01-25 23:55:27 +01:00
CMakeLists.txt qmlls: qml language server implementation 2021-12-21 12:25:41 +01:00
LICENSE.FDL
LICENSE.GPL2
LICENSE.GPL3
LICENSE.GPL3-EXCEPT
LICENSE.LGPL3
README.md Rewrite README.md 2021-08-12 13:15:17 +00:00
conanfile.py Remove the qml_sequence_object feature flag 2022-01-15 14:22:42 +01:00
configure.cmake CMake: Add missing qt_cmdline.cmake files 2021-04-16 11:03:59 +02:00
dependencies.yaml Update dependencies on 'dev' in qt/qtdeclarative 2022-01-24 17:38:29 +00:00
qt_cmdline.cmake Merge qtquickcontrols2 into qtdeclarative 2021-07-28 11:21:25 +02:00
qtdeclarative.doxy Add doxyfile for building doxygen documentation 2018-08-16 15:54:40 +00:00
sync.profile Split QML registration macros into their own module 2021-12-02 12:52:42 +01:00