diff options
author | David Boddie <dboddie@trolltech.com> | 2010-08-06 17:51:14 (GMT) |
---|---|---|
committer | David Boddie <dboddie@trolltech.com> | 2010-08-06 17:51:14 (GMT) |
commit | 86eec3f6f98b387bf6a815c1a8e916965928b317 (patch) | |
tree | eae5c5e72da6fe0c5939e6b730f1218db7c6372d /src/gui/graphicsview | |
parent | 9d15caa7f1103060f5fe1f8283e834ff51591a3f (diff) | |
parent | c45516f1f3781dcb504158f730b98897c7f2f2a1 (diff) | |
download | Qt-86eec3f6f98b387bf6a815c1a8e916965928b317.zip Qt-86eec3f6f98b387bf6a815c1a8e916965928b317.tar.gz Qt-86eec3f6f98b387bf6a815c1a8e916965928b317.tar.bz2 |
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/oslo-staging-2 into 4.7
Conflicts:
src/declarative/util/qdeclarativeanimation.cpp
Diffstat (limited to 'src/gui/graphicsview')
-rw-r--r-- | src/gui/graphicsview/qgraphicsitem.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/graphicsview/qgraphicsitem.cpp b/src/gui/graphicsview/qgraphicsitem.cpp index 2856699..d6eabf6 100644 --- a/src/gui/graphicsview/qgraphicsitem.cpp +++ b/src/gui/graphicsview/qgraphicsitem.cpp @@ -3259,8 +3259,12 @@ void QGraphicsItemPrivate::setFocusHelper(Qt::FocusReason focusReason, bool clim QGraphicsItem *p = parent; while (p) { if (p->flags() & QGraphicsItem::ItemIsFocusScope) { + QGraphicsItem *oldFocusScopeItem = p->d_ptr->focusScopeItem; p->d_ptr->focusScopeItem = q_ptr; if (!p->focusItem() && !focusFromShow) { + if (oldFocusScopeItem) + oldFocusScopeItem->d_ptr->focusScopeItemChange(false); + focusScopeItemChange(true); // If you call setFocus on a child of a focus scope that // doesn't currently have a focus item, then stop. return; @@ -5595,6 +5599,7 @@ void QGraphicsItemPrivate::subFocusItemChange() */ void QGraphicsItemPrivate::focusScopeItemChange(bool isSubFocusItem) { + Q_UNUSED(isSubFocusItem); } /*! |