Diffstat (limited to 'core/pim/osearch/datebooksearch.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/osearch/datebooksearch.cpp | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/core/pim/osearch/datebooksearch.cpp b/core/pim/osearch/datebooksearch.cpp index 83b99f5..68699fa 100644 --- a/core/pim/osearch/datebooksearch.cpp +++ b/core/pim/osearch/datebooksearch.cpp @@ -32,15 +32,19 @@ DatebookSearch::~DatebookSearch() -void DatebookSearch::expand() +void DatebookSearch::load() { - SearchGroup::expand(); - if (!_dates){ _dates = new ODateBookAccess(); _dates->load(); - } +} + +int DatebookSearch::search() +{ ORecordList<OEvent> results = _dates->matchRegexp(_search); - setText(0, text(0) + " (" + QString::number( results.count() ) + ")" ); - for (uint i = 0; i < results.count(); i++) { + for (uint i = 0; i < results.count(); i++) new EventItem( this, new OEvent( results[i] )); - } + return results.count(); } +void DatebookSearch::insertItem( void* ) +{ + +} |