qt5base-lts/src/corelib
Giuseppe D'Angelo 7d4d47de70 QObject::connect(): fail to connect to a functor if UniqueConnection is passed
The connect() documentation makes it clear that UniqueConnection does
not work with free functions / function objects and the like; only with
actual PMFs. Rather than silently *ignoring* the flag, be vocal about its
presence by warning, and make the connection fail (as the user has
passed an illegal argument).

[ChangeLog][QtCore][QObject] QObject::connect() now will refuse to
connect a signal to a free function / function object if UniqueConnection
is passed. Note that UniqueConnection has never worked for such
connections -- the flag was simply ignored, and they were established
multiple times. Now, the flag is not ignored and results in a connection
failure (as well as a runtime warning by Qt).

Change-Id: I6509667018c74f9bd24910cde0a1b16c5f84f064
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2021-08-27 15:45:25 +02:00
..
animation Fix qdoc warning: signal is not const 2021-07-14 16:17:33 +02:00
compat QUuid: port to QAnyStringView 2021-07-30 22:54:28 +02:00
doc QLocale: improve documentation snippet 2021-08-26 15:31:53 +02:00
global Doc: Fix documentation issues for Qt Core 2021-08-24 23:50:23 +02:00
io QUrl: Implement UTS #46 2021-08-26 16:55:05 +02:00
itemmodels emit layoutAboutToBeChanged timely 2021-07-20 21:27:27 +01:00
kernel QObject::connect(): fail to connect to a functor if UniqueConnection is passed 2021-08-27 15:45:25 +02:00
mimetypes QMimeBinaryProvider: cache comments and globPatterns 2021-06-17 17:36:29 +03:00
platform Pass QDeadlineTimer by value in runOnAndroidMainThread() 2021-08-01 21:13:07 +00:00
plugin QLibrary: use QStringTokenizer in isLibrary() 2021-08-21 01:28:27 +02:00
serialization QCborValue: add asserts to encoding method 2021-08-19 16:42:32 +02:00
text unicode: Regenerate Unicode tables 2021-08-26 16:55:05 +02:00
thread wasm: enable the new event dispatcher for qtcore 2021-08-27 15:45:25 +02:00
time Doc: Fix documentation issues for Qt Core 2021-08-24 23:50:23 +02:00
tools Doc: Fix documentation issues for Qt Core 2021-08-24 23:50:23 +02:00
CMakeLists.txt wasm: add new event dispatcher implementation 2021-08-27 15:45:25 +02:00
configure.cmake Turn off feature timezone for emscripten 2021-08-06 14:31:11 +02:00
debug_script.py corelib: update debug_script to python 3 2021-07-08 18:51:00 +02:00
Qt6AndroidMacros.cmake Add the json option to disable the zstd based compression 2021-08-23 20:05:27 +02:00
Qt6CoreConfigExtras.cmake.in CMake: Fix global 'apk' target to actually build all apks 2021-06-08 22:37:50 +02:00
Qt6CoreConfigureFileTemplate.in CMake: Fix unnecessary rebuilding upon reconfiguration 2020-10-30 17:19:27 +01:00
Qt6CoreMacros.cmake CMake: Fix automatic iOS bundle id extraction 2021-08-24 21:24:43 +02:00
Qt6CTestMacros.cmake CMake: Build a subset of tests when targeting iOS in the CI 2021-08-26 16:40:15 +02:00
Qt6WasmMacros.cmake CMake: Make qt6_wasm_add_target_helpers an internal function 2021-08-04 17:01:11 +02:00
qt_cmdline.cmake CMake: Re-implement configure/qmake's command line handling in CMake 2020-08-17 08:08:20 +02:00
QtCore.dynlist
qtcore.tracepoints Reduce amount of tracepoints required for event tracking 2019-05-02 14:15:58 +00:00