diff options
author | Andy Shaw <andy.shaw@digia.com> | 2013-08-09 15:06:51 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-09-02 16:26:21 +0200 |
commit | 74a0cb417fe31a12b5ec16317206620f7d549d62 (patch) | |
tree | eb56bfc8e36bae2b1fda0ceec76a4bbbdfe3ab86 /src/printsupport/kernel/qprintengine_win.cpp | |
parent | 040fa04882b2050e73e74459d8ca06f72e6f95c5 (diff) |
Make sure QPrinter::Folio maps to the right paper size on Windows
Since there are two different Folio specifications (Adobe and Microsoft)
then we need to ensure we consistently use the same one across all
platforms. Therefore we change the one on Windows to match the
corresponding standard paper and add a note explaining how to get the
DMPAPER_FOLIO size.
Change-Id: I0f20ba5598ef8f680125fcd33dbc6924bd521d75
Reviewed-by: John Layt <jlayt@kde.org>
Diffstat (limited to 'src/printsupport/kernel/qprintengine_win.cpp')
-rw-r--r-- | src/printsupport/kernel/qprintengine_win.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/printsupport/kernel/qprintengine_win.cpp b/src/printsupport/kernel/qprintengine_win.cpp index c798ac0c7f..36dd7ecb0c 100644 --- a/src/printsupport/kernel/qprintengine_win.cpp +++ b/src/printsupport/kernel/qprintengine_win.cpp @@ -89,7 +89,7 @@ static const struct { { DMPAPER_A5, QPrinter::A5 }, { DMPAPER_B4, QPrinter::B4 }, { DMPAPER_B5, QPrinter::B5 }, - { DMPAPER_FOLIO, QPrinter::Folio }, + { DMPAPER_A4_PLUS, QPrinter::Folio }, { DMPAPER_ENV_10, QPrinter::Comm10E }, { DMPAPER_ENV_DL, QPrinter::DLE }, { DMPAPER_ENV_C3, QPrinter::C5E }, @@ -103,7 +103,6 @@ static const struct { { DMPAPER_A_PLUS, QPrinter::A4 }, { DMPAPER_B_PLUS, QPrinter::A3 }, { DMPAPER_LETTER_PLUS, QPrinter::Letter }, - { DMPAPER_A4_PLUS, QPrinter::A4 }, { DMPAPER_A5_TRANSVERSE, QPrinter::A5 }, { DMPAPER_B5_TRANSVERSE, QPrinter::B5 }, { DMPAPER_A3_EXTRA, QPrinter::A3 }, |