diff options
author | Szabolcs David <davidsz@inf.u-szeged.hu> | 2021-06-03 01:37:37 +0200 |
---|---|---|
committer | Szabolcs David <davidsz@inf.u-szeged.hu> | 2021-06-03 14:05:22 +0200 |
commit | 4943d9801ccad59aef073374644fc991e49987e3 (patch) | |
tree | 4a4495c6a3391aa1bc4ad42d1548ff2f1bc9e46e /src/core/api/qwebenginepage_p.h | |
parent | 57140466f277a074b288a515b2bdfd26c8a3cbe3 (diff) |
Drop printsupport dependency from core
Prevent linkage of core to widgets by moving printing API from
QWebEnginePage to View and using QPagedPaintDevice (the QtGui ancestor
of QPrinter) where it's needed.
Change-Id: I6ea96edb495b0dcaaa584bbe72632fda025c18d3
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/core/api/qwebenginepage_p.h')
-rw-r--r-- | src/core/api/qwebenginepage_p.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/api/qwebenginepage_p.h b/src/core/api/qwebenginepage_p.h index d2c246397..a830028f8 100644 --- a/src/core/api/qwebenginepage_p.h +++ b/src/core/api/qwebenginepage_p.h @@ -104,6 +104,9 @@ public: virtual void unhandledKeyEvent(QKeyEvent *event) = 0; virtual bool passOnFocus(bool reverse) = 0; virtual QObject *accessibilityParentObject() = 0; + virtual void didPrintPage(quint64 requestId, QSharedPointer<QByteArray> result) = 0; + virtual void didPrintPageToPdf(const QString &filePath, bool success) = 0; + virtual void printRequested() = 0; }; class Q_WEBENGINECORE_PRIVATE_EXPORT QWebEnginePagePrivate : public QtWebEngineCore::WebContentsAdapterClient @@ -225,9 +228,6 @@ public: mutable QtWebEngineCore::CallbackDirectory m_callbacks; mutable QAction *actions[QWebEnginePage::WebActionCount]; -#if QT_CONFIG(webengine_printing_and_pdf) - QPrinter *currentPrinter; -#endif }; QT_END_NAMESPACE |