qt6-bb10/tests/auto/gui
Jarkko Koivikko 6c72080f26 print: Clamp margins entered by the user in the page setup dialog
The current functionality discards all margins if any values fall
outside the minimum or maximum limits. This can confuse and
frustrate users since the Windows native page setup dialog doesn't
enforce minimum values.

Introduce a new parameter outOfBoundsPolicy for the set margins
functions in the QPageLayout:
- OutOfBoundsPolicy::Reject The old behavior rejecting out of
  bounds values.
- OutOfBoundsPolicy::Clamp The new behavior for clamping the values.

The OutOfBoundsPolicy is applied only in StandardMode to maintain
backwards compatibility in FullPageMode, where all margins are
accepted.

Use the new Clamp policy in the printsupport where the clamping is
necessary.

Maintain binary compatibility by putting the declaration of the old
symbols without policy parameter behind QT_GUI_REMOVED_SINCE, and
implement them in removed_api.cpp to call the new versions.

Task-number: QTBUG-122410
Change-Id: I06aee292c1daff2863502f471b03798dafbcd81b
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2024-04-25 14:22:30 +03:00
..
image QMovie: fix regression in frame delays 2024-04-24 15:13:12 +00:00
itemmodels QFileSystemModel: Add role for fileinfo 2024-04-11 23:12:42 +01:00
kernel QWindow: Persist foreign winId to support destroy/create cycles 2024-04-19 14:54:17 +02:00
math3d Change license for tests files 2024-02-04 09:56:42 +01:00
painting print: Clamp margins entered by the user in the page setup dialog 2024-04-25 14:22:30 +03:00
platform Change license for tests files 2024-02-04 09:56:42 +01:00
qopengl Change license for tests files 2024-02-04 09:56:42 +01:00
qopenglconfig Change license for tests files 2024-02-04 09:56:42 +01:00
qvulkan Revert "Android: SKIP cases failing on Android 12 CI with 16GB RAM" 2024-04-05 20:31:07 +00:00
rhi Revert "Skip Vulkan on Android in QRhi autotest" 2024-04-05 20:31:07 +00:00
text Add API to provide user-defined fallback fonts 2024-04-18 15:25:23 +02:00
util Improve KTX file reading memory safety 2024-02-09 13:08:44 +01:00
CMakeLists.txt tests: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-17 21:56:49 +01:00