Widgets: Never revoke focus by click on focused widget.
authorChristoph Schleifenbaum <christoph.schleifenbaum@kdab.com>
Sat, 16 Nov 2013 16:17:15 +0000 (17:17 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 18 Nov 2013 19:38:41 +0000 (20:38 +0100)
commit7e768dde39f9365a4e1fc45afc492b74744a44e6
treebecb18ac732d133bcc289d843bc1f1370be4d9b1
parentcd93a2c0e14090cecbe3e83748937dcd15d98dbe
Widgets: Never revoke focus by click on focused widget.

When clicking on a widget currently focused, w/o having Qt::ClickFocus
set as focus policy, the focus should stay on the widget and not get
propagated to the widget's parent.

Task-number: QTBUG-34042

Change-Id: I53f1153829cc7228de02a90e38125b5cf4ee5008
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
src/widgets/kernel/qapplication.cpp
tests/auto/widgets/kernel/qapplication/tst_qapplication.cpp