qt5base-lts/tests/auto
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
..
cmake Fix qt_add_big_resources with namespace builds 2021-01-19 14:17:55 +01:00
concurrent Fix a few compiler warnings in tests 2021-02-02 12:06:05 +01:00
corelib QMetaType: Store QMetaObject for pointer to const QObject, too 2021-02-26 09:10:31 +01:00
dbus dbus: Fix missing QVersionNumber include 2021-01-25 12:09:17 +01:00
gui Add more support for structured bindings 2021-02-25 16:08:44 +01:00
guiapplauncher Move QStateMachine from QtCore to QtScxml 2020-08-24 20:10:25 +02:00
network Fix some warnings about virtual/override 2021-02-23 15:15:45 +01:00
opengl Remove the qmake project files 2021-01-07 15:32:28 +01:00
other Move QEMU emulation detector to QTest 2021-02-13 10:02:51 +02:00
printsupport Remove the qmake project files 2021-01-07 15:32:28 +01:00
shared Remove false Q_UNREACHABLE from shaping code 2021-02-03 09:44:44 +01:00
sql Fix a few compiler warnings in tests 2021-02-02 12:06:05 +01:00
testlib Move QEMU emulation detector to QTest 2021-02-13 10:02:51 +02:00
tools Move build tools to libexec instead of the bin dir 2021-02-23 17:02:30 +01:00
widgets Verify that QFileIconProvider returns valid pixmaps 2021-02-23 15:34:05 +01:00
xml tst_qdom: clean-up the code enabled only before Qt 6 2021-01-15 15:22:08 +01:00
CMakeLists.txt CMake: Fix building with -DQT_FEATURE_gui=OFF 2020-09-15 20:05:32 +02:00
network-settings.h Replace QtTest headers with QTest 2020-12-22 15:20:30 +01:00