Diffstat (limited to 'core/pim/osearch/adresssearch.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/osearch/adresssearch.cpp | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/core/pim/osearch/adresssearch.cpp b/core/pim/osearch/adresssearch.cpp index 0ee8eba..69ad9ef 100644 --- a/core/pim/osearch/adresssearch.cpp +++ b/core/pim/osearch/adresssearch.cpp @@ -31,15 +31,20 @@ AdressSearch::~AdressSearch() } +void AdressSearch::load() +{ + _contacts = new OContactAccess("osearch"); +} -void AdressSearch::expand() +int AdressSearch::search() { - SearchGroup::expand(); - if (_search.isEmpty()) return; - if (!_contacts) _contacts = new OContactAccess("osearch"); ORecordList<OContact> results = _contacts->matchRegexp(_search); - setText(0, text(0) + " (" + QString::number( results.count() ) + ")" ); for (uint i = 0; i < results.count(); i++) { new ContactItem( this, new OContact( results[i] )); } + return results.count(); } +void AdressSearch::insertItem( void* ) +{ + +} |