summaryrefslogtreecommitdiff
path: root/core/pim/osearch/datebooksearch.cpp
Unidiff
Diffstat (limited to 'core/pim/osearch/datebooksearch.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/osearch/datebooksearch.cpp3
1 files changed, 1 insertions, 2 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
@@ -28,27 +28,26 @@ DatebookSearch::~DatebookSearch()
28{ 28{
29 delete _dates; 29 delete _dates;
30} 30}
31 31
32 32
33void DatebookSearch::expand() 33void 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
47 ORecordList<OEvent> list = _dates->allRecords(); 46 ORecordList<OEvent> list = _dates->allRecords();
48 QArray<int> m_currentQuery( list.count() ); 47 QArray<int> m_currentQuery( list.count() );
49 for( uint i=0; i<list.count(); i++ ){ 48 for( uint i=0; i<list.count(); i++ ){
50 //qDebug("datebook: %s",list[i].description().latin1() ); 49 //qDebug("datebook: %s",list[i].description().latin1() );
51 if ( 50 if (
52 ( list[i].description().contains( _search ) ) || 51 ( list[i].description().contains( _search ) ) ||
53 ( list[i].note().contains( _search ) ) || 52 ( list[i].note().contains( _search ) ) ||
54 ( list[i].location().contains( _search ) ) 53 ( list[i].location().contains( _search ) )