forked from qt-creator/qt-creator
Fix master build
Amend a78720060e
Change-Id: I179fac4a604a6e582fd289ac972068b74ef4288f
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
@@ -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)
|
bool fromSearch, bool *wrapped)
|
||||||
{
|
{
|
||||||
Q_UNUSED(incremental)
|
Q_UNUSED(incremental)
|
||||||
@@ -227,9 +227,9 @@ bool WebEngineHelpViewer::findText(const QString &text, Core::FindFlags flags, b
|
|||||||
if (wrapped)
|
if (wrapped)
|
||||||
*wrapped = false; // missing feature in QWebEngine
|
*wrapped = false; // missing feature in QWebEngine
|
||||||
QWebEnginePage::FindFlags webEngineFlags;
|
QWebEnginePage::FindFlags webEngineFlags;
|
||||||
if (flags & Core::FindBackward)
|
if (flags & Utils::FindBackward)
|
||||||
webEngineFlags |= QWebEnginePage::FindBackward;
|
webEngineFlags |= QWebEnginePage::FindBackward;
|
||||||
if (flags & Core::FindCaseSensitively)
|
if (flags & Utils::FindCaseSensitively)
|
||||||
webEngineFlags |= QWebEnginePage::FindCaseSensitively;
|
webEngineFlags |= QWebEnginePage::FindCaseSensitively;
|
||||||
// QWebEngineView's findText is asynchronous, and the variant taking a callback runs the
|
// QWebEngineView's findText is asynchronous, and the variant taking a callback runs the
|
||||||
// callback on the main thread, so blocking here becomes ugly too
|
// callback on the main thread, so blocking here becomes ugly too
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ public:
|
|||||||
bool isBackwardAvailable() const override;
|
bool isBackwardAvailable() const override;
|
||||||
void addBackHistoryItems(QMenu *backMenu) override;
|
void addBackHistoryItems(QMenu *backMenu) override;
|
||||||
void addForwardHistoryItems(QMenu *forwardMenu) 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;
|
WebEngineHelpPage *page() const;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user