summaryrefslogtreecommitdiff
path: root/src/core/api/qwebenginenewwindowrequest.h
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2021-07-14 11:08:33 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-07-23 14:32:37 +0000
commitdae47317c1089a438a92d8080109bde43f14b540 (patch)
tree96cdd51c25990215c34beae7899d4375100bb834 /src/core/api/qwebenginenewwindowrequest.h
parent90f8de8f95c5151a4cd4d94b7da37e6b8bdd9014 (diff)
downloadqtwebengine-dae47317c1089a438a92d8080109bde43f14b540.tar.gz
Add QWebEngineNewWindowRequest::openIn(QWebEnginePage *)
Makes for a nicer API Change-Id: I15e72d526e9cf6cf9ca8bd3e24f5dd7e7b2e9fa5 Reviewed-by: Kirill Burtsev <kirill.burtsev@qt.io> (cherry picked from commit 9285872b0dd4da8c0ba1dd8ef6c6822f85622f4e) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src/core/api/qwebenginenewwindowrequest.h')
-rw-r--r--src/core/api/qwebenginenewwindowrequest.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/api/qwebenginenewwindowrequest.h b/src/core/api/qwebenginenewwindowrequest.h
index 4066f1a65..8fd35ad6f 100644
--- a/src/core/api/qwebenginenewwindowrequest.h
+++ b/src/core/api/qwebenginenewwindowrequest.h
@@ -53,6 +53,7 @@ class WebContentsAdapter;
QT_BEGIN_NAMESPACE
+class QWebEnginePage;
struct QWebEngineNewWindowRequestPrivate;
class Q_WEBENGINECORE_EXPORT QWebEngineNewWindowRequest : public QObject
@@ -78,6 +79,8 @@ public:
QRect requestedGeometry() const;
bool isUserInitiated() const;
+ void openIn(QWebEnginePage *);
+
protected:
QWebEngineNewWindowRequest(DestinationType, const QRect &, const QUrl &, bool,
QSharedPointer<QtWebEngineCore::WebContentsAdapter>,