diff options
author | Szabolcs David <davidsz@inf.u-szeged.hu> | 2021-04-29 18:03:26 +0200 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2021-05-01 04:36:06 +0000 |
commit | 9e1b49c53c50f97134515b9a924985a2a709c6f3 (patch) | |
tree | 900d87e2aa3b6b7f8e9204127d36503bd52b2112 /src/tools/uic | |
parent | 808a6dedcb4aabcb81f096f03d0b1bb4ae2ea0d1 (diff) |
Silence warning in QPrintDialog
Selecting "Print all" at page range options and accepting the
dialog prints a warning message:
"QPageRanges::addRange: 'from' and 'to' must be greater than 0"
This happens because QPrintDialog tries to clear the printer's range
collection by setting 'from' and 'to' to zero - which is an invalid
page number. Avoid the validation method by setting QPageRanges
directly to a clean instance.
Pick-to: 6.1
Change-Id: I23b66a97b36aa23506904e93688cb60a9d496bfb
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/tools/uic')
0 files changed, 0 insertions, 0 deletions