qt6-bb10/tests/auto/corelib
Volker Hilsheimer 9c9c5d9828 Fix QMetaObject::invokeMethod for free functions and std::bind
Amends 3bf5b5f894, after which free
functions and std::bind could no longer be used as callables in
QMetaMethod::invokeMethod.

For free functions to work we need to decay to function pointers when
choosing what type QtPrivate::Callable aliases.

And std::bind has operator() overloads and the return type cannot be
deduced. So simplify the definition of the ZeroArgFunctor - we know
the function prototype if we know the return type.

Add testcase for calling std::bind and free function, and remove the
now unneeded helpers for functor argument and return type deduction.

Change-Id: I54aac5cb6d660267e6b2f5ab05d583e8826cdf9a
Reviewed-by: Zoltan Gera <zoltan.gera@qt.io>
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
2023-05-11 19:36:55 +02:00
..
animation tests: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-17 21:56:49 +01:00
global Short live Q_NODISCARD_CTOR 2023-04-30 19:42:29 +02:00
io Move the formatting of <chrono> durations to QDebug & QtTest 2023-05-06 17:54:23 +00:00
ipc IPC: tst_QNativeIpcKey: rename duplicate row in test 2023-04-28 22:30:13 -05:00
itemmodels Remove unused variables 2023-04-19 12:55:02 +02:00
kernel Fix QMetaObject::invokeMethod for free functions and std::bind 2023-05-11 19:36:55 +02:00
mimetypes QMimeDatabase: de-duplicate some code in the unittests 2023-05-07 14:29:28 +03:00
platform tests: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-17 21:56:49 +01:00
plugin Q{Plugin,Factory}Loader: downgrade warnings to debug messages 2023-05-05 23:21:52 -07:00
serialization qc14n.h: general cleanup 2023-05-01 22:52:22 +03:00
text Test QLocale's parsing of small fractions with big exponents 2023-05-10 17:30:45 +02:00
thread tst_qthreadpool: expect a warning, cleaning up the test run 2023-05-04 19:40:32 +02:00
time Fix QTimeZone::offsetData() for the case without transitions 2023-05-11 13:46:42 +02:00
tools Remove unused variables 2023-04-19 12:55:02 +02:00
CMakeLists.txt tests: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-17 21:56:49 +01:00