summaryrefslogtreecommitdiffstats
path: root/src/printsupport
diff options
context:
space:
mode:
authorJohn Layt <jlayt@kde.org>2013-12-10 20:23:07 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-03-17 13:45:19 +0100
commit87d802465b5acad91ea43fcebaa636bba2a1917a (patch)
treed335fb24012cb842ea75ea4cb081ddc4054dbfa5 /src/printsupport
parentad0163d088ace67aa1f94097ef917b8ff49324a6 (diff)
QPageSize - Add new QPageSize class
New QPageSize class to encapsulate paper sizes and names to ensure all sizes and conversions are consistent and match the Postscript standard sizes. Subsequent changes will use this class in the paged paint devices, paint engines, print engines, and print plugins to replace multiple inconsistent local implementations. [ChangeLog][QtGui][QPageSize] Added new QPageSize class to implement Adobe Postscript PPD standard page sizes. This class supports the standard page sizes, names and keys from the PPD standard, and provides convenient size and rect conversion methods. Change-Id: Ie2c8be0c3df0d29ac5da4cd9877ad41d0982633c Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/printsupport')
-rw-r--r--src/printsupport/kernel/qprinter.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/printsupport/kernel/qprinter.h b/src/printsupport/kernel/qprinter.h
index 679f3af043..17afdc2157 100644
--- a/src/printsupport/kernel/qprinter.h
+++ b/src/printsupport/kernel/qprinter.h
@@ -75,6 +75,7 @@ public:
enum Orientation { Portrait, Landscape };
+ // ### Qt6 Remove in favor of QPage::PageSize
#ifndef Q_QDOC
typedef PageSize PaperSize;
#else