Avoid accessing QObjectPrivate::currentSender directly from QtDBus
authorKent Hansen <kent.hansen@nokia.com>
Thu, 31 May 2012 19:27:47 +0000 (21:27 +0200)
committerQt by Nokia <qt-info@nokia.com>
Fri, 1 Jun 2012 10:03:39 +0000 (12:03 +0200)
commitb60f6447d0efc622792113bc4896c0dc176e8df3
tree4626b2b0cf0249ae988289b55563e6e2d26a9fc4
parentcd95bcd7dbc5a4df8950bbc4bec3a6a02c71f00b
Avoid accessing QObjectPrivate::currentSender directly from QtDBus

In particular, currentSender->signal is about to be changed from
the method index range to the signal index range (i.e., excluding
non-signal methods). The public senderSignalIndex() function will
still return the index in the method range, so QtDBus will then
continue to work without change. If necessary, QtDBus can afterwards
be ported back to using the internal API again (including the new
QMetaObjectPrivate API for working with methods in the signal range).

Change-Id: I58212e859560a8e241adee99dd2da9ef009d4e5b
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
src/dbus/qdbusabstractadaptor.cpp