summaryrefslogtreecommitdiff
path: root/core/pim/osearch/datebooksearch.cpp
authortille <tille>2003-05-10 12:37:35 (UTC)
committer tille <tille>2003-05-10 12:37:35 (UTC)
commit882b5190d02c33aa8c893e8aa54bf3d38ac255c8 (patch) (unidiff)
treec79bf2a664d780013b685dd9617829cecdea3561 /core/pim/osearch/datebooksearch.cpp
parent65efa1e8a846f92580155d6ce7e28fe9b7ae19d2 (diff)
downloadopie-882b5190d02c33aa8c893e8aa54bf3d38ac255c8.zip
opie-882b5190d02c33aa8c893e8aa54bf3d38ac255c8.tar.gz
opie-882b5190d02c33aa8c893e8aa54bf3d38ac255c8.tar.bz2
clean up
Diffstat (limited to 'core/pim/osearch/datebooksearch.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/osearch/datebooksearch.cpp17
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()
37 _dates = new ODateBookAccess(); 37 _dates = new ODateBookAccess();
38 _dates->load(); 38 _dates->load();
39 } 39 }
40#ifdef LIPBOPIE_SEARCH
41 ORecordList<OEvent> results = _dates->matchRegexp(_search); 40 ORecordList<OEvent> results = _dates->matchRegexp(_search);
42 setText(0, text(0) + " (" + QString::number( results.count() ) + ")" ); 41 setText(0, text(0) + " (" + QString::number( results.count() ) + ")" );
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
47 ORecordList<OEvent> list = _dates->allRecords();
48 QArray<int> m_currentQuery( list.count() );
49 for( uint i=0; i<list.count(); i++ ){
50 //qDebug("datebook: %s",list[i].description().latin1() );
51 if (
52 ( list[i].description().contains( _search ) ) ||
53 ( list[i].note().contains( _search ) ) ||
54 ( list[i].location().contains( _search ) )
55 ){
56 //qDebug("FOUND");
57 new EventItem( this, new OEvent( list[i] ) );
58 }
59
60 }
61#endif
62} 45}
63 46