qt5base-lts/tests/auto/corelib/kernel
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
..
qabstractitemmodel Fix linking of autotests on Windows. 2011-11-29 12:28:30 +01:00
qcoreapplication Fixed compile of autotests with -qtnamespace. 2011-11-18 00:07:51 +01:00
qeventloop Fix linking of autotests on Windows. 2011-11-29 12:28:30 +01:00
qitemmodel Fix linking of autotests on Windows. 2011-11-29 12:28:30 +01:00
qmath Cleanup corelib autotests 2011-11-11 02:45:05 +01:00
qmetaobject moc: support mapping pointers to member functions to indexes 2011-11-14 15:52:26 +01:00
qmetaobjectbuilder qtbase tests: Fix some warnings 2011-11-21 09:58:23 +01:00
qmetaproperty Cleanup corelib autotests 2011-11-11 02:45:05 +01:00
qmetatype Cleanup corelib autotests 2011-11-25 07:56:16 +01:00
qmimedata Fix linking of autotests on Windows. 2011-11-29 12:28:30 +01:00
qobject QObject::disconnect with new syntax 2011-11-29 17:08:39 +01:00
qpointer Fix linking of autotests on Windows. 2011-11-29 12:28:30 +01:00
qsignalmapper Fix linking of autotests on Windows. 2011-11-29 12:28:30 +01:00
qsocketnotifier Re-enable the corelib autotests on Mac OS X 2011-11-21 11:31:35 +01:00
qtimer Cleanup corelib autotests 2011-11-25 07:56:16 +01:00
qtranslator Fix linking of autotests on Windows. 2011-11-29 12:28:30 +01:00
qvariant Fix linking of autotests on Windows. 2011-11-29 12:28:30 +01:00
qwineventnotifier Cleanup corelib autotests 2011-11-11 02:45:05 +01:00
kernel.pro Re-enable the corelib autotests on Mac OS X 2011-11-21 11:31:35 +01:00