diff options
author | Tor Arne Vestbø <tor.arne.vestbo@digia.com> | 2014-10-16 11:31:45 +0200 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@digia.com> | 2014-10-20 11:42:59 +0200 |
commit | e260e1bcaef123c8250f019b197da10c353eff33 (patch) | |
tree | da7ea8d9b486226b75a469a01a5a6622ff996101 /src/corelib/io/qfiledevice.cpp | |
parent | 0f98d36ff6f01a91f32e9c3359882b6a856da8a0 (diff) |
Always report focusObjectChanged on QWidget::clearFocus()
The focusObject() of a QWidgetWindow is based on the focusWidget() of the
top level widget of the window, which is resolved through the focus_child
chain of the widget. This is not the same thing as the focusWidget of the
application. The hasFocus() function of a QWidget queries the latter, so
we can't put the focusObjectChanged signal inside hasFocus() when we
unconditionally clear the focus_child chain (and hence the focusObject)
earlier in the function.
Change-Id: Iae39da5d6031d22b21e9dc9f18e5fe6e6fd11a5c
Reviewed-by: Jan Arve Sæther <jan-arve.saether@theqtcompany.com>
Diffstat (limited to 'src/corelib/io/qfiledevice.cpp')
0 files changed, 0 insertions, 0 deletions