Diffstat (limited to 'core/pim/osearch/contactitem.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/osearch/contactitem.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/core/pim/osearch/contactitem.cpp b/core/pim/osearch/contactitem.cpp index c4738ae..eedc374 100644 --- a/core/pim/osearch/contactitem.cpp +++ b/core/pim/osearch/contactitem.cpp | |||
@@ -3,30 +3,31 @@ | |||
3 | // C++ Implementation: $MODULE$ | 3 | // C++ Implementation: $MODULE$ |
4 | // | 4 | // |
5 | // Description: | 5 | // Description: |
6 | // | 6 | // |
7 | // | 7 | // |
8 | // Author: Patrick S. Vogt <tille@handhelds.org>, (C) 2003 | 8 | // Author: Patrick S. Vogt <tille@handhelds.org>, (C) 2003 |
9 | // | 9 | // |
10 | // Copyright: See COPYING file that comes with this distribution | 10 | // Copyright: See COPYING file that comes with this distribution |
11 | // | 11 | // |
12 | // | 12 | // |
13 | #include "contactitem.h" | 13 | #include "contactitem.h" |
14 | 14 | ||
15 | #include <qpixmap.h> | ||
16 | #include <opie/ocontact.h> | ||
17 | #include <qpe/resource.h> | 15 | #include <qpe/resource.h> |
18 | #include <qpe/qcopenvelope_qws.h> | 16 | #include <qpe/qcopenvelope_qws.h> |
19 | 17 | ||
20 | ContactItem::ContactItem(OListViewItem* parent, OContact *contact) | 18 | #include <qpixmap.h> |
19 | |||
20 | |||
21 | ContactItem::ContactItem(OListViewItem* parent, OPimContact *contact) | ||
21 | : ResultItem(parent) | 22 | : ResultItem(parent) |
22 | { | 23 | { |
23 | _contact = contact; | 24 | _contact = contact; |
24 | setText(0, _contact->toShortText()); | 25 | setText(0, _contact->toShortText()); |
25 | setIcon(); | 26 | setIcon(); |
26 | } | 27 | } |
27 | 28 | ||
28 | void ContactItem::setIcon() | 29 | void ContactItem::setIcon() |
29 | { | 30 | { |
30 | QPixmap icon; | 31 | QPixmap icon; |
31 | switch ( _contact->lastHitField() ) { | 32 | switch ( _contact->lastHitField() ) { |
32 | case -1: | 33 | case -1: |