qt5base-lts/tests/auto/corelib
Olivier Goffart 79f675a1e0 Change the return value of QObject::connect
From a bool to a handle to to connection.

Also added a new overload of disconnect that disconnect a handle

This is required because with the new syntax taking lambda or functors,
it is the only way to disconnect a connection (as it is impossible to
compare functors)

The new return value is QMetaObject::Connection, it is a wrapper around
the internal QObjectPrivate::Connection.
QObjectPrivate::Connection is now reference counted.

tst_qglobal.cpp:
   This test set up an internal callback, and the callback do not set any
   proper connection handle (and tbh,  it would be hard for it to do so).
   So the returned QMetaObject::Connection is invalid, and ok is false
   (Internal callbacks are only used for jambi and should probably be removed)

Change-Id: I111626fb4f47efc4db5e2ea5bff9da15f08fea7b
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2011-11-25 01:12:14 +01:00
..
animation qtbase tests: Fix some warnings 2011-11-21 09:58:23 +01:00
codecs Cleanup corelib autotests 2011-11-14 07:33:57 +01:00
concurrent Only use QVERIFY in test functions. 2011-11-24 05:56:48 +01:00
global Change the return value of QObject::connect 2011-11-25 01:12:14 +01:00
io Remove misleading comment. 2011-11-23 07:06:24 +01:00
kernel Add a parents parameter to layoutChange signals. 2011-11-24 16:46:15 +01:00
plugin Revert 3a0f5d04fc 2011-11-22 08:57:08 +01:00
statemachine Remove obsolete code from QStateMachine test. 2011-11-21 04:55:02 +01:00
thread qtbase tests: Fix some warnings 2011-11-21 09:58:23 +01:00
tools Improve QVector autotest 2011-11-24 10:38:15 +01:00
xml Cleanup corelib autotests 2011-11-14 07:33:57 +01:00
corelib.pro Exclude qtconcurrent tests via .pro files. 2011-10-12 18:01:19 +02:00