summaryrefslogtreecommitdiff
path: root/src/core/api/qwebenginepage.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/api/qwebenginepage.h')
-rw-r--r--src/core/api/qwebenginepage.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/api/qwebenginepage.h b/src/core/api/qwebenginepage.h
index fb01c283d..78d759e1a 100644
--- a/src/core/api/qwebenginepage.h
+++ b/src/core/api/qwebenginepage.h
@@ -53,6 +53,8 @@
#include <QtGui/qaction.h>
#include <QtNetwork/qnetworkaccessmanager.h>
+#include <functional>
+
QT_BEGIN_NAMESPACE
class QMenu;
@@ -257,7 +259,7 @@ public:
bool event(QEvent*) override;
- void findText(const QString &subString, FindFlags options = FindFlags(), const QWebEngineCallback<bool> &resultCallback = QWebEngineCallback<bool>());
+ void findText(const QString &subString, FindFlags options = {}, const std::function<void(bool)> &resultCallback = std::function<void(bool)>());
void setFeaturePermission(const QUrl &securityOrigin, Feature feature, PermissionPolicy policy);