diff options
author | Paul Olav Tvete <paul.tvete@qt.io> | 2017-08-23 11:48:11 +0200 |
---|---|---|
committer | Paul Olav Tvete <paul.tvete@qt.io> | 2017-09-26 13:38:06 +0000 |
commit | 35781b358887facf954307b0d6c5958ce089eb72 (patch) | |
tree | 75c4517ea1b47136e900a66dd15252fbc6b870c1 /src/tools | |
parent | bc31d2235cbf81c05ef80de723ebc4dc45a89695 (diff) |
Return focus to correct widget after showing menu
By the time we call setKeyboardMode(true), the menu may
already have taken focus. This change sets keyboardFocusWidget
before opening the popup, and makes sure that keyboardFocusWidget
is not set to the popup. (We cannot remove the assignment from
setKeyboardMode(), since it's called from several places.)
[ChangeLog][QtWidgets] Fixed widget losing focus after showing
menu second time.
Task-number: QTBUG-56860
Change-Id: Ic01726bf694e6f365dd7b601ad555156e0fdf6c5
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'src/tools')
0 files changed, 0 insertions, 0 deletions