qt5base-lts/src
Mårten Nordheim a7d2855b3c invokeMethod: enable passing parameters to overload taking functors
This was missing for a while, and there is nothing fundamentally
missing for it to work.

With the more recent work around slot objects and invokeMethod in
general, it is a good time to add support for this.

In this patch, when connecting to a functor, it automatically deduces
the overload to call based on the arguments passed to invokeMethod.

Sharing code with QObject::connect could be done, but they have a
key difference that makes it harder:
With signal emissions we throw away trailing arguments that are not
used: i.e. `signal(int, int)` can be connected to `slot(int)` or
`slot()`. With invokeMethod that's not a thing. So we will need a way
to toggle that behavior during resolution.

[ChangeLog][QtCore][QMetaObject] Added support for passing parameters
to the overload of QMetaObject::invokeMethod that takes a functor. These
new overloads must have the return-value passed through qReturnArg().

Change-Id: If4fcbb75515b19e72fab80115c109efa37e6626e
Reviewed-by: Ievgenii Meshcheriakov <ievgenii.meshcheriakov@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2023-08-24 07:45:04 +02:00
..
3rdparty Update version of FreeType attribution 2023-08-22 09:35:05 +02:00
android Android: Fix wrong position of EditPopupMenu 2023-08-18 10:07:34 +00:00
assets Add XDG theme file for example icons 2023-06-26 17:32:10 +00:00
concurrent [docs] Link from QtConcurent::run() to QThreadPool::start(Callable&&) 2023-08-04 19:49:32 +02:00
corelib invokeMethod: enable passing parameters to overload taking functors 2023-08-24 07:45:04 +02:00
dbus QDBusServer: Delegate construction to two-argument constructor 2023-08-22 16:26:02 +02:00
entrypoint src: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-10 23:36:51 +01:00
gui Fix build with -no-feature-opengl 2023-08-23 08:25:05 +09:00
network qhttpnetworkheader: port some methods to QBAV 2023-08-23 07:00:37 +00:00
opengl Doc: Qt OpenGL: Remove duplicate source dir from documentation config 2023-08-22 09:13:06 +00:00
openglwidgets QOpenGLWidget: invalidate the depth/stencil after rendering 2023-07-26 06:46:51 +02:00
platformsupport Fix link to platform window in QAndroidPlatformBackingStore::flush() 2023-08-04 10:40:05 +02:00
plugins macOS: Re-apply QWindow visibility when moved between NSWindows 2023-08-23 12:48:20 +02:00
printsupport Enable QT_NO_CONTEXTLESS_CONNECT for most of QtBase 2023-07-11 22:44:29 +02:00
sql QSqlIndex: implement member swap() and use a macro for move-assignment 2023-08-23 14:21:57 +00:00
testlib Improve Qt Test documentation regarding skipping/expecting failures 2023-08-16 23:17:12 +08:00
tools Remove elfreader and other unix leftovers from windeployqt 2023-08-22 11:15:13 +02:00
widgets QDialogButtonBox: Use separate eventFilter class 2023-08-23 14:56:16 +02:00
xml Doc: Remove link to removed example 2023-08-07 13:16:37 +02:00
CMakeLists.txt Add Qt icon library for examples 2023-04-22 18:14:38 +03:00