From c248844b3b8ee004800606d1a6c6e6d6bee31738 Mon Sep 17 00:00:00 2001 From: Topi Reinio Date: Wed, 30 Jun 2021 14:04:31 +0200 Subject: Doc: Fix documentation issues for Qt WebEngine MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. Pick-to: 6.2 Change-Id: I96be38b7daac37a7e35c149b4b3ec3f18c4415c9 Reviewed-by: Topi Reiniƶ --- src/webenginewidgets/api/qwebengineview.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/webenginewidgets/api') 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 &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() */ -- cgit v1.2.3