improve find, remove QWebPage::HighlightAllOccurrences; refs #23

master
Marc Wäckerlin 14 years ago
parent 0d8f6b88f7
commit 440c1c30dd
  1. 6
      swisssurfer/src/browser.hxx

@ -388,15 +388,13 @@ class Browser: public QMainWindow, protected Ui::Browser {
void find(const QString& txt=QString()) {
qobject_cast<QWebView*>(_tabs->currentWidget())->findText
(_find->text(),
QWebPage::HighlightAllOccurrences
|QWebPage::FindWrapsAroundDocument);
QWebPage::FindWrapsAroundDocument);
}
void rfind(const QString& txt=QString()) {
qobject_cast<QWebView*>(_tabs->currentWidget())->findText
(_find->text(),
QWebPage::HighlightAllOccurrences
|QWebPage::FindWrapsAroundDocument
QWebPage::FindWrapsAroundDocument
|QWebPage::FindBackward);
}

Loading…
Cancel
Save