summaryrefslogtreecommitdiffstats
path: root/src/core/doc/src
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2021-07-09 16:48:00 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-07-14 19:02:59 +0000
commit58c67b08f7ad668f95a6edaccd96dd0fe72f675d (patch)
tree7c8744208ba57eb220ae582a3c2f927b27a7e854 /src/core/doc/src
parentf1d76a9d05e34686414ef7f2f214a64f35a2e8fa (diff)
Update parameters to findText callback
Change-Id: I622ff55c1c9b6f9d4818228c75543c3deffa37be Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu> (cherry picked from commit 56b1f53d9b2927f5ba2a73f85cee59e385bf489d) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src/core/doc/src')
-rw-r--r--src/core/doc/src/qwebenginepage_lgpl.qdoc5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/doc/src/qwebenginepage_lgpl.qdoc b/src/core/doc/src/qwebenginepage_lgpl.qdoc
index bbe1e0110..d250e0356 100644
--- a/src/core/doc/src/qwebenginepage_lgpl.qdoc
+++ b/src/core/doc/src/qwebenginepage_lgpl.qdoc
@@ -472,14 +472,13 @@
*/
/*!
- \fn void QWebEnginePage::findText(const QString &subString, QWebEnginePage::FindFlags options = {}, const std::function<void(bool)> &resultCallback = std::function<void(bool)>)
+ \fn void QWebEnginePage::findText(const QString &subString, QWebEnginePage::FindFlags options = {}, const std::function<void(const QWebEngineFindTextResult &)> &resultCallback = std::function<void(const QWebEngineFindTextResult &)>)
Finds the specified string, \a subString, in the page, using the given \a options.
The findTextFinished() signal is emitted when a string search is completed.
To clear the search highlight, just pass an empty string.
- The \a resultCallback must take a boolean parameter. It will be called with a value of \c true
- if the \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