summaryrefslogtreecommitdiffstats
path: root/src/core/find_text_helper.h
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2021-06-03 15:18:27 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-06-10 16:28:57 +0000
commit3917128b131b1c69bd78e99aec14abf477567b05 (patch)
tree7641849f913aad7a0442aa7b74f7a58e98e5d96c /src/core/find_text_helper.h
parentef30fe45786d5f2e0b2a5023510e49f2a8d72ab7 (diff)
Switch QWebEnginePage::findText() to std::function
Leaving further API modification for later Task-number: QTBUG-63235 Change-Id: I75367ee5d4ce071abaeed361d2dc27c64fb6dd8a Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu> (cherry picked from commit f820e8f1993ca2a3e6808467cabca82e464f36e7) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src/core/find_text_helper.h')
-rw-r--r--src/core/find_text_helper.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/find_text_helper.h b/src/core/find_text_helper.h
index 8a19b15d8..394ea5bb0 100644
--- a/src/core/find_text_helper.h
+++ b/src/core/find_text_helper.h
@@ -72,7 +72,7 @@ public:
FindTextHelper(content::WebContents *webContents, WebContentsAdapterClient *viewClient);
~FindTextHelper();
- void startFinding(const QString &findText, bool caseSensitively, bool findBackward, const QWebEngineCallback<bool> resultCallback);
+ void startFinding(const QString &findText, bool caseSensitively, bool findBackward, const std::function<void(bool)> &resultCallback);
void startFinding(const QString &findText, bool caseSensitively, bool findBackward, const QJSValue &resultCallback);
void startFinding(const QString &findText, bool caseSensitively, bool findBackward);
void stopFinding();
@@ -93,7 +93,7 @@ private:
QString m_previousFindText;
QMap<int, QJSValue> m_quickCallbacks;
- CallbackDirectory m_widgetCallbacks;
+ QMap<int, std::function<void(bool)>> m_widgetCallbacks;
};
} // namespace QtWebEngineCore