summaryrefslogtreecommitdiff
path: root/noncore/apps/dagger/searchbar.cpp
authordrw <drw>2004-04-22 14:30:24 (UTC)
committer drw <drw>2004-04-22 14:30:24 (UTC)
commit00977d309bc991ffb4a84216881b53432c6d0b47 (patch) (side-by-side diff)
tree7888656814ad09fb8930c198caadc56561687918 /noncore/apps/dagger/searchbar.cpp
parent162c71d6528515ea4b28520e9708c8ce9ca7fba2 (diff)
downloadopie-00977d309bc991ffb4a84216881b53432c6d0b47.zip
opie-00977d309bc991ffb4a84216881b53432c6d0b47.tar.gz
opie-00977d309bc991ffb4a84216881b53432c6d0b47.tar.bz2
Fixed disabling of screen blanking, implemented prev/next page scrolling and fixed search OWait useage
Diffstat (limited to 'noncore/apps/dagger/searchbar.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/dagger/searchbar.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/noncore/apps/dagger/searchbar.cpp b/noncore/apps/dagger/searchbar.cpp
index 747d696..ff434dd 100644
--- a/noncore/apps/dagger/searchbar.cpp
+++ b/noncore/apps/dagger/searchbar.cpp
@@ -31,6 +31,11 @@ file; see the file COPYING. If not, write to the Free Software Foundation, Inc.,
#include <regex.h>
#include <versekey.h>
+void searchCallback( char /*percent*/, void */*userData*/ )
+{
+ qApp->processEvents();
+}
+
SearchBar::SearchBar( QMainWindow *parent )
: QToolBar( QString::null, parent, QMainWindow::Top, true )
, m_currText( 0x0 )
@@ -108,7 +113,8 @@ void SearchBar::slotFind()
// Perform search
// TODO - implement search callback function to animate wait cursor
- sword::ListKey results = m_currText->getModule()->Search( m_searchText->text().latin1(), REG_ICASE, 0 );
+ sword::ListKey results = m_currText->getModule()->Search( m_searchText->text().latin1(), 0, REG_ICASE, 0, 0,
+ &searchCallback );
// Process results
int count = results.Count();