diff --git a/src/plugins/help/webenginehelpviewer.cpp b/src/plugins/help/webenginehelpviewer.cpp index 15a9eb9fafb..ec8929bff77 100644 --- a/src/plugins/help/webenginehelpviewer.cpp +++ b/src/plugins/help/webenginehelpviewer.cpp @@ -219,7 +219,7 @@ void WebEngineHelpViewer::addForwardHistoryItems(QMenu *forwardMenu) } } -bool WebEngineHelpViewer::findText(const QString &text, Core::FindFlags flags, bool incremental, +bool WebEngineHelpViewer::findText(const QString &text, Utils::FindFlags flags, bool incremental, bool fromSearch, bool *wrapped) { Q_UNUSED(incremental) @@ -227,9 +227,9 @@ bool WebEngineHelpViewer::findText(const QString &text, Core::FindFlags flags, b if (wrapped) *wrapped = false; // missing feature in QWebEngine QWebEnginePage::FindFlags webEngineFlags; - if (flags & Core::FindBackward) + if (flags & Utils::FindBackward) webEngineFlags |= QWebEnginePage::FindBackward; - if (flags & Core::FindCaseSensitively) + if (flags & Utils::FindCaseSensitively) webEngineFlags |= QWebEnginePage::FindCaseSensitively; // QWebEngineView's findText is asynchronous, and the variant taking a callback runs the // callback on the main thread, so blocking here becomes ugly too diff --git a/src/plugins/help/webenginehelpviewer.h b/src/plugins/help/webenginehelpviewer.h index 0ecfc58a4d9..6f810f8769b 100644 --- a/src/plugins/help/webenginehelpviewer.h +++ b/src/plugins/help/webenginehelpviewer.h @@ -71,7 +71,7 @@ public: bool isBackwardAvailable() const override; void addBackHistoryItems(QMenu *backMenu) override; void addForwardHistoryItems(QMenu *forwardMenu) override; - bool findText(const QString &text, Core::FindFlags flags, bool incremental, bool fromSearch, bool *wrapped) override; + bool findText(const QString &text, Utils::FindFlags flags, bool incremental, bool fromSearch, bool *wrapped) override; WebEngineHelpPage *page() const;