qt6-bb10/tests/baseline
Volker Hilsheimer bf2ed62409 Baseline tests: improve focus setting and clearing
Set focus on the test window so that the tested widget doesn't have it.
Remove the "PublicWidget" hack, we have public QWidget APIs to find the
next widget in the focus chain that we can use to transfer focus
reliably. Use TabFocusReason to maintain existing behavior, and to
test that widgets that handle that specifically appear correctly. Clear
the focus on the test widget by setting it back to the window after
taking the "focused" snapshot.

Add QCOMPARE and QVERIFY to assert that the test is in the right state
before taking screenshots.

Pick-to: 6.7
Change-Id: Icef6ce1bb1c63c9f6cde7d0ddca82e693cace420
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2024-04-17 21:17:34 +02:00
..
painting Tests: check the output of QFile::open 2024-03-27 04:24:11 +01:00
shared Baseline tests: improve focus setting and clearing 2024-04-17 21:17:34 +02:00
stylesheet StyleSheet: respect a font weight set for header sections 2024-04-11 04:35:22 +02:00
text Tests: check the output of QFile::open 2024-03-27 04:24:11 +01:00
widgets Change license for tests files 2024-02-04 09:56:42 +01:00
CMakeLists.txt Fix build without PDF 2024-02-25 21:40:47 +00:00