summaryrefslogtreecommitdiff
path: root/core/pim/osearch/todosearch.cpp
Side-by-side diff
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()
_todos->load();
}
+#ifdef LIPBOPIE_SEARCH
ORecordList<OTodo> results = _todos->matchRegexp(_search);
for (uint i = 0; i < results.count(); i++) {
new TodoItem( this, new OTodo( results[i] ));
}
-/*
+#else
ORecordList<OTodo> list = _todos->allRecords();
QArray<int> m_currentQuery( list.count() );
for( uint i=0; i<list.count(); i++ ){
@@ -56,7 +57,8 @@ void TodoSearch::expand()
new TodoItem( this, new OTodo( list[i] ) );
}
- }*/
+ }
+#endif
}