qt5base-lts/tests/auto/corelib/kernel
Kent Hansen 243ea09e4c Add QMetaMethod-based QObject::connect/disconnectNotify() API
This API will fully replace the const char *-based connectNotify()
and disconnectNotify() in Qt5; the old functions will be REMOVED
before Qt 5.0 final.

The new implementation fixes the long-standing issue of
connectNotify() not being called when using the (internal)
index-based QMetaObject::connect() (e.g., from QML).

As with the old API, there are still two "unintuitive" behaviors
concerning disconnectNotify():
- disconnectNotify() is not called when the signal is disconnected
  using the QObject::disconnect(QMetaObject::Connection) overload.
- disconnectNotify() is not called when a receiver is destroyed
  (i.e., when a connection is implicitly removed).

The old versions of connectNotify() and disconnectNotify() are kept
for now, and they are still called. They will be removed once known
existing reimplementations (e.g., QtNetwork, QtDBus) have been
ported to the new API.

Change-Id: I8b4f007f3c6d89199c1ba04a3e23c8ca314e0896
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
2012-05-01 01:18:03 +02:00
..
qcoreapplication Merge remote-tracking branch 'origin/master' into api_changes 2012-04-10 15:31:45 +02:00
qeventdispatcher Test posted events in tst_QEventDispatcher with various flags 2012-02-10 15:22:11 +01:00
qeventloop QEvent (and subclasses): make ctors explicit 2012-03-01 08:44:34 +01:00
qmath Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qmetamethod Add QMetaMethod::fromSignal() function 2012-04-27 10:37:02 +02:00
qmetaobject Fix QMetaObject::normalizedType() for "void" argument 2012-03-21 18:55:27 +01:00
qmetaobjectbuilder Remove QMetaObjectExtraData and put everything into QMetaObject 2012-04-25 20:19:29 +02:00
qmetaproperty Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qmetatype Merge remote-tracking branch 'origin/master' into api_changes 2012-04-10 15:31:45 +02:00
qmimedata QMimeData: export URLs as text too 2012-02-17 05:26:47 +01:00
qobject Add QMetaMethod-based QObject::connect/disconnectNotify() API 2012-05-01 01:18:03 +02:00
qpointer Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qsignalmapper Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qsocketnotifier Fix tst_QSocketNotifier on Mac OS X 2012-02-13 22:16:17 +01:00
qtimer Merge "Merge remote-tracking branch 'origin/api_changes'" into refs/staging/master 2012-04-17 13:09:29 +02:00
qtranslator Make QTranslator testcase independent of Widgets 2012-03-28 00:44:16 +02:00
qvariant Wrap all Latin 1 strings with QString::fromLatin1 or QLatin1Strings 2012-04-27 22:52:01 +02:00
qwineventnotifier Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
kernel.pro Add autotest for QMetaMethod introspection 2012-02-15 17:27:04 +01:00