summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/cocoa/qprintengine_mac_p.h
diff options
context:
space:
mode:
authorAndy Shaw <andy.shaw@digia.com>2013-12-02 00:26:17 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-12-03 00:23:45 +0100
commit26a0a3ed85008c3a0edae125fca48c7c36a7437f (patch)
tree8ef0e7a7748cf07202ca213c02ba517b8b9d9108 /src/plugins/platforms/cocoa/qprintengine_mac_p.h
parenta774aa69db918dc6719e160e70780f3b644c62ca (diff)
Respect the custom paper size settings on Mac
When the user added a custom paper size then it would be silently ignored when printing on Mac. This now ensures that it is respected when appropriate. [ChangeLog][Platform Specific Changes][OS X][QtPrintSupport] Respect the custom paper size settings when printing. Task-number: QTBUG-34700 Change-Id: I08afe24e0e67a50e9301abf4642c6f65bb0df1fe Reviewed-by: John Layt <jlayt@kde.org>
Diffstat (limited to 'src/plugins/platforms/cocoa/qprintengine_mac_p.h')
-rw-r--r--src/plugins/platforms/cocoa/qprintengine_mac_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/platforms/cocoa/qprintengine_mac_p.h b/src/plugins/platforms/cocoa/qprintengine_mac_p.h
index 28183118d8..644a07184f 100644
--- a/src/plugins/platforms/cocoa/qprintengine_mac_p.h
+++ b/src/plugins/platforms/cocoa/qprintengine_mac_p.h
@@ -135,6 +135,7 @@ public:
qreal rightMargin;
qreal bottomMargin;
QHash<QMacPrintEngine::PrintEnginePropertyKey, QVariant> valueCache;
+ PMPaper customPaper;
QMacPrintEnginePrivate() : mode(QPrinter::ScreenResolution), state(QPrinter::Idle),
orient(QPrinter::Portrait), printInfo(0), paintEngine(0),
hasCustomPaperSize(false), hasCustomPageMargins(false) {}