author | tille <tille> | 2003-05-08 13:22:51 (UTC) |
---|---|---|
committer | tille <tille> | 2003-05-08 13:22:51 (UTC) |
commit | 08f9d5965b127b0b889b96cf16b7d34b5a9a6928 (patch) (unidiff) | |
tree | 7d17bfff623ba6cfb105ae9144e51378a71de040 /core | |
parent | 763d7d7da84682fb87a631a997e93c08f5abde61 (diff) | |
download | opie-08f9d5965b127b0b889b96cf16b7d34b5a9a6928.zip opie-08f9d5965b127b0b889b96cf16b7d34b5a9a6928.tar.gz opie-08f9d5965b127b0b889b96cf16b7d34b5a9a6928.tar.bz2 |
now it 'works' with the current libopie, again
-rw-r--r-- | core/pim/osearch/datebooksearch.cpp | 1 | ||||
-rw-r--r-- | core/pim/osearch/osearch.pro | 5 | ||||
-rw-r--r-- | core/pim/osearch/searchgroup.h | 2 | ||||
-rw-r--r-- | core/pim/osearch/todosearch.cpp | 6 |
4 files changed, 6 insertions, 8 deletions
diff --git a/core/pim/osearch/datebooksearch.cpp b/core/pim/osearch/datebooksearch.cpp index e60a3b1..8f9d472 100644 --- a/core/pim/osearch/datebooksearch.cpp +++ b/core/pim/osearch/datebooksearch.cpp | |||
@@ -34,13 +34,12 @@ void DatebookSearch::expand() | |||
34 | { | 34 | { |
35 | SearchGroup::expand(); | 35 | SearchGroup::expand(); |
36 | if (!_dates){ | 36 | if (!_dates){ |
37 | _dates = new ODateBookAccess(); | 37 | _dates = new ODateBookAccess(); |
38 | _dates->load(); | 38 | _dates->load(); |
39 | } | 39 | } |
40 | #define LIPBOPIE_SEARCH | ||
41 | #ifdef LIPBOPIE_SEARCH | 40 | #ifdef LIPBOPIE_SEARCH |
42 | ORecordList<OEvent> results = _dates->matchRegexp(_search); | 41 | ORecordList<OEvent> results = _dates->matchRegexp(_search); |
43 | for (uint i = 0; i < results.count(); i++) { | 42 | for (uint i = 0; i < results.count(); i++) { |
44 | new EventItem( this, new OEvent( results[i] )); | 43 | new EventItem( this, new OEvent( results[i] )); |
45 | } | 44 | } |
46 | #else | 45 | #else |
diff --git a/core/pim/osearch/osearch.pro b/core/pim/osearch/osearch.pro index 996eb53..397bc83 100644 --- a/core/pim/osearch/osearch.pro +++ b/core/pim/osearch/osearch.pro | |||
@@ -1,11 +1,6 @@ | |||
1 | # File generated by kdevelop's qmake manager. | ||
2 | # ------------------------------------------- | ||
3 | # Subdir relative project main directory: . | ||
4 | # Target is an application: osearch | ||
5 | |||
6 | DEPENDPATH += $(OPIEDIR)/ioclude | 1 | DEPENDPATH += $(OPIEDIR)/ioclude |
7 | LIBS += -lqpe -lopie | 2 | LIBS += -lqpe -lopie |
8 | INTERFACES = | 3 | INTERFACES = |
9 | include ( $(OPIEDIR)/include.pro ) | 4 | include ( $(OPIEDIR)/include.pro ) |
10 | TEMPLATE = app | 5 | TEMPLATE = app |
11 | CONFIG += debug warn_on qt | 6 | CONFIG += debug warn_on qt |
diff --git a/core/pim/osearch/searchgroup.h b/core/pim/osearch/searchgroup.h index d26ff17..6b6bbf5 100644 --- a/core/pim/osearch/searchgroup.h +++ b/core/pim/osearch/searchgroup.h | |||
@@ -14,12 +14,14 @@ | |||
14 | #define SEARCHGROUP_H | 14 | #define SEARCHGROUP_H |
15 | 15 | ||
16 | #include "olistviewitem.h" | 16 | #include "olistviewitem.h" |
17 | 17 | ||
18 | #include <qregexp.h> | 18 | #include <qregexp.h> |
19 | 19 | ||
20 | //#define LIPBOPIE_SEARCH | ||
21 | |||
20 | /** | 22 | /** |
21 | @author Patrick S. Vogt | 23 | @author Patrick S. Vogt |
22 | */ | 24 | */ |
23 | class SearchGroup : public OListViewItem | 25 | class SearchGroup : public OListViewItem |
24 | { | 26 | { |
25 | public: | 27 | public: |
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 | |||
@@ -39,25 +39,27 @@ void TodoSearch::expand() | |||
39 | 39 | ||
40 | if (!_todos){ | 40 | if (!_todos){ |
41 | _todos = new OTodoAccess(); | 41 | _todos = new OTodoAccess(); |
42 | _todos->load(); | 42 | _todos->load(); |
43 | } | 43 | } |
44 | 44 | ||
45 | #ifdef LIPBOPIE_SEARCH | ||
45 | ORecordList<OTodo> results = _todos->matchRegexp(_search); | 46 | ORecordList<OTodo> results = _todos->matchRegexp(_search); |
46 | for (uint i = 0; i < results.count(); i++) { | 47 | for (uint i = 0; i < results.count(); i++) { |
47 | new TodoItem( this, new OTodo( results[i] )); | 48 | new TodoItem( this, new OTodo( results[i] )); |
48 | } | 49 | } |
49 | /* | 50 | #else |
50 | ORecordList<OTodo> list = _todos->allRecords(); | 51 | ORecordList<OTodo> list = _todos->allRecords(); |
51 | QArray<int> m_currentQuery( list.count() ); | 52 | QArray<int> m_currentQuery( list.count() ); |
52 | for( uint i=0; i<list.count(); i++ ){ | 53 | for( uint i=0; i<list.count(); i++ ){ |
53 | // qDebug("todo: %s",list[i].summary().latin1() ); | 54 | // qDebug("todo: %s",list[i].summary().latin1() ); |
54 | if ( list[i].match( _search ) ){ | 55 | if ( list[i].match( _search ) ){ |
55 | // qDebug("FOUND"); | 56 | // qDebug("FOUND"); |
56 | new TodoItem( this, new OTodo( list[i] ) ); | 57 | new TodoItem( this, new OTodo( list[i] ) ); |
57 | } | 58 | } |
58 | 59 | ||
59 | }*/ | 60 | } |
61 | #endif | ||
60 | 62 | ||
61 | } | 63 | } |
62 | 64 | ||
63 | 65 | ||