summaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qmltests
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2021-05-28 12:31:28 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2021-06-04 01:54:46 +0200
commit227279bf2f22c740f3f2fdc34f1032d4177dc32a (patch)
tree76b69a5b72a12dffd95948dde232ac5f7f55cf96 /tests/auto/quick/qmltests
parenta806467ff37414dc52b5a15a351bde5505afac6e (diff)
Move QQuickWebEngineNavigationRequest to Core
Adds navigationRequested() to QWebEnginePage and exposes more information about navigation requests than the old acceptNavigationRequest() method. Change-Id: Ibb8d750bacd1060c3086ffe2c85336abd216bab0 Reviewed-by: Kirill Burtsev <kirill.burtsev@qt.io>
Diffstat (limited to 'tests/auto/quick/qmltests')
-rw-r--r--tests/auto/quick/qmltests/data/tst_navigationRequested.qml6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/quick/qmltests/data/tst_navigationRequested.qml b/tests/auto/quick/qmltests/data/tst_navigationRequested.qml
index a24b8f0d4..bb2864a7d 100644
--- a/tests/auto/quick/qmltests/data/tst_navigationRequested.qml
+++ b/tests/auto/quick/qmltests/data/tst_navigationRequested.qml
@@ -65,14 +65,14 @@ TestWebEngineView {
} else {
attributes.iframeUrl = request.url
if (shouldIgnoreSubFrameRequests) {
- request.action = WebEngineView.IgnoreRequest
+ request.action = WebEngineNavigationRequest.IgnoreRequest
}
}
- if (request.navigationType === WebEngineView.LinkClickedNavigation) {
+ if (request.navigationType === WebEngineNavigationRequest.LinkClickedNavigation) {
attributes.linkClickedNavigationRequested = true
if (shouldIgnoreLinkClicks) {
- request.action = WebEngineView.IgnoreRequest
+ request.action = WebEngineNavigationRequest.IgnoreRequest
attributes.linkClickedNavigationIgnored = true
}
}