From ce7d46d6122c0af2c5820d51bbb804bc81cdefa7 Mon Sep 17 00:00:00 2001 From: Szabolcs David Date: Wed, 14 Nov 2018 13:46:18 +0100 Subject: Docs: Extend documentation of WebActions Add some useful information. Change-Id: I39290c8dfc6c4a1d87c6b24fe6c48cab93f805db Reviewed-by: Leena Miettinen Reviewed-by: Allan Sandfeld Jensen --- src/webengine/api/qquickwebengineaction.cpp | 3 ++- src/webengine/doc/src/webengineview_lgpl.qdoc | 13 ++++++++----- 2 files changed, 10 insertions(+), 6 deletions(-) (limited to 'src/webengine') diff --git a/src/webengine/api/qquickwebengineaction.cpp b/src/webengine/api/qquickwebengineaction.cpp index 16eef04d3..f5b780ea6 100644 --- a/src/webengine/api/qquickwebengineaction.cpp +++ b/src/webengine/api/qquickwebengineaction.cpp @@ -146,7 +146,8 @@ QString QQuickWebEngineAction::iconName() const /*! \qmlproperty bool WebEngineAction::enabled - This property holds whether the action is enabled. + This property holds whether the action is enabled. Context-dependent + actions are always enabled. */ bool QQuickWebEngineAction::isEnabled() const { diff --git a/src/webengine/doc/src/webengineview_lgpl.qdoc b/src/webengine/doc/src/webengineview_lgpl.qdoc index 87094c266..0e25e16f3 100644 --- a/src/webengine/doc/src/webengineview_lgpl.qdoc +++ b/src/webengine/doc/src/webengineview_lgpl.qdoc @@ -754,9 +754,11 @@ \value WebEngineView.OpenLinkInThisWindow Open the current link in the current window. (Added in Qt 5.6) \value WebEngineView.OpenLinkInNewWindow - Open the current link in a new window. (Added in Qt 5.6) + Open the current link in a new window. Requires a handler for the + \l newViewRequested() signal. (Added in Qt 5.6) \value WebEngineView.OpenLinkInNewTab - Open the current link in a new tab. (Added in Qt 5.6) + Open the current link in a new tab. Requires a handler for the + \l newViewRequested() signal. (Added in Qt 5.6) \value WebEngineView.CopyLinkToClipboard Copy the current link to the clipboard. (Added in Qt 5.6) \value WebEngineView.CopyImageToClipboard @@ -777,8 +779,8 @@ Mute or unmute the hovered audio or video element. (Added in Qt 5.6) \value WebEngineView.DownloadLinkToDisk Download the current link to the disk. To implement download - actions, connect to the QWebEngineProfile::downloadRequested signal. - (Added in Qt 5.6) + actions, connect to the \l {QQuickWebEngineProfile::downloadRequested} + {WebEngineProfile.downloadRequested} signal. (Added in Qt 5.6) \value WebEngineView.DownloadImageToDisk Download the highlighted image to the disk. (Added in Qt 5.6) \value WebEngineView.DownloadMediaToDisk @@ -791,7 +793,8 @@ \value WebEngineView.SavePage Save the current web page to disk. (Added in Qt 5.7) \value WebEngineView.ViewSource - Show the source of the current page in a new tab. (Added in Qt 5.8) + Show the source of the current page in a new tab. Requires a handler for the + \l newViewRequested() signal. (Added in Qt 5.8) \value WebEngineView.ToggleBold Toggles boldness for the selection or at the cursor position. -- cgit v1.2.3