diff options
Diffstat (limited to 'src/webenginewidgets/api/qwebenginepage.h')
-rw-r--r-- | src/webenginewidgets/api/qwebenginepage.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/webenginewidgets/api/qwebenginepage.h b/src/webenginewidgets/api/qwebenginepage.h index 20fff3ab4..ad399a7a5 100644 --- a/src/webenginewidgets/api/qwebenginepage.h +++ b/src/webenginewidgets/api/qwebenginepage.h @@ -268,8 +268,12 @@ public: void setAudioMuted(bool muted); bool wasRecentlyAudible(); - void printToPDF(const QString &filePath, const QPageLayout &layout = QPageLayout()); - + void printToPdf(const QString &filePath, const QPageLayout &layout); +#ifdef Q_QDOC + void printToPdf(const QPageLayout &layout, FunctorOrLambda resultCallback); +#else + void printToPdf(const QPageLayout &layout, const QWebEngineCallback<const QByteArray&> &resultCallback); +#endif Q_SIGNALS: void loadStarted(); void loadProgress(int progress); |