Diffstat (limited to 'core/pim/osearch/adresssearch.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | core/pim/osearch/adresssearch.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/pim/osearch/adresssearch.cpp b/core/pim/osearch/adresssearch.cpp index c5b1ae7..0ee8eba 100644 --- a/core/pim/osearch/adresssearch.cpp +++ b/core/pim/osearch/adresssearch.cpp @@ -13,6 +13,7 @@ #include "adresssearch.h" #include <opie/ocontactaccess.h> +#include <qstring.h> #include "contactitem.h" //#include <qdir.h> @@ -36,6 +37,7 @@ void AdressSearch::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] )); } |