summaryrefslogtreecommitdiffstats
path: root/dist/changes-3.1.0
diff options
context:
space:
mode:
authorJarkko Koivikko <jarkko.koivikko@code-q.fi>2024-01-04 15:47:11 +0200
committerJarkko Koivikko <jarkko.koivikko@code-q.fi>2024-04-25 14:22:30 +0300
commit6c72080f26e9b70041434c6d762f7d601a2bf19c (patch)
tree1369d605e20d774431dec14fd11e46d09495fc5b /dist/changes-3.1.0
parentb4c63b89dfe136d0579bf1b6422c4d878cdd74ab (diff)
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>
Diffstat (limited to 'dist/changes-3.1.0')
0 files changed, 0 insertions, 0 deletions