summaryrefslogtreecommitdiffstats
path: root/src/webenginewidgets/api/qwebenginepage.h
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@theqtcompany.com>2016-02-24 13:18:52 +0100
committerAllan Sandfeld Jensen <allan.jensen@theqtcompany.com>2016-02-25 08:31:57 +0000
commit66e01f2866479fe9f27f663ddcdc32fefb52e193 (patch)
treee65fa99c568dbb82056fb1bc2f0f57eb4c04f7ff /src/webenginewidgets/api/qwebenginepage.h
parent26db8c70baa518843ec5ceba04196608f4b82bf0 (diff)
Move printToPDF to page
The API needs nothing from view and view just forwards it to the page anyway. This is an page level API, this also makes it work without being shown. Change-Id: I3b8555ab472ec2c7632db3655bcc31925fcfa001 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
Diffstat (limited to 'src/webenginewidgets/api/qwebenginepage.h')
-rw-r--r--src/webenginewidgets/api/qwebenginepage.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/webenginewidgets/api/qwebenginepage.h b/src/webenginewidgets/api/qwebenginepage.h
index 08663a05e..20fff3ab4 100644
--- a/src/webenginewidgets/api/qwebenginepage.h
+++ b/src/webenginewidgets/api/qwebenginepage.h
@@ -47,6 +47,7 @@
#include <QtCore/qobject.h>
#include <QtCore/qurl.h>
#include <QtCore/qvariant.h>
+#include <QtGui/qpagelayout.h>
#include <QtNetwork/qnetworkaccessmanager.h>
#include <QtWidgets/qwidget.h>
@@ -267,6 +268,8 @@ public:
void setAudioMuted(bool muted);
bool wasRecentlyAudible();
+ void printToPDF(const QString &filePath, const QPageLayout &layout = QPageLayout());
+
Q_SIGNALS:
void loadStarted();
void loadProgress(int progress);