qt6-bb10/tests/auto/widgets/kernel/qshortcut
Volker Hilsheimer 55928821d1 Improve QShortcut test
The test uses a static MainWindow so that we can execute a series of key
simulations on the same window. The window is then destroyed when we
reach the final test row.

If some of the tests fail, then the window is left in an unknown state,
resulting in cascading failures for the other tests. Fix this by always
trying to show and activate the window, and always destroying the static
window if we have reached the last test data row.

Fixes: QTBUG-99630
Pick-to: 6.2 6.3
Change-Id: I466669f387e8b199e9e719a7ebbe3ae670658b7e
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
2022-01-13 21:00:22 +00:00
..
.gitignore
CMakeLists.txt Fix tsts_QShortcut::keys on Wayland 2021-03-15 08:21:40 +01:00
tst_qshortcut.cpp Improve QShortcut test 2022-01-13 21:00:22 +00:00