qt6-bb10/tests/auto
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
..
bic/data Add binary compatibility file for 6.7.0 2024-04-17 10:18:37 +00:00
cmake "Simplify" versionless targets 2024-03-12 20:27:42 +01:00
concurrent Fix truncation warning in generation_helpers 2024-03-18 20:10:34 +01:00
corelib CMake: fix cross-compilation build: ${CMAKE_SYSTEM_PROCESSOR} is empty 2024-04-24 12:27:31 -07:00
dbus QDBusArgument: disambiguate between QMap on std::pair and std::map 2024-03-18 14:43:13 -07:00
gui print: Clamp margins entered by the user in the page setup dialog 2024-04-25 14:22:30 +03:00
guiapplauncher Convert "Color Editor Factory" Example to snippets 2024-04-19 13:39:41 +02:00
network QRestReply: add a few more content-type parsing tests 2024-04-24 21:36:49 +02:00
opengl
other tst_QFocusEvent::checkReason_ActiveWindow() remove setActiveWindow() 2024-04-23 09:26:08 +02:00
printsupport Change license for tests files 2024-02-04 09:56:42 +01:00
shared Change license for tests files 2024-02-04 09:56:42 +01:00
sql QSqlDatabase: add moveToThread()/currentThread() 2024-04-25 08:27:21 +02:00
testlib QSignalSpy: separate messages for invalid and non-signal meta-methods 2024-03-22 15:31:39 +01:00
tools uic: Write fully qualified enumerations for cursors/icon pixmaps 2024-04-23 12:33:54 +02:00
wasm wasm: move wasm tests to own subdirectories 2024-04-15 19:28:47 +02:00
widgets tst_QGraphicsView::viewportUpdateMode2() remove setActiveWindow() 2024-04-23 17:40:40 +02:00
xml QtXml: fix leak in QDomText::splitText 2024-03-02 21:22:53 +01:00
CMakeLists.txt wasm: Enable fileselector test 2024-04-18 12:31:17 +02:00
network-settings.h Change license for tests files 2024-02-04 09:56:42 +01:00