From 56b1f53d9b2927f5ba2a73f85cee59e385bf489d Mon Sep 17 00:00:00 2001 From: Allan Sandfeld Jensen Date: Fri, 9 Jul 2021 16:48:00 +0200 Subject: Update parameters to findText callback Pick-to: 6.2 Change-Id: I622ff55c1c9b6f9d4818228c75543c3deffa37be Reviewed-by: Qt CI Bot Reviewed-by: Peter Varga --- src/webenginewidgets/doc/src/qwebengineview_lgpl.qdoc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/webenginewidgets/doc') diff --git a/src/webenginewidgets/doc/src/qwebengineview_lgpl.qdoc b/src/webenginewidgets/doc/src/qwebengineview_lgpl.qdoc index 052ff239f..34aa53278 100644 --- a/src/webenginewidgets/doc/src/qwebengineview_lgpl.qdoc +++ b/src/webenginewidgets/doc/src/qwebengineview_lgpl.qdoc @@ -249,13 +249,12 @@ */ /*! - \fn void QWebEngineView::findText(const QString &subString, QWebEnginePage::FindFlags options = {}, const std::function &resultCallback = std::function) + \fn void QWebEngineView::findText(const QString &subString, QWebEnginePage::FindFlags options = {}, const std::function &resultCallback = std::function) Finds the specified string, \a subString, in the page, using the given \a options. To clear the selection, just pass an empty string. - \a resultCallback must take a boolean parameter. It will be called with a value of \c true - if \a subString was found; otherwise the callback value will be \c false. + The \a resultCallback must take a QWebEngineFindTextResult parameter. \warning We guarantee that the callback (\a resultCallback) is always called, but it might be done during page destruction. When QWebEnginePage is deleted, the callback is triggered with an invalid -- cgit v1.2.3