Diffstat (limited to 'core/pim/osearch/todosearch.cpp') (more/less context) (show 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 @@ -1,66 +1,51 @@ // // // C++ Implementation: $MODULE$ // // Description: // // // Author: Patrick S. Vogt <tille@handhelds.org>, (C) 2003 // // Copyright: See COPYING file that comes with this distribution // // #include "todosearch.h" #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; } TodoSearch::~TodoSearch() { delete _todos; } void TodoSearch::expand() { SearchGroup::expand(); if (_search.isEmpty()) return; if (!_todos){ _todos = new OTodoAccess(); _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 } |