diff options
author | Topi Reinio <topi.reinio@qt.io> | 2021-06-30 14:04:31 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2021-07-07 15:21:28 +0000 |
commit | a864df85a9e46c5dcd7a03a444d3b8a7717946f7 (patch) | |
tree | 0c70ac6ece86802a0ad3bc42f7f2bd51edd84eee /src/webenginewidgets | |
parent | bbab484dc45ae2391065d07e1f68027bb53e44d9 (diff) |
Doc: Fix documentation issues for Qt WebEngine
API and documentation changes since 5.15 caused multiple warnings from
QDoc; this change addresses most of them. Some warnings indicate
missing documentation, those issues still remain.
Change-Id: I96be38b7daac37a7e35c149b4b3ec3f18c4415c9
Reviewed-by: Topi Reiniƶ <topi.reinio@qt.io>
(cherry picked from commit c248844b3b8ee004800606d1a6c6e6d6bee31738)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src/webenginewidgets')
-rw-r--r-- | src/webenginewidgets/api/qwebengineview.cpp | 10 | ||||
-rw-r--r-- | src/webenginewidgets/doc/src/qwebengineview_lgpl.qdoc | 2 |
2 files changed, 7 insertions, 5 deletions
diff --git a/src/webenginewidgets/api/qwebengineview.cpp b/src/webenginewidgets/api/qwebengineview.cpp index e2b03afaf..33918936d 100644 --- a/src/webenginewidgets/api/qwebengineview.cpp +++ b/src/webenginewidgets/api/qwebengineview.cpp @@ -920,6 +920,9 @@ void QWebEngineView::dropEvent(QDropEvent *e) #endif // QT_CONFIG(draganddrop) #if QT_CONFIG(menu) +/*! + Creates a standard context menu and returns a pointer to it. +*/ QMenu *QWebEngineView::createStandardContextMenu() { Q_D(QWebEngineView); @@ -938,7 +941,7 @@ QMenu *QWebEngineView::createStandardContextMenu() \since 6.2 Returns additional data about the current context menu. It is only guaranteed to be valid during - the call to the contextMenuEvent() + the call to the contextMenuEvent(). \sa createStandardContextMenu() */ @@ -965,7 +968,7 @@ QWebEngineContextMenuRequest *QWebEngineView::lastContextMenuRequest() const Renders the current content of the page into a PDF document and saves it in the location specified in \a filePath. The page size and orientation of the produced PDF document are taken from - the values specified in \a pageLayout, while the range of pages printed is + the values specified in \a layout, while the range of pages printed is taken from \a ranges with the default being printing all pages. This method issues an asynchronous request for printing the web page into @@ -996,7 +999,7 @@ void QWebEngineView::printToPdf(const QString &filePath, const QPageLayout &layo /*! Renders the current content of the page into a PDF document and returns a byte array containing the PDF data as parameter to \a resultCallback. - The page size and orientation of the produced PDF document are taken from the values specified in \a pageLayout, + The page size and orientation of the produced PDF document are taken from the values specified in \a layout, while the range of pages printed is taken from \a ranges with the default being printing all pages. The \a resultCallback must take a const reference to a QByteArray as parameter. If printing was successful, this byte array @@ -1044,6 +1047,7 @@ void QWebEngineView::printToPdf(const std::function<void(const QByteArray&)> &re \since 6.2 This signal is emitted when printing requested with print() has finished. + The parameter \a success is \c true for success or \c false for failure. \sa print() */ diff --git a/src/webenginewidgets/doc/src/qwebengineview_lgpl.qdoc b/src/webenginewidgets/doc/src/qwebengineview_lgpl.qdoc index a722aeb3f..052ff239f 100644 --- a/src/webenginewidgets/doc/src/qwebengineview_lgpl.qdoc +++ b/src/webenginewidgets/doc/src/qwebengineview_lgpl.qdoc @@ -392,6 +392,4 @@ It is equivalent to: \snippet qtwebengine_qwebengineview_snippet.cpp 6 - - \sa QWebEngineSettings::defaultSettings() */ |