Adapt to connection-related changes in qtbase
authorKent Hansen <kent.hansen@nokia.com>
Sun, 3 Jun 2012 19:10:32 +0000 (21:10 +0200)
committerQt by Nokia <qt-info@nokia.com>
Tue, 12 Jun 2012 10:06:09 +0000 (12:06 +0200)
commitc421281a0291fd48c616a6e37315364ce0553c0f
treeda71d664288d4aaaf3836a03c0c1d645a81670ea
parentf4a683f6874b03ce3e0a2869320a9956d5a04098
Adapt to connection-related changes in qtbase

The QQmlData hooks signalEmitted() and receivers() now receive the
index in the signal index range (i.e., excluding non-signal methods).
This was done to avoid Q(Meta)Object having to compute the class's
method offset; the signal offset should be sufficient for everyone.

This required adapting QQmlNotifier, QQmlBoundSignal,
QQmlPropertyCache and friends to use the signal index range whenever
a property's notify signal is involved in the internal connection
lists and property captures.

Using the signal index range also reduces the memory used for
NotifyList::notifies, since useless entries for non-signal methods
will no longer be created.

Change-Id: I62872fbea5a1f829b8b03bae3fc1e6acd84cf886
Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
17 files changed:
src/qml/debugger/qqmlenginedebugservice.cpp
src/qml/qml/qqmlboundsignal.cpp
src/qml/qml/qqmlcompiler.cpp
src/qml/qml/qqmlcontext.cpp
src/qml/qml/qqmlengine.cpp
src/qml/qml/qqmlglobal_p.h
src/qml/qml/qqmljavascriptexpression.cpp
src/qml/qml/qqmlnotifier.cpp
src/qml/qml/qqmlnotifier_p.h
src/qml/qml/qqmlproperty.cpp
src/qml/qml/qqmlproperty_p.h
src/qml/qml/qqmlpropertycache.cpp
src/qml/qml/qqmlpropertycache_p.h
src/qml/qml/qqmlvmemetaobject.cpp
src/qml/qml/qqmlvmemetaobject_p.h
src/quick/items/qquickitem.cpp
src/quick/util/qquickconnections.cpp