path: root/src/printsupport/kernel/qprintengine_pdf_p.h
diff options
authorAndy Shaw <>2012-10-25 06:43:01 +0200
committerThe Qt Project <>2012-10-30 12:53:46 +0100
commit50ec06da2c8a1c680d48b84f8c1267fe78a86b6a (patch)
treec31c6015dd0ba3cad1fe194ee5e77a19e5798fc5 /src/printsupport/kernel/qprintengine_pdf_p.h
parentbf722c1ab387e8892242dcaacd8afd36d592ebb6 (diff)
Only use the user set page margins for custom paper
When the QPrinter is initalized then it will set up page margins based on the default paper size. If the paper size is changed to be a custom one then it should disregard the margins for the default paper size. If the page margins are set explicitly beforehand then it will use these page margins. Change-Id: Ic535c3a80b8b217dbd5eb5f4fb2cbc0ab1354563 Reviewed-by: Titta Heikkala <> Reviewed-by: Friedemann Kleint <> Reviewed-by: Eskil Abrahamsen Blomfeldt <>
Diffstat (limited to 'src/printsupport/kernel/qprintengine_pdf_p.h')
1 files changed, 1 insertions, 1 deletions
diff --git a/src/printsupport/kernel/qprintengine_pdf_p.h b/src/printsupport/kernel/qprintengine_pdf_p.h
index 36df233f72..2d70c4619e 100644
--- a/src/printsupport/kernel/qprintengine_pdf_p.h
+++ b/src/printsupport/kernel/qprintengine_pdf_p.h
@@ -151,7 +151,7 @@ private:
QPrinter::PaperSize printerPaperSize;
QSizeF customPaperSize; // in postscript points
+ bool pageMarginsSet;
int fd;