Diffstat (limited to 'core/pim/osearch/datebooksearch.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/osearch/datebooksearch.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/core/pim/osearch/datebooksearch.cpp b/core/pim/osearch/datebooksearch.cpp index 0590252..83b99f5 100644 --- a/core/pim/osearch/datebooksearch.cpp +++ b/core/pim/osearch/datebooksearch.cpp @@ -37,27 +37,10 @@ void DatebookSearch::expand() _dates = new ODateBookAccess(); _dates->load(); } -#ifdef LIPBOPIE_SEARCH ORecordList<OEvent> results = _dates->matchRegexp(_search); setText(0, text(0) + " (" + QString::number( results.count() ) + ")" ); for (uint i = 0; i < results.count(); i++) { new EventItem( this, new OEvent( results[i] )); } -#else - ORecordList<OEvent> list = _dates->allRecords(); - QArray<int> m_currentQuery( list.count() ); - for( uint i=0; i<list.count(); i++ ){ - //qDebug("datebook: %s",list[i].description().latin1() ); - if ( - ( list[i].description().contains( _search ) ) || - ( list[i].note().contains( _search ) ) || - ( list[i].location().contains( _search ) ) - ){ - //qDebug("FOUND"); - new EventItem( this, new OEvent( list[i] ) ); - } - - } -#endif } |