qt5base-lts/tests/auto/widgets/kernel
Doris Verria 911c97f2b5 QCocoaWindow: Make window key if the app's modal window is hidden
On macOS, when showing a window, we decide if it should be made
key and therefore active, if the app has no active modal session
or if the window's worksWhenModal returns true.

However, the window needs to be made key also when a modal window
is present, but not visible. Add this condition when checking if
the window needs to be made key.

This makes the behavior consistent with what happens when a modal
is minimized on macOS. The input focus is passed to the next window,
and the window appears active, even if it can not be interacted with.

Fixes: QTBUG-85574
Pick-to: 5.15 6.2
Change-Id: I204d4f912128f4a46840789fc2ee08e1b2716bfc
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2021-10-07 14:30:53 +00:00
..
qaction Remove the qmake project files 2021-01-07 15:32:28 +01:00
qactiongroup Remove the qmake project files 2021-01-07 15:32:28 +01:00
qapplication tst_qapplication: Prevent desktopaware test from deactivating main test 2021-02-15 14:20:08 +01:00
qboxlayout Remove the qmake project files 2021-01-07 15:32:28 +01:00
qformlayout Remove the qmake project files 2021-01-07 15:32:28 +01:00
qgesturerecognizer Android: unblock passing tests 2021-04-27 21:12:50 +03:00
qgridlayout Fix invalid pointer return with QGridLayout::itemAt(-1) 2021-03-22 18:47:36 +08:00
qlayout Remove conditioning on Android embedded 2021-09-17 17:30:14 +02:00
qshortcut Fix tsts_QShortcut::keys on Wayland 2021-03-15 08:21:40 +01:00
qsizepolicy Remove the qmake project files 2021-01-07 15:32:28 +01:00
qstackedlayout Remove the qmake project files 2021-01-07 15:32:28 +01:00
qtooltip Unskip QToolTip::keyEvent test on macOS 2021-09-09 19:22:55 +00:00
qwidget QCocoaWindow: Make window key if the app's modal window is hidden 2021-10-07 14:30:53 +00:00
qwidget_window QWidgetWindow: Stabilize test on Xcb 2021-09-20 19:00:05 +02:00
qwidgetaction QWidgetAction: add test for defaultWidget() being deleted before action 2021-06-22 11:38:32 +02:00
qwidgetmetatype Remove the qmake project files 2021-01-07 15:32:28 +01:00
qwidgetrepaintmanager Add testcase for QWidgetRepaintManager 2021-09-30 21:10:48 +02:00
qwidgetsvariant Remove the qmake project files 2021-01-07 15:32:28 +01:00
qwindowcontainer Remove the qmake project files 2021-01-07 15:32:28 +01:00
CMakeLists.txt Add testcase for QWidgetRepaintManager 2021-09-30 21:10:48 +02:00