summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qpdfwriter.h
diff options
context:
space:
mode:
authorJohn Layt <jlayt@kde.org>2014-01-05 18:51:32 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-03-17 13:45:52 +0100
commit9e29fab38df831f33385ee25bff235a620aa20d5 (patch)
tree0fc8f608aa5124a370561462ff0515d41c4e712a /src/gui/painting/qpdfwriter.h
parent0c04b31d2715f68aa883107b4aa593fd95aefdfe (diff)
QPdfWriter - Use QPageSize and QPageLayout
Add support to QPdfWriter for QPageSize, QPageLayout, and resolution. [ChangeLog][QtGui][QPdfWriter] The QPdfWriter now supports setting the PDF orientation, layout and resolution by using QPageSize and QPageLayout. Change-Id: I9c269f997ec540dac1989f355c6a2e7488947966 Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/gui/painting/qpdfwriter.h')
-rw-r--r--src/gui/painting/qpdfwriter.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gui/painting/qpdfwriter.h b/src/gui/painting/qpdfwriter.h
index f5c25de5e9..fce0b88ea8 100644
--- a/src/gui/painting/qpdfwriter.h
+++ b/src/gui/painting/qpdfwriter.h
@@ -48,6 +48,7 @@
#include <QtCore/qobject.h>
#include <QtGui/qpagedpaintdevice.h>
+#include <QtGui/qpagelayout.h>
QT_BEGIN_NAMESPACE
@@ -70,6 +71,17 @@ public:
bool newPage();
+ void setResolution(int resolution);
+ int resolution() const;
+
+ bool setPageLayout(const QPageLayout &pageLayout);
+ bool setPageSize(const QPageSize &pageSize);
+ bool setPageOrientation(QPageLayout::Orientation orientation);
+ bool setPageMargins(const QMarginsF &margins);
+ bool setPageMargins(const QMarginsF &margins, QPageLayout::Unit units);
+
+ QPageLayout pageLayout() const;
+
void setPageSize(PageSize size);
void setPageSizeMM(const QSizeF &size);