Window/ScreenCapture tests: Inform backend not to capture cursor
This patch amends fd01be0b50d0d1872698648585bc845729af96d6. Similar to
QWindowCapturePrivate, we expose the 'setIgnoreCursor' method to test
through private API. Additionally, we establish factory functions to
create QScreenCapture and QWindowCapture instances with the proper test
values set. We then use these factory functions throughout the tests
where appropriate.
This allows us the tests to consistently signal to the backend that
cursor and window-dropshadows should not be captured.
Pick-to: 6.12
Change-Id: I2f1e2d504b45f3b6d727df5bd7ded19e5780a6df
Reviewed-by: Tim Blechmann <tim.blechmann@qt.io>
| commit | b6054888c5551afe19b58641b21f80e876c4ea01 |
| parent | 79e00e9c06a76d22457c49631e319e4e22e0d99c |
| author | Nils Petter Skålerud <nils.petter.skalerud@qt.io> |
| committer | Nils Petter Skålerud <nils.petter.skalerud@qt.io> |
| commit time | Tue, 15 Sep 2026 08:12:25 +0000 |
- M src/multimedia/CMakeLists.txt
- M src/multimedia/recording/qscreencapture.cpp
- A src/multimedia/recording/qscreencapture_p.h
- M src/multimediatestlib/CMakeLists.txt
- A src/multimediatestlib/surfacecapturetestutils.cpp
- A src/multimediatestlib/surfacecapturetestutils_p.h
- M tests/auto/integration/qscreencapturebackend/tst_qscreencapturebackend.cpp
- M tests/auto/integration/qwindowcapturebackend/fixture.cpp
- M tests/auto/integration/qwindowcapturebackend/fixture.h