author | tille <tille> | 2003-05-10 12:37:35 (UTC) |
---|---|---|
committer | tille <tille> | 2003-05-10 12:37:35 (UTC) |
commit | 882b5190d02c33aa8c893e8aa54bf3d38ac255c8 (patch) (unidiff) | |
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 @@ | |||
14 | 14 | ||
15 | #include <opie/otodoaccess.h> | 15 | #include <opie/otodoaccess.h> |
16 | #include <opie/otodo.h> | 16 | #include <opie/otodo.h> |
17 | #include <qdir.h> | ||
18 | 17 | ||
19 | #include "todoitem.h" | 18 | #include "todoitem.h" |
20 | 19 | ||
21 | TodoSearch::TodoSearch(QListView* parent, QString name) | 20 | TodoSearch::TodoSearch(QListView* parent, QString name) |
22 | : SearchGroup(parent, name) | 21 | : SearchGroup(parent, name) |
23 | { | 22 | { |
24 | //_fileName = QDir::homeDirPath()+"/Applications/todolist/todolist.xml"; | ||
25 | _todos = 0; | 23 | _todos = 0; |
26 | } | 24 | } |
27 | 25 | ||
@@ -42,24 +40,11 @@ void TodoSearch::expand() | |||
42 | _todos->load(); | 40 | _todos->load(); |
43 | } | 41 | } |
44 | 42 | ||
45 | #ifdef LIPBOPIE_SEARCH | ||
46 | ORecordList<OTodo> results = _todos->matchRegexp(_search); | 43 | ORecordList<OTodo> results = _todos->matchRegexp(_search); |
47 | setText(0, text(0) + " (" + QString::number( results.count() ) + ")"); | 44 | setText(0, text(0) + " (" + QString::number( results.count() ) + ")"); |
48 | for (uint i = 0; i < results.count(); i++) { | 45 | for (uint i = 0; i < results.count(); i++) { |
49 | new TodoItem( this, new OTodo( results[i] )); | 46 | new TodoItem( this, new OTodo( results[i] )); |
50 | } | 47 | } |
51 | #else | ||
52 | ORecordList<OTodo> list = _todos->allRecords(); | ||
53 | QArray<int> m_currentQuery( list.count() ); | ||
54 | for( uint i=0; i<list.count(); i++ ){ | ||
55 | // qDebug("todo: %s",list[i].summary().latin1() ); | ||
56 | if ( list[i].match( _search ) ){ | ||
57 | // qDebug("FOUND"); | ||
58 | new TodoItem( this, new OTodo( list[i] ) ); | ||
59 | } | ||
60 | |||
61 | } | ||
62 | #endif | ||
63 | 48 | ||
64 | } | 49 | } |
65 | 50 | ||