Port QBuffer to QMetaMethod-based connectNotify()
authorKent Hansen <kent.hansen@nokia.com>
Sun, 22 Apr 2012 12:30:32 +0000 (14:30 +0200)
committerQt by Nokia <qt-info@nokia.com>
Mon, 30 Apr 2012 23:18:03 +0000 (01:18 +0200)
commit90c6d445120a4b057c9e75c1f004d203ec715d10
tree90201d6e621597d777e917c136069195a7e0c0d6
parentb39c1a32b513b413fcfe055131476880f4b5a20e
Port QBuffer to QMetaMethod-based connectNotify()

The const char *-based API is deprecated and will be removed in Qt5.

Also fix a bug in the disconnectNotify() reimplementation; when all
signals are disconnected at once, disconnectNotify() is only called
a single time, with an invalid method as argument. Thus, the signal
connection count should be set to 0, instead of decremented.

Change-Id: Ieee92293777bff87f8b28e56e23ab55d0b8b8101
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
src/corelib/io/qbuffer.cpp
src/corelib/io/qbuffer.h