qt6-bb10/tests/auto/widgets
Volker Hilsheimer a8fee0bf43 Don't move focus away from previous proxy in QWidget::setFocusProxy
This amends 23b998fa45, and the commits
3e7463411e and
947883141d. This change restores the
pre-5.13.1 behavior of setFocusProxy to not move focus away from a
previously set focus proxy.

With the previous changes, focus would move away from a proxy when a
new proxy is set, if the old proxy had focus. While there are arguments
in favor of this behavior, it is a change of behavior that shouldn't
be introduced to 20+ years old functionality in order to fix the real
bugs addressed by the initial commits.

Instead, move focus only to the new proxy when the focus widget was
the widget that gets a focus proxy.

[ChangeLog][QtWidgets][QWidget] setFocusProxy no longer moves focus
away from a previously set focus proxy, restoring pre-Qt 5.13.1
behavior.

Change-Id: Icf2ad7cba5b860014aeef91cb274c442a2ab9d42
Fixes: QTBUG-83720
Pick-to: 5.15
Reviewed-by: David Faure <david.faure@kdab.com>
2020-05-05 23:03:26 +02:00
..
dialogs Merge remote-tracking branch 'origin/5.15' into dev 2020-04-22 15:28:01 +02:00
effects Regenerate projects one last time before merge 2020-02-12 17:30:49 +00:00
graphicsview CMake: Disable two graphicsview tests 2020-03-18 15:44:06 +01:00
itemviews Remove deprecated members from QtWidgets/itemviews classes 2020-04-17 20:49:36 +02:00
kernel Don't move focus away from previous proxy in QWidget::setFocusProxy 2020-05-05 23:03:26 +02:00
styles Remove deprecated QStyle enum values 2020-04-16 16:53:18 +02:00
util Merge remote-tracking branch 'origin/5.15' into dev 2020-04-08 20:11:39 +02:00
widgets tst_QDialogButtonBox: Port away from QAbstractButton::animateClick() 2020-04-29 10:10:37 +02:00
CMakeLists.txt Begin port of qtbase to CMake 2018-11-01 11:48:46 +00:00
widgets.pro Move QGestureRecognizer test to widgets/kernel 2017-06-02 18:36:11 +00:00