summaryrefslogtreecommitdiffstats
path: root/examples/widgets/layouts/README
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2024-04-17 10:25:32 +0200
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2024-04-17 21:17:34 +0200
commitbf2ed624091d0239bce91a84df59b7afc843298a (patch)
treee56f4368201eb6e0beed7860957325a90ee3a532 /examples/widgets/layouts/README
parent2cd79cc1c3f47a1b1ecdf3e6385a56b70ad54274 (diff)
Baseline tests: improve focus setting and clearingHEADdev
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>
Diffstat (limited to 'examples/widgets/layouts/README')
0 files changed, 0 insertions, 0 deletions