Make StatusBar and ToolBar focus scopes
authorJens Bache-Wiig <jens.bache-wiig@digia.com>
Wed, 4 Dec 2013 16:07:49 +0000 (17:07 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 4 Dec 2013 17:49:49 +0000 (18:49 +0100)
commitb57e8b29d7d5125895f65ca36ec74abe0875ceef
tree15286b73600773d4908aba13b7d7955835966be0
parent2a34659e22ce704101b7e8bc9b667044e801dc19
Make StatusBar and ToolBar focus scopes

The problem is that the content item of both these controls have
the focus property set to true. This property will then affect the
implicit focus logic and should be protected by a focusscope.

Currently adding a ToolBar or StatusBar to an application could
result in this content item grabbing focus implicitly even if the
application only sets focus: true on a single item.

Task-number: QTBUG-34713
Change-Id: I94cb79d25e4cfd727915f5b5ab612ad5c0132db7
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
src/controls/StatusBar.qml
src/controls/ToolBar.qml