qt6-bb10/tests
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
..
auto print: Clamp margins entered by the user in the page setup dialog 2024-04-25 14:22:30 +03:00
baseline Draw list bullets/numbers with CSS text color, not palette color 2024-04-19 04:13:32 -07:00
benchmarks Add benchmarks for QDate::fromString() 2024-04-22 18:56:21 +02:00
global
libfuzzer Add CMYK support to QColorSpace 2024-04-12 21:53:54 +02:00
manual qdnslookup tool: add the ability to resolve hostnames 2024-04-24 12:36:48 -07:00
shared QWindow: Persist foreign winId to support destroy/create cycles 2024-04-19 14:54:17 +02:00
testserver Correct license for tools files 2024-03-05 12:59:21 +01:00
CMakeLists.txt Rid of 'special case' markers 2023-04-13 18:30:58 +02:00
README

README

This directory contains autotests and benchmarks based on Qt Test. In order
to run the autotests reliably, you need to configure a desktop to match the
test environment that these tests are written for.

Linux X11:

   * The user must be logged in to an active desktop; you can't run the
     autotests without a valid DISPLAY that allows X11 connections.

   * The tests are run against a KDE3 or KDE4 desktop.

   * Window manager uses "click to focus", and not "focus follows mouse". Many
     tests move the mouse cursor around and expect this to not affect focus
     and activation.

   * Disable "click to activate", i.e., when a window is opened, the window
     manager should automatically activate it (give it input focus) and not
     wait for the user to click the window.