qt5base-lts/tests/auto/corelib/global
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
..
q_func_info Improve Q_FUNC_INFO autotest. 2011-11-17 07:21:03 +01:00
qflags Cleanup corelib autotests 2011-11-11 02:45:05 +01:00
qgetputenv Cleanup corelib autotests 2011-11-11 02:45:05 +01:00
qglobal Change the return value of QObject::connect 2011-11-25 01:12:14 +01:00
qnumeric Cleanup corelib autotests 2011-11-11 02:45:05 +01:00
qrand Cleanup corelib autotests 2011-11-11 02:45:05 +01:00
global.pro Moving relevant tests to corelib/global 2011-08-30 13:17:21 +02:00