summaryrefslogtreecommitdiffstats
path: root/src/webenginewidgets/api/qwebenginepage.h
diff options
context:
space:
mode:
authorMichael Bruning <michael.bruning@theqtcompany.com>2016-04-05 14:02:13 +0200
committerMichael BrĂ¼ning <michael.bruning@theqtcompany.com>2016-04-13 08:23:58 +0000
commita3d2ee4eabc4e491ac64976aea47c2bdf650cabe (patch)
tree606573cf4d8825b96759f08bd82aa303a1cf623e /src/webenginewidgets/api/qwebenginepage.h
parent22a550303618202135e58f5673e7b8935d578687 (diff)
Remove default values for printToPdf callbacks and unify API.
Adds default QPageLayout values. Change-Id: Ibf2964ecd86350a51d682e385973f830ac4347a7 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
Diffstat (limited to 'src/webenginewidgets/api/qwebenginepage.h')
-rw-r--r--src/webenginewidgets/api/qwebenginepage.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/webenginewidgets/api/qwebenginepage.h b/src/webenginewidgets/api/qwebenginepage.h
index bc6d101a1..3c3a28d80 100644
--- a/src/webenginewidgets/api/qwebenginepage.h
+++ b/src/webenginewidgets/api/qwebenginepage.h
@@ -272,11 +272,11 @@ public:
void setAudioMuted(bool muted);
bool recentlyAudible() const;
- void printToPdf(const QString &filePath, const QPageLayout &layout);
+ void printToPdf(const QString &filePath, const QPageLayout &layout = QPageLayout(QPageSize(QPageSize::A4), QPageLayout::Portrait, QMarginsF()));
#ifdef Q_QDOC
- void printToPdf(const QPageLayout &layout, FunctorOrLambda resultCallback);
+ void printToPdf(FunctorOrLambda resultCallback, const QPageLayout &layout = QPageLayout(QPageSize(QPageSize::A4), QPageLayout::Portrait, QMarginsF()));
#else
- void printToPdf(const QPageLayout &layout, const QWebEngineCallback<const QByteArray&> &resultCallback);
+ void printToPdf(const QWebEngineCallback<const QByteArray&> &resultCallback, const QPageLayout &layout = QPageLayout(QPageSize(QPageSize::A4), QPageLayout::Portrait, QMarginsF()));
#endif
const QWebEngineContextMenuData &contextMenuData() const;