diff options
author | John Layt <jlayt@kde.org> | 2014-01-26 14:21:59 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-03-17 13:45:14 +0100 |
commit | ad0163d088ace67aa1f94097ef917b8ff49324a6 (patch) | |
tree | e3d523495b466c40d6e29abcb397c505d4202b43 /src/printsupport | |
parent | cf56e066ada1029aa7e25bca99843a6b1fbc8f09 (diff) |
QPrinter - Add page metric tests
Add more page metrics tests to expose the many bugs and inconsistencies
in the page layout handling. No platform or pdf backend passes all
these tests so they are skipped for now, but following commits will use
the tests to ensure the re-write of the page layout handling fixes the
many problems in a consistent way for all backends.
Change-Id: Ic5b16aa08dfe2bd9a9191662fd2bbe6b913e15c9
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Reviewed-by: Andy Shaw <andy.shaw@digia.com>
Diffstat (limited to 'src/printsupport')
-rw-r--r-- | src/printsupport/kernel/qprinter.cpp | 12 |
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() */ |