Qt Base (Core, Gui, Widgets, Network, ...)
Go to file
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
.github/workflows
LICENSES Use canonical capitalization of Unicode-3.0 SPDX tag 2024-03-13 14:43:10 +00:00
bin cmake: Override generator for iOS projects to Xcode in qt-cmake.in 2024-03-18 22:34:48 +01:00
cmake Remove the headersclean feature 2024-04-17 20:41:35 +02:00
coin CMake: Allow configuring a minimal subset of examples to deploy 2024-03-19 18:22:16 +01:00
config.tests Correct license in config.test 2024-02-20 16:22:28 +01:00
dist Remove dist/README 2024-02-29 15:35:57 +01:00
doc Doc: Replace obsolete <acronym> with <abbr> html tags 2024-03-22 16:28:12 +01:00
examples Fix feature dependencies for sharedmemory 2024-04-17 10:06:44 +00:00
lib
libexec CMake: Allow building all examples as standalone just like tests 2024-03-14 11:44:16 +01:00
mkspecs qmake: Improve Xcode projects for single SDK builds on Apple platforms 2024-04-03 17:17:11 +02:00
qmake QMake: make it error out if it cannot open output files 2024-03-27 04:24:11 +01:00
src CMake: Add _qt_internal_get_i18n_catalogs_for_modules 2024-04-17 21:17:30 +02:00
tests Baseline tests: improve focus setting and clearing 2024-04-17 21:17:34 +02:00
util cmake: Rename QT_UIKIT_SDK to QT_APPLE_SDK 2024-03-18 19:04:14 +01:00
.cmake.conf Remove year from generic Qt copyright information 2024-02-14 09:30:07 +00:00
.gitattributes
.gitignore Git ignore Visual Studio CMake build directories 2023-11-24 23:42:05 +01:00
.lgtm.yml
.tag
CMakeLists.txt cmake: add _extra_files IDE target from heuristics 2024-04-12 08:36:01 +08:00
config_help.txt Add support for using an inline namespaces for -qtnamespace 2024-04-03 17:17:11 +02:00
configure Change configure license 2024-02-02 15:23:02 +00:00
configure.bat configure.bat: Fix errors on Windows 2024-03-05 11:56:24 +01:00
configure.cmake Remove the headersclean feature 2024-04-17 20:41:35 +02:00
dependencies.yaml
licenseRule.json Correct wording in licenseRule.json 2024-04-10 21:01:06 +02:00
qt_cmdline.cmake Remove the headersclean feature 2024-04-17 20:41:35 +02:00