-rw-r--r-- | core/pim/osearch/adresssearch.cpp | 2 | ||||
-rw-r--r-- | core/pim/osearch/datebooksearch.cpp | 1 | ||||
-rw-r--r-- | core/pim/osearch/searchgroup.h | 3 | ||||
-rw-r--r-- | core/pim/osearch/todosearch.cpp | 1 |
4 files changed, 5 insertions, 2 deletions
diff --git a/core/pim/osearch/adresssearch.cpp b/core/pim/osearch/adresssearch.cpp index c5b1ae7..0ee8eba 100644 --- a/core/pim/osearch/adresssearch.cpp +++ b/core/pim/osearch/adresssearch.cpp | |||
@@ -12,8 +12,9 @@ | |||
12 | // | 12 | // |
13 | #include "adresssearch.h" | 13 | #include "adresssearch.h" |
14 | 14 | ||
15 | #include <opie/ocontactaccess.h> | 15 | #include <opie/ocontactaccess.h> |
16 | #include <qstring.h> | ||
16 | 17 | ||
17 | #include "contactitem.h" | 18 | #include "contactitem.h" |
18 | //#include <qdir.h> | 19 | //#include <qdir.h> |
19 | 20 | ||
@@ -35,8 +36,9 @@ void AdressSearch::expand() | |||
35 | SearchGroup::expand(); | 36 | SearchGroup::expand(); |
36 | if (_search.isEmpty()) return; | 37 | if (_search.isEmpty()) return; |
37 | if (!_contacts) _contacts = new OContactAccess("osearch"); | 38 | if (!_contacts) _contacts = new OContactAccess("osearch"); |
38 | ORecordList<OContact> results = _contacts->matchRegexp(_search); | 39 | ORecordList<OContact> results = _contacts->matchRegexp(_search); |
40 | setText(0, text(0) + " (" + QString::number( results.count() ) + ")" ); | ||
39 | for (uint i = 0; i < results.count(); i++) { | 41 | for (uint i = 0; i < results.count(); i++) { |
40 | new ContactItem( this, new OContact( results[i] )); | 42 | new ContactItem( this, new OContact( results[i] )); |
41 | } | 43 | } |
42 | } | 44 | } |
diff --git a/core/pim/osearch/datebooksearch.cpp b/core/pim/osearch/datebooksearch.cpp index 8f9d472..0590252 100644 --- a/core/pim/osearch/datebooksearch.cpp +++ b/core/pim/osearch/datebooksearch.cpp | |||
@@ -38,8 +38,9 @@ void DatebookSearch::expand() | |||
38 | _dates->load(); | 38 | _dates->load(); |
39 | } | 39 | } |
40 | #ifdef LIPBOPIE_SEARCH | 40 | #ifdef LIPBOPIE_SEARCH |
41 | ORecordList<OEvent> results = _dates->matchRegexp(_search); | 41 | ORecordList<OEvent> results = _dates->matchRegexp(_search); |
42 | setText(0, text(0) + " (" + QString::number( results.count() ) + ")" ); | ||
42 | for (uint i = 0; i < results.count(); i++) { | 43 | for (uint i = 0; i < results.count(); i++) { |
43 | new EventItem( this, new OEvent( results[i] )); | 44 | new EventItem( this, new OEvent( results[i] )); |
44 | } | 45 | } |
45 | #else | 46 | #else |
diff --git a/core/pim/osearch/searchgroup.h b/core/pim/osearch/searchgroup.h index 6b6bbf5..4195e6f 100644 --- a/core/pim/osearch/searchgroup.h +++ b/core/pim/osearch/searchgroup.h | |||
@@ -15,10 +15,9 @@ | |||
15 | 15 | ||
16 | #include "olistviewitem.h" | 16 | #include "olistviewitem.h" |
17 | 17 | ||
18 | #include <qregexp.h> | 18 | #include <qregexp.h> |
19 | 19 | #define LIPBOPIE_SEARCH | |
20 | //#define LIPBOPIE_SEARCH | ||
21 | 20 | ||
22 | /** | 21 | /** |
23 | @author Patrick S. Vogt | 22 | @author Patrick S. Vogt |
24 | */ | 23 | */ |
diff --git a/core/pim/osearch/todosearch.cpp b/core/pim/osearch/todosearch.cpp index 9a22ee1..fba8aa0 100644 --- a/core/pim/osearch/todosearch.cpp +++ b/core/pim/osearch/todosearch.cpp | |||
@@ -43,8 +43,9 @@ void TodoSearch::expand() | |||
43 | } | 43 | } |
44 | 44 | ||
45 | #ifdef LIPBOPIE_SEARCH | 45 | #ifdef LIPBOPIE_SEARCH |
46 | ORecordList<OTodo> results = _todos->matchRegexp(_search); | 46 | ORecordList<OTodo> results = _todos->matchRegexp(_search); |
47 | setText(0, text(0) + " (" + QString::number( results.count() ) + ")"); | ||
47 | for (uint i = 0; i < results.count(); i++) { | 48 | for (uint i = 0; i < results.count(); i++) { |
48 | new TodoItem( this, new OTodo( results[i] )); | 49 | new TodoItem( this, new OTodo( results[i] )); |
49 | } | 50 | } |
50 | #else | 51 | #else |