diff --git a/src/webengine/api/qquickwebenginecontextmenurequest.cpp b/src/webengine/api/qquickwebenginecontextmenurequest.cpp index 5ad2b1501fa66bd3a2d3a8de08511ce784253694..df57442a11dd73a844573cd33f6972bbb2157fd0 100644 --- a/src/webengine/api/qquickwebenginecontextmenurequest.cpp +++ b/src/webengine/api/qquickwebenginecontextmenurequest.cpp @@ -80,7 +80,7 @@ ASSERT_ENUMS_MATCH(QtWebEngineCore::WebEngineContextMenuData::MediaTypePlugin, WebEngineView { id: view // ... - onContextMenuRequested: { + onContextMenuRequested: function(request) { request.accepted = true; myMenu.x = request.x; myMenu.y = request.y; diff --git a/src/webengine/doc/src/webengineview.qdoc b/src/webengine/doc/src/webengineview.qdoc index 512f6dfda7dc46f9e70cdbf061f12f48cd305f3e..418da9f9da0874727f47591bf31a44a4d7830924 100644 --- a/src/webengine/doc/src/webengineview.qdoc +++ b/src/webengine/doc/src/webengineview.qdoc @@ -1041,7 +1041,7 @@ ApplicationWindow { id: window WebEngineView { - onFullScreenRequested: { + onFullScreenRequested: function(request) { if (request.toggleOn) window.showFullScreen() else