Commit 39d47764 authored by Kai Koehne's avatar Kai Koehne
Browse files

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: default avatarLeena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: default avatarMichal Klocek <michal.klocek@qt.io>
Showing with 2 additions and 2 deletions
......@@ -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;
......
......@@ -1041,7 +1041,7 @@
ApplicationWindow {
id: window
WebEngineView {
onFullScreenRequested: {
onFullScreenRequested: function(request) {
if (request.toggleOn)
window.showFullScreen()
else
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment