qt5base-lts/tests/auto/corelib
Fabian Kosmale 9483fcd68a QObject: Handle pointers to incomplete types in auto-connections
The code for the QMetaMethod queuedConnectionTypes overload relied on
QMetaMethod::parameterMetaType and QMetaType::flags() to detect whether
we're dealing with a pointer (and then use the VoidStar metatype instead).
However, if the type was incomplete when the slot was defined, and the
type was not registered when connect was called, we would not find a
metatype for the argument.
However, in that case we might still be able to handle the method, by
checking whether the type name of the arguments ends with a "*".
This patch does that, fixing a regression from 5.15.

Pick-to: 6.5 6.4 6.2
Fixes: QTBUG-108537
Change-Id: I54cc48a3343444480ab9094fe1ebaaa5aa75cee0
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2023-02-14 19:24:22 +01:00
..
animation Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
global QTypeInfo: remove further usages of isPointer / isIntegral 2022-12-30 01:51:27 +01:00
io Deprecate usage of qt_ntfs_permission_lookup 2023-02-14 13:23:19 +01:00
ipc IPC: switch the default key type on Unix to POSIX realtime 2023-01-22 13:02:11 -03:00
itemmodels Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
kernel QObject: Handle pointers to incomplete types in auto-connections 2023-02-14 19:24:22 +01:00
mimetypes QMimeDatabase: add a test to ensure we can detect Unix specials 2023-02-02 12:17:25 -08:00
platform CMake: Remove direct qt_android_generate_deployment_settings call 2022-12-15 20:23:28 +01:00
plugin QUuid: add the ability to specify the byte order for 128-bit IDs 2022-12-16 19:29:10 +01:00
serialization QXmlStreamWriter: fix a thinko in doWriteToDevice(QSV) 2022-12-16 22:58:11 +01:00
text QString: don't detach in replace_helper() 2023-02-09 22:52:01 +02:00
thread QPromise: improve documentation snippet 2023-01-09 10:03:48 +01:00
time Move qtLocalTime() to qtenvironmentvariables.cpp as qLocalTime() 2023-02-03 14:45:31 +01:00
tools tst_qvarlengtharray: fix MyBase trackers for swap() 2023-02-10 23:31:37 +01:00
CMakeLists.txt IPC: Move QSharedMemory and QSystemSemaphore from kernel/ to ipc/ 2023-01-22 13:01:53 -03:00