From 39d4776463db955da0469be5f8cd20f29fe8aee0 Mon Sep 17 00:00:00 2001 From: Kai Koehne <kai.koehne@qt.io> Date: Fri, 30 Sep 2016 13:46:25 +0200 Subject: [PATCH] Make argument of slots explicit in examples Make the name of arguments explicit by using the onXXX: function(arg) { syntax. Change-Id: I1b24e444d4c8e2e26561edc043b53672ccb4de23 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Michal Klocek <michal.klocek@qt.io> --- src/webengine/api/qquickwebenginecontextmenurequest.cpp | 2 +- src/webengine/doc/src/webengineview.qdoc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/webengine/api/qquickwebenginecontextmenurequest.cpp b/src/webengine/api/qquickwebenginecontextmenurequest.cpp index 5ad2b1501..df57442a1 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 512f6dfda..418da9f9d 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 -- GitLab