qt5base-lts/tests/auto/corelib/kernel/qobject
Olivier Goffart ed0b262de9 QObject::disconnect with new syntax
This add an overload to disconnect which is symetrical to the new
syntax of connect.

It is possible to diconnect connection like this:

QObject::connect( sender, &Sender::valueChanged,
                  receiver, &Receiver::updateValue );
QObject::disconnect( sender, &Sender::valueChanged,
                     receiver, &Receiver::updateValue );

This overload only work with pointer to member function, and not static
functions or functors.

The test is copied from tst_QObject::disconnect(), just
changed the syntax of the connection and disconnection

Change-Id: Ia8f819100cb12098e32877522b97b732b1e676a8
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
2011-11-29 17:08:39 +01:00
..
.gitignore Moving relevant tests to corelib/kernel 2011-09-01 12:42:14 +02:00
moc_oldnormalizeobject.cpp Moving relevant tests to corelib/kernel 2011-09-01 12:42:14 +02:00
oldnormalizeobject.h Moving relevant tests to corelib/kernel 2011-09-01 12:42:14 +02:00
qobject.pro Moving relevant tests to corelib/kernel 2011-09-01 12:42:14 +02:00
signalbug.cpp Cleanup corelib autotests 2011-11-10 04:42:45 +01:00
signalbug.h Cleanup corelib autotests 2011-11-10 04:42:45 +01:00
signalbug.pro Moving relevant tests to corelib/kernel 2011-09-01 12:42:14 +02:00
tst_qobject.cpp QObject::disconnect with new syntax 2011-11-29 17:08:39 +01:00
tst_qobject.pro Cleanup corelib autotests 2011-11-11 02:45:05 +01:00