summaryrefslogtreecommitdiffstats
path: root/src/printsupport
diff options
context:
space:
mode:
Diffstat (limited to 'src/printsupport')
-rw-r--r--src/printsupport/kernel/qprinter.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/printsupport/kernel/qprinter.cpp b/src/printsupport/kernel/qprinter.cpp
index 496883f44b..9e9a0625d7 100644
--- a/src/printsupport/kernel/qprinter.cpp
+++ b/src/printsupport/kernel/qprinter.cpp
@@ -1024,6 +1024,9 @@ void QPrinter::setPageSize(PageSize newPageSize)
Sets the paper size based on \a paperSize in \a unit.
+ Note that the paper size is defined in a portrait layout, regardless of
+ what the current printer orientation is set to.
+
\sa paperSize()
*/
@@ -1036,8 +1039,11 @@ void QPrinter::setPaperSize(const QSizeF &paperSize, QPrinter::Unit unit)
}
/*!
- \reimp
- */
+ \reimp
+
+ Note that the page size is defined in a portrait layout, regardless of
+ what the current printer orientation is set to.
+*/
void QPrinter::setPageSizeMM(const QSizeF &size)
{
Q_D(QPrinter);
@@ -1054,6 +1060,8 @@ void QPrinter::setPageSizeMM(const QSizeF &size)
Returns the paper size in \a unit.
+ Note that the returned size reflects the current paper orientation.
+
\sa setPaperSize()
*/