summaryrefslogtreecommitdiff
path: root/core/pim/osearch/todosearch.cpp
authortille <tille>2003-05-08 13:22:51 (UTC)
committer tille <tille>2003-05-08 13:22:51 (UTC)
commit08f9d5965b127b0b889b96cf16b7d34b5a9a6928 (patch) (unidiff)
tree7d17bfff623ba6cfb105ae9144e51378a71de040 /core/pim/osearch/todosearch.cpp
parent763d7d7da84682fb87a631a997e93c08f5abde61 (diff)
downloadopie-08f9d5965b127b0b889b96cf16b7d34b5a9a6928.zip
opie-08f9d5965b127b0b889b96cf16b7d34b5a9a6928.tar.gz
opie-08f9d5965b127b0b889b96cf16b7d34b5a9a6928.tar.bz2
now it 'works' with the current libopie, again
Diffstat (limited to 'core/pim/osearch/todosearch.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/osearch/todosearch.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/core/pim/osearch/todosearch.cpp b/core/pim/osearch/todosearch.cpp
index 82fae8d..9a22ee1 100644
--- a/core/pim/osearch/todosearch.cpp
+++ b/core/pim/osearch/todosearch.cpp
@@ -42,11 +42,12 @@ void TodoSearch::expand()
42 _todos->load(); 42 _todos->load();
43 } 43 }
44 44
45#ifdef LIPBOPIE_SEARCH
45 ORecordList<OTodo> results = _todos->matchRegexp(_search); 46 ORecordList<OTodo> results = _todos->matchRegexp(_search);
46 for (uint i = 0; i < results.count(); i++) { 47 for (uint i = 0; i < results.count(); i++) {
47 new TodoItem( this, new OTodo( results[i] )); 48 new TodoItem( this, new OTodo( results[i] ));
48 } 49 }
49/* 50#else
50 ORecordList<OTodo> list = _todos->allRecords(); 51 ORecordList<OTodo> list = _todos->allRecords();
51 QArray<int> m_currentQuery( list.count() ); 52 QArray<int> m_currentQuery( list.count() );
52 for( uint i=0; i<list.count(); i++ ){ 53 for( uint i=0; i<list.count(); i++ ){
@@ -56,7 +57,8 @@ void TodoSearch::expand()
56 new TodoItem( this, new OTodo( list[i] ) ); 57 new TodoItem( this, new OTodo( list[i] ) );
57 } 58 }
58 59
59 }*/ 60 }
61#endif
60 62
61} 63}
62 64