Diffstat (limited to 'core/pim/osearch/todosearch.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | core/pim/osearch/todosearch.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/core/pim/osearch/todosearch.cpp b/core/pim/osearch/todosearch.cpp index 6a73530..c9fa61a 100644 --- a/core/pim/osearch/todosearch.cpp +++ b/core/pim/osearch/todosearch.cpp @@ -1,47 +1,52 @@ // // // 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 <qiconset.h> +#include <qpe/resource.h> #include "todoitem.h" TodoSearch::TodoSearch(QListView* parent, QString name) : SearchGroup(parent, name) { _todos = 0; +// AppLnkSet als(QPEApplication::qpeDir()); +// setPixmap( 0, als.findExec("todolist")->pixmap() ); + QIconSet is = Resource::loadIconSet( "todo/TodoList" ); + setPixmap( 0, is.pixmap( QIconSet::Small, true ) ); } TodoSearch::~TodoSearch() { delete _todos; } void TodoSearch::load() { _todos = new OTodoAccess(); _todos->load(); } int TodoSearch::search() { ORecordList<OTodo> results = _todos->matchRegexp(_search); for (uint i = 0; i < results.count(); i++) new TodoItem( this, new OTodo( results[i] )); return results.count(); } void TodoSearch::insertItem( void* ) |