qt6-bb10/tests/auto/corelib
Fabian Kosmale 9d6ba110e8 QMetaType: Store QMetaObject for pointer to const QObject, too
Before this change, the QMetaType for T const* where T is derived from
QObject would not store the static QMetaObject of T. This commit changes
this. As a consequence, the metatype system can now convert between
const and non-const pointers to QObject. Note that this allows casting
const away; but so does C++ with const_cast.
In addition, a new flag, QMetaType::IsImmutable is introduced, and used
to tag the metatypes of pointer to const types. This allows code to
discern between pointers to mutable and const QObjects, which is
relevant for the QML engine.

Task-number: QTBUG-82354
Change-Id: I3e4e4f39f565bd99a65e161528ce5304df73d6d6
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2021-02-26 09:10:31 +01:00
..
animation Port QPauseAnimation to the new property system 2021-01-26 21:47:47 +01:00
global Fix warning about unused variable 2021-02-18 11:25:01 +01:00
io QProcess/Unix: remove outdated notices about use of posix_spawn() on QNX 2021-02-21 22:48:38 -08:00
itemmodels Make sure QMimeData is fully declared 2021-01-11 16:57:41 +01:00
kernel QMetaType: Store QMetaObject for pointer to const QObject, too 2021-02-26 09:10:31 +01:00
mimetypes Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
plugin Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
serialization QJsonObject: Fix operator<=() 2021-02-18 11:22:51 +00:00
text macOS: Be honest about the system locale 2021-02-11 15:01:45 +01:00
thread tst_QFuture::continuationsWithContext: fix the flakiness 2021-02-25 16:08:43 +01:00
time Fix transitionEachZone() failures on Android 2021-02-24 12:08:57 +01:00
tools Add more support for structured bindings 2021-02-25 16:08:44 +01:00
CMakeLists.txt Move QStateMachine from QtCore to QtScxml 2020-08-24 20:10:25 +02:00