Diffstat (limited to 'core/pim/osearch/todosearch.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/osearch/todosearch.cpp | 6 |
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 | ||