Doc fix: functions may actually have fewer arguments than the signal

See tst_QObject::connectFunctorArgDifference()

Change-Id: I8b027fd3095ff7f90e5087be94978b05db79b120
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
This commit is contained in:
Andreas Hartmetz 2020-08-30 11:55:04 +02:00
parent 7406949858
commit 77d63db06f

View File

@ -4738,9 +4738,8 @@ void qDeleteInEventHandler(QObject *o)
The signal must be a function declared as a signal in the header. The signal must be a function declared as a signal in the header.
The slot function can be any function or functor that can be connected The slot function can be any function or functor that can be connected
to the signal. to the signal.
A function can be connected to a given signal if the signal has at A slot function can be connected to a given signal if the signal has at
least as many argument as the slot. A functor can be connected to a signal least as many arguments as the slot function. There must exist implicit
if they have exactly the same number of arguments. There must exist implicit
conversion between the types of the corresponding arguments in the conversion between the types of the corresponding arguments in the
signal and the slot. signal and the slot.
@ -4778,9 +4777,8 @@ void qDeleteInEventHandler(QObject *o)
The signal must be a function declared as a signal in the header. The signal must be a function declared as a signal in the header.
The slot function can be any function or functor that can be connected The slot function can be any function or functor that can be connected
to the signal. to the signal.
A function can be connected to a given signal if the signal has at A slot function can be connected to a given signal if the signal has at
least as many argument as the slot. A functor can be connected to a signal least as many arguments as the slot function. There must exist implicit
if they have exactly the same number of arguments. There must exist implicit
conversion between the types of the corresponding arguments in the conversion between the types of the corresponding arguments in the
signal and the slot. signal and the slot.