author | tille <tille> | 2003-05-08 13:22:51 (UTC) |
---|---|---|
committer | tille <tille> | 2003-05-08 13:22:51 (UTC) |
commit | 08f9d5965b127b0b889b96cf16b7d34b5a9a6928 (patch) (side-by-side diff) | |
tree | 7d17bfff623ba6cfb105ae9144e51378a71de040 | |
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 @@ -37,7 +37,6 @@ void DatebookSearch::expand() _dates = new ODateBookAccess(); _dates->load(); } -#define LIPBOPIE_SEARCH #ifdef LIPBOPIE_SEARCH ORecordList<OEvent> results = _dates->matchRegexp(_search); for (uint i = 0; i < results.count(); i++) { 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 @@ -# File generated by kdevelop's qmake manager. -# ------------------------------------------- -# Subdir relative project main directory: . -# Target is an application: osearch - DEPENDPATH += $(OPIEDIR)/ioclude LIBS += -lqpe -lopie INTERFACES = 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 @@ #include <qregexp.h> +//#define LIPBOPIE_SEARCH + /** @author Patrick S. Vogt */ 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() _todos->load(); } +#ifdef LIPBOPIE_SEARCH ORecordList<OTodo> results = _todos->matchRegexp(_search); for (uint i = 0; i < results.count(); i++) { new TodoItem( this, new OTodo( results[i] )); } -/* +#else ORecordList<OTodo> list = _todos->allRecords(); QArray<int> m_currentQuery( list.count() ); for( uint i=0; i<list.count(); i++ ){ @@ -56,7 +57,8 @@ void TodoSearch::expand() new TodoItem( this, new OTodo( list[i] ) ); } - }*/ + } +#endif } |