summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/osearch/datebooksearch.cpp3
-rw-r--r--core/pim/osearch/osearch.pro5
-rw-r--r--core/pim/osearch/searchgroup.h2
-rw-r--r--core/pim/osearch/todosearch.cpp6
4 files changed, 7 insertions, 9 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
@@ -37,9 +37,8 @@ void DatebookSearch::expand()
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 }
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,8 +1,3 @@
1# File generated by kdevelop's qmake manager.
2# -------------------------------------------
3# Subdir relative project main directory: .
4# Target is an application: osearch
5
6DEPENDPATH += $(OPIEDIR)/ioclude 1DEPENDPATH += $(OPIEDIR)/ioclude
7LIBS += -lqpe -lopie 2LIBS += -lqpe -lopie
8INTERFACES = 3INTERFACES =
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
@@ -17,6 +17,8 @@
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*/
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
@@ -42,11 +42,12 @@ void TodoSearch::expand()
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++ ){
@@ -56,7 +57,8 @@ void TodoSearch::expand()
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