Add QObject::objectNameChanged(const QString &objectName) signal
authorBradley T. Hughes <bradley.hughes@nokia.com>
Mon, 28 Nov 2011 12:05:33 +0000 (13:05 +0100)
committerQt by Nokia <qt-info@nokia.com>
Thu, 1 Dec 2011 16:46:57 +0000 (17:46 +0100)
commitba635d7e74472f3a54c0c4686966af46d9035c6f
tree70fb0b7e41cc1d0a9a5f3959eaf0cc771e9e74ca
parentc7f80420649d8d37e25514bcd2859de1e21166d6
Add QObject::objectNameChanged(const QString &objectName) signal

This is sent when the object's name changes.

tst_moc must be updated since the method count of QObject has changed.
The test assumed that there were 4 invokable methods in QObject. The
new signal is the 5th, which breaks the test's assumptions. Fix this
as well.

tst_QObject must be updated since the
QObjectPrivate::isSignalConnected() method only supports the first 64
signals. With the addition of this new signal, sig61() in the test
becomes the 65th signal, and will always appear connected now.

Task-number: QTBUG-13999 (related)
Change-Id: Ie87893c71a231fafa7ccf2f16102238a7be8327a
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
src/corelib/kernel/qobject.cpp
src/corelib/kernel/qobject.h
tests/auto/corelib/kernel/qobject/tst_qobject.cpp
tests/auto/tools/moc/tst_moc.cpp