Reduce code dupplication in QObject::connect
authorOlivier Goffart <ogoffart@woboq.com>
Tue, 29 Nov 2011 06:21:10 +0000 (07:21 +0100)
committerQt by Nokia <qt-info@nokia.com>
Tue, 29 Nov 2011 16:09:32 +0000 (17:09 +0100)
commit8350d91245ff122d03c628ea297a808d86103cd1
treeb0c1f888614268d42cd3d1f802145a72e607574f
parent1c5db1aff34a3dbb8f24d8edb96e138eb1509d44
Reduce code dupplication in QObject::connect

Move from each implementation of QObject::connect to
QObjectPrivate::addConnection the code that adds the
QObjectPrivate::Connection* to the sender's list.

Change-Id: I665af016d5e6673eb0e9c06965e5deed50454b28
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
src/corelib/kernel/qobject.cpp