45 QWebPage::FindFlags pageFlags;
49 pageFlags |= pageFlag;
62 if (PreviousFindText_ != text)
64 auto nflags = flags | QWebPage::HighlightAllOccurrences;
65 WebView_->page ()->findText (QString (), nflags);
66 WebView_->page ()->findText (text, nflags);
67 PreviousFindText_ = text;
70 const auto found = WebView_->page ()->findText (text, flags);
void handleNext(const QString &text, FindFlags flags)
Called each time the user requests a search.
std::shared_ptr< ICoreProxy > ICoreProxy_ptr
void SetSuccessful(bool successful)
Updates the widget to show whether the search has been successful.
FindNotificationWk(ICoreProxy_ptr proxy, QWebView *near)
Constructs the find notification using the given proxy and near widget.
A horizontal bar with typical widgets for text search.
static QWebPage::FindFlags ToPageFlags(FindFlags findFlags)
Converts the given findFlags to WebKit find flags.