qt6-bb10/tests/auto/gui/painting
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
..
qbrush Change license for tests files 2024-02-04 09:56:42 +01:00
qcolor Remove extra semi-colons 2024-02-06 20:17:18 +09:00
qcolorspace Use QCOMPARE_GE/QCOMPARE_LE 2024-04-19 21:09:14 +02:00
qcolortransform Fix build with gcc-14 2024-02-14 00:25:55 +00:00
qpagelayout print: Clamp margins entered by the user in the page setup dialog 2024-04-25 14:22:30 +03:00
qpageranges Change license for tests files 2024-02-04 09:56:42 +01:00
qpagesize Change license for tests files 2024-02-04 09:56:42 +01:00
qpaintengine Change license for tests files 2024-02-04 09:56:42 +01:00
qpainter Port QImage::Format_CMYK32 to CMYK8888 2024-04-04 16:08:22 +01:00
qpainterpath QPainterPath: detach and reset before streaming in 2024-02-27 03:47:11 +01:00
qpainterpathstroker Change license for tests files 2024-02-04 09:56:42 +01:00
qpathclipper Remove extra semi-colons 2024-02-06 20:17:18 +09:00
qpdfwriter Change license for tests files 2024-02-04 09:56:42 +01:00
qpen Change license for tests files 2024-02-04 09:56:42 +01:00
qpolygon Change license for tests files 2024-02-04 09:56:42 +01:00
qregion Change license for tests files 2024-02-04 09:56:42 +01:00
qtransform Change license for tests files 2024-02-04 09:56:42 +01:00
qwmatrix
CMakeLists.txt Fix build without PDF 2024-02-25 21:40:47 +00:00