diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-07-30 00:18:05 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-07-31 01:17:53 (GMT) |
commit | 87239ef6438b50b2dfa7b6526a5e5cbe7d5598d5 (patch) | |
tree | 9cfd895016f8435671c2f88d7a1d40ddf1e7cfc1 /src/gui/graphicsview/qgraphicsitem.cpp | |
parent | 7ebd2024f49bdaf798f0beaaa35946dfa890f276 (diff) | |
download | Qt-87239ef6438b50b2dfa7b6526a5e5cbe7d5598d5.zip Qt-87239ef6438b50b2dfa7b6526a5e5cbe7d5598d5.tar.gz Qt-87239ef6438b50b2dfa7b6526a5e5cbe7d5598d5.tar.bz2 |
extend the QObjectPrivate::connectedSignals bitfield to make space
for all the required NOTIFY signals we need for QML bindings.
An additional internal function QMetaObject::isConnected() allows
to query the bits, or you use connectedSignals[0] if you know that
the signal in question has a QMetaObject::indexOfSignal() < 32.
Authored-by: mae
Reviewed-by: Aaron Kennedy
Diffstat (limited to 'src/gui/graphicsview/qgraphicsitem.cpp')
-rw-r--r-- | src/gui/graphicsview/qgraphicsitem.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/graphicsview/qgraphicsitem.cpp b/src/gui/graphicsview/qgraphicsitem.cpp index 5aae93e..3884af9 100644 --- a/src/gui/graphicsview/qgraphicsitem.cpp +++ b/src/gui/graphicsview/qgraphicsitem.cpp @@ -6462,7 +6462,7 @@ void QGraphicsItem::prepareGeometryChange() // if someone is connected to the changed signal or the scene has no views. // Note that this has to be done *after* markDirty to ensure that // _q_processDirtyItems is called before _q_emitUpdated. - if ((scenePrivate->connectedSignals & scenePrivate->changedSignalMask) + if ((scenePrivate->connectedSignals[0] & scenePrivate->changedSignalMask) || scenePrivate->views.isEmpty()) { if (d_ptr->hasTranslateOnlySceneTransform()) { d_ptr->scene->update(boundingRect().translated(d_ptr->sceneTransform.dx(), |