qt6-bb10/tests/auto
Giuseppe D'Angelo c613dd4765 QMetaType: disable conversion from smart pointer<const QObject>
QMetaType can register a converter from a smart pointer class to
QObject *. The code tries to do so even if the smart pointer is
actually holding a pointer to a _const_ QObject
(e.g. shared_ptr<const QObject>), causing a compile error:

  ../src/qt5/qtbase/build/include/QtCore/../../../src/corelib/kernel/qmetatype.h:1208:32: error: invalid conversion from ‘const QObject*’ to ‘QObject*’ [-fpermissive]
   1208 |             return p.operator->();
        |                    ~~~~~~~~~~~~^~
        |                                |
        |                                const QObject*

Disable the conversion if indeed the source is const qualified.

Change-Id: I9e9bc5992f74131e5cfd6ece9b83d4f26d370e92
Fixes: QTBUG-103741
Pick-to: 6.2 6.3
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2022-05-21 11:43:59 +02:00
..
bic/data Add BiC data for the new way to do BiC testing 2022-05-12 13:33:41 +03:00
cmake Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
concurrent QtConcurrent: prevent conversion of ReduceOption to initial value 2022-05-20 17:11:15 +02:00
corelib QMetaType: disable conversion from smart pointer<const QObject> 2022-05-21 11:43:59 +02:00
dbus QDBusArgument: ensure std::vector isn't seen as an associative container 2022-05-17 01:27:33 +02:00
gui xcb: Delete touch points without target windows 2022-05-20 10:26:18 +02:00
guiapplauncher Move QStateMachine from QtCore to QtScxml 2020-08-24 20:10:25 +02:00
network unblacklist passing tests 2022 2022-05-18 23:59:19 +02:00
opengl Remove the qmake project files 2021-01-07 15:32:28 +01:00
other Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
printsupport Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
shared Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
sql Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
testlib Guard the use of QWinEventNotifier in tests 2022-05-17 02:51:22 +02:00
tools Make uic generate correct C++ comments 2022-05-18 11:53:26 +02:00
widgets Fix crash in tst_qquicktext::implicitSize 2022-05-20 13:14:01 +02:00
xml Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
CMakeLists.txt Only configure one test for wasm 2022-05-12 18:55:04 +02:00
network-settings.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00