summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qpagesize.h
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2020-09-09 17:53:19 +0200
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2020-09-10 11:24:20 +0200
commit62f5ecca7d2b193236cd4e5ccfc96290541b9fff (patch)
tree0839fd5584cde37c21c599812a864324b22227c9 /src/gui/painting/qpagesize.h
parent78b66c7a696132f5f2dacb9615c7804f3be4954c (diff)
Clean up PageSizeId enum
Reorder, and remove ### Qt 6 comment It would be nice to have a way to statically assert that the order of StandardPageSizes (and their id) matches the order of the enum, but it's not possible (or at least very cumbersome) to do so. Change-Id: Id0d0a58958f1e17151725cbe8f8068db64f84939 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/gui/painting/qpagesize.h')
-rw-r--r--src/gui/painting/qpagesize.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/gui/painting/qpagesize.h b/src/gui/painting/qpagesize.h
index 133274760f..eece650f0f 100644
--- a/src/gui/painting/qpagesize.h
+++ b/src/gui/painting/qpagesize.h
@@ -58,12 +58,8 @@ class Q_GUI_EXPORT QPageSize
{
public:
- // ### Qt6 Re-order and remove duplicates
- // NOTE: Must keep in sync with QPagedPrintEngine and QPrinter
enum PageSizeId {
// Existing Qt sizes
- A4,
- B5,
Letter,
Legal,
Executive,
@@ -71,6 +67,7 @@ public:
A1,
A2,
A3,
+ A4,
A5,
A6,
A7,
@@ -83,6 +80,7 @@ public:
B3,
B4,
B6,
+ B5,
B7,
B8,
B9,
@@ -198,7 +196,7 @@ public:
EnvelopePrc10,
EnvelopeYou4,
- // Last item, with commonly used synynoms from QPagedPrintEngine / QPrinter
+ // Last item, with commonly used synynoms
LastPageSize = EnvelopeYou4,
NPageSize = LastPageSize,
NPaperSize = LastPageSize,