Skip to content

Commit c88dfa3

Browse files
committed
Fix documentation for QPrinter::PrinterResolution
Documentation omitted the fact that PrinterResolution is not checked in QPdfPrintEngine code at all, and would end up using the default value set in the code. Pick-to: 6.8 6.10 Fixes: QTBUG-133410 Change-Id: I2424b46acf10db6da7d8e02b31132e6e0c273976 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> Reviewed-by: Sami Varanka <sami.varanka@qt.io> Reviewed-by: Titta Heikkala <titta.heikkala@qt.io>
1 parent 843f393 commit c88dfa3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/printsupport/kernel/qprinter.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -335,11 +335,11 @@ class QPrinterPagedPaintDevicePrivate : public QPagedPaintDevicePrivate
335335
lower quality output than HighResolution and should only be used
336336
for drafts.
337337
338-
\value PrinterResolution This value is deprecated. It is
339-
equivalent to ScreenResolution on Unix and HighResolution on
340-
Windows and Mac. Due to the difference between ScreenResolution
341-
and HighResolution, use of this value may lead to non-portable
342-
printer code.
338+
\value PrinterResolution This value is deprecated. For printers,
339+
it is equivalent to ScreenResolution on Unix and HighResolution
340+
on Windows and macOS. For PDF printing, it is not supported and
341+
may result in undefined behavior. Using this value can lead to
342+
non-portable printer code.
343343
344344
\value HighResolution On Windows, sets the printer resolution to that
345345
defined for the printer in use. For PDF printing, sets the

0 commit comments

Comments
 (0)