summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeena Miettinen <riitta-leena.miettinen@qt.io>2016-12-21 15:04:40 +0100
committerJani Heikkinen <jani.heikkinen@qt.io>2016-12-22 10:57:20 +0000
commit4bcf51ba125a8c74a71a949fbfce2e106646c0fc (patch)
treeae24edd30610add5c30545b6a182647e6f452500
parent4c95ac27ce18181de428fb97c421a582808d9089 (diff)
Doc: WebEngineView::runJavaScript() callback parameter is optional
This is currently implied, but not stated. Use the \a command for the callback parameter. Change-Id: I4d593f19362e04f54ae555c75897c50d03c643f7 Reviewed-by: Kai Koehne <kai.koehne@qt.io>
-rw-r--r--src/webengine/doc/src/webengineview.qdoc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/webengine/doc/src/webengineview.qdoc b/src/webengine/doc/src/webengineview.qdoc
index 518099c3b..52ca84c6b 100644
--- a/src/webengine/doc/src/webengineview.qdoc
+++ b/src/webengine/doc/src/webengineview.qdoc
@@ -387,8 +387,8 @@
\qmlmethod void WebEngineView::runJavaScript(string script, variant callback)
Runs the specified \a script in the content of the web view.
- In case a callback function is provided, it will be invoked after the script
- finishes running.
+ The \a callback parameter is optional. If a callback function is provided,
+ it will be invoked after the script finishes running.
\code
runJavaScript("document.title", function(result) { console.log(result); });