Diffstat (limited to 'core/pim/osearch/adresssearch.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/osearch/adresssearch.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/core/pim/osearch/adresssearch.cpp b/core/pim/osearch/adresssearch.cpp index 4b0bd9c..c5b1ae7 100644 --- a/core/pim/osearch/adresssearch.cpp +++ b/core/pim/osearch/adresssearch.cpp | |||
@@ -16,32 +16,28 @@ | |||
16 | 16 | ||
17 | #include "contactitem.h" | 17 | #include "contactitem.h" |
18 | //#include <qdir.h> | 18 | //#include <qdir.h> |
19 | 19 | ||
20 | AdressSearch::AdressSearch(QListView* parent, QString name): | 20 | AdressSearch::AdressSearch(QListView* parent, QString name): |
21 | SearchGroup(parent, name) | 21 | SearchGroup(parent, name) |
22 | { | 22 | { |
23 | _contacts = 0; | 23 | _contacts = 0; |
24 | } | 24 | } |
25 | 25 | ||
26 | 26 | ||
27 | AdressSearch::~AdressSearch() | 27 | AdressSearch::~AdressSearch() |
28 | { | 28 | { |
29 | delete _contacts; | 29 | delete _contacts; |
30 | } | 30 | } |
31 | 31 | ||
32 | 32 | ||
33 | void AdressSearch::expand() | 33 | void AdressSearch::expand() |
34 | { | 34 | { |
35 | SearchGroup::expand(); | 35 | SearchGroup::expand(); |
36 | if (_search.isEmpty()) return; | 36 | if (_search.isEmpty()) return; |
37 | if (!_contacts) _contacts = new OContactAccess("osearch"); | 37 | if (!_contacts) _contacts = new OContactAccess("osearch"); |
38 | ORecordList<OContact> results = _contacts->matchRegexp(_search); | 38 | ORecordList<OContact> results = _contacts->matchRegexp(_search); |
39 | for (uint i = 0; i < results.count(); i++) { | 39 | for (uint i = 0; i < results.count(); i++) { |
40 | // qDebug("i=%i",i); | ||
41 | // OContact rec = results[i]; | ||
42 | // qDebug("fullname %s",rec.fullName().latin1()); | ||
43 | //(( new OListViewItem( this, rec.fullName() ); | ||
44 | new ContactItem( this, new OContact( results[i] )); | 40 | new ContactItem( this, new OContact( results[i] )); |
45 | } | 41 | } |
46 | } | 42 | } |
47 | 43 | ||