Clear focus of GraphicsItem focus scopes and their children.
authorAndrew den Exter <andrew.den.exter@jollamobile.com>
Mon, 3 Dec 2012 07:03:02 +0000 (17:03 +1000)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 4 Dec 2012 00:50:02 +0000 (01:50 +0100)
commitab97a44b6ae5cc826460f3704669383afd398594
tree608c90a557c98525fbc136c8abcf1f8a7c5fa88d
parent5ede8ee80d4dc637febe49e7a7a90d9fe5fc7e69
Clear focus of GraphicsItem focus scopes and their children.

A focus scope has effective focus if one of its children is the focus item,
clearFocus() should remove effective focus from an item and its children
not just from the focus item.

Task-number: QTBUG-28328
Change-Id: I62a292eff000151e50b2f5221e22f326a380fc3a
Reviewed-by: Martin Jones <martin.jones@jollamobile.com>
src/widgets/graphicsview/qgraphicsitem.cpp
tests/auto/widgets/graphicsview/qgraphicsitem/tst_qgraphicsitem.cpp