author | tille <tille> | 2003-05-10 12:37:35 (UTC) |
---|---|---|
committer | tille <tille> | 2003-05-10 12:37:35 (UTC) |
commit | 882b5190d02c33aa8c893e8aa54bf3d38ac255c8 (patch) (side-by-side diff) | |
tree | c79bf2a664d780013b685dd9617829cecdea3561 /core/pim/osearch/todosearch.cpp | |
parent | 65efa1e8a846f92580155d6ce7e28fe9b7ae19d2 (diff) | |
download | opie-882b5190d02c33aa8c893e8aa54bf3d38ac255c8.zip opie-882b5190d02c33aa8c893e8aa54bf3d38ac255c8.tar.gz opie-882b5190d02c33aa8c893e8aa54bf3d38ac255c8.tar.bz2 |
clean up
Diffstat (limited to 'core/pim/osearch/todosearch.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/osearch/todosearch.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/core/pim/osearch/todosearch.cpp b/core/pim/osearch/todosearch.cpp index fba8aa0..cbe356b 100644 --- a/core/pim/osearch/todosearch.cpp +++ b/core/pim/osearch/todosearch.cpp @@ -14,14 +14,12 @@ #include <opie/otodoaccess.h> #include <opie/otodo.h> -#include <qdir.h> #include "todoitem.h" TodoSearch::TodoSearch(QListView* parent, QString name) : SearchGroup(parent, name) { - //_fileName = QDir::homeDirPath()+"/Applications/todolist/todolist.xml"; _todos = 0; } @@ -42,24 +40,11 @@ void TodoSearch::expand() _todos->load(); } -#ifdef LIPBOPIE_SEARCH ORecordList<OTodo> results = _todos->matchRegexp(_search); setText(0, text(0) + " (" + QString::number( results.count() ) + ")"); 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++ ){ - // qDebug("todo: %s",list[i].summary().latin1() ); - if ( list[i].match( _search ) ){ - // qDebug("FOUND"); - new TodoItem( this, new OTodo( list[i] ) ); - } - - } -#endif } |