From 440c1c30ddb7c8072fe9f1049e30a0cbbfa38edb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20W=C3=A4ckerlin?= Date: Mon, 31 Jan 2011 08:50:21 +0000 Subject: [PATCH] improve find, remove QWebPage::HighlightAllOccurrences; refs #23 --- swisssurfer/src/browser.hxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/swisssurfer/src/browser.hxx b/swisssurfer/src/browser.hxx index 3186216..70d37b3 100644 --- a/swisssurfer/src/browser.hxx +++ b/swisssurfer/src/browser.hxx @@ -388,15 +388,13 @@ class Browser: public QMainWindow, protected Ui::Browser { void find(const QString& txt=QString()) { qobject_cast(_tabs->currentWidget())->findText (_find->text(), - QWebPage::HighlightAllOccurrences - |QWebPage::FindWrapsAroundDocument); + QWebPage::FindWrapsAroundDocument); } void rfind(const QString& txt=QString()) { qobject_cast(_tabs->currentWidget())->findText (_find->text(), - QWebPage::HighlightAllOccurrences - |QWebPage::FindWrapsAroundDocument + QWebPage::FindWrapsAroundDocument |QWebPage::FindBackward); }