-rw-r--r-- | core/pim/osearch/contactitem.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/pim/osearch/contactitem.cpp b/core/pim/osearch/contactitem.cpp index 554ab13..68e0cd4 100644 --- a/core/pim/osearch/contactitem.cpp +++ b/core/pim/osearch/contactitem.cpp | |||
@@ -25,97 +25,97 @@ ContactItem::ContactItem(OListViewItem* parent, OContact *contact) | |||
25 | setIcon(); | 25 | setIcon(); |
26 | } | 26 | } |
27 | 27 | ||
28 | void ContactItem::setIcon() | 28 | void ContactItem::setIcon() |
29 | { | 29 | { |
30 | QPixmap icon; | 30 | QPixmap icon; |
31 | switch ( _contact->lastHitField() ) { | 31 | switch ( _contact->lastHitField() ) { |
32 | case -1: | 32 | case -1: |
33 | icon = Resource::loadPixmap( "reset" ); | 33 | icon = Resource::loadPixmap( "reset" ); |
34 | break; | 34 | break; |
35 | case Qtopia::BusinessPhone: | 35 | case Qtopia::BusinessPhone: |
36 | icon = Resource::loadPixmap( "addressbook/phonework" ); | 36 | icon = Resource::loadPixmap( "addressbook/phonework" ); |
37 | break; | 37 | break; |
38 | case Qtopia::BusinessFax: | 38 | case Qtopia::BusinessFax: |
39 | icon = Resource::loadPixmap( "addressbook/faxwork" ); | 39 | icon = Resource::loadPixmap( "addressbook/faxwork" ); |
40 | break; | 40 | break; |
41 | case Qtopia::BusinessMobile: | 41 | case Qtopia::BusinessMobile: |
42 | icon = Resource::loadPixmap( "addressbook/mobilework" ); | 42 | icon = Resource::loadPixmap( "addressbook/mobilework" ); |
43 | break; | 43 | break; |
44 | case Qtopia::DefaultEmail: | 44 | case Qtopia::DefaultEmail: |
45 | icon = Resource::loadPixmap( "addressbook/email" ); | 45 | icon = Resource::loadPixmap( "addressbook/email" ); |
46 | break; | 46 | break; |
47 | case Qtopia::Emails: | 47 | case Qtopia::Emails: |
48 | icon = Resource::loadPixmap( "addressbook/email" ); | 48 | icon = Resource::loadPixmap( "addressbook/email" ); |
49 | break; | 49 | break; |
50 | case Qtopia::HomePhone: | 50 | case Qtopia::HomePhone: |
51 | icon = Resource::loadPixmap( "addressbook/phonehome" ); | 51 | icon = Resource::loadPixmap( "addressbook/phonehome" ); |
52 | break; | 52 | break; |
53 | case Qtopia::HomeFax: | 53 | case Qtopia::HomeFax: |
54 | icon = Resource::loadPixmap( "addressbook/faxhome" ); | 54 | icon = Resource::loadPixmap( "addressbook/faxhome" ); |
55 | break; | 55 | break; |
56 | case Qtopia::HomeMobile: | 56 | case Qtopia::HomeMobile: |
57 | icon = Resource::loadPixmap( "addressbook/mobilehome" ); | 57 | icon = Resource::loadPixmap( "addressbook/mobilehome" ); |
58 | break; | 58 | break; |
59 | case Qtopia::HomeWebPage: | 59 | case Qtopia::HomeWebPage: |
60 | icon = Resource::loadPixmap( "addressbook/webpagehome" ); | 60 | icon = Resource::loadPixmap( "addressbook/webpagehome" ); |
61 | break; | 61 | break; |
62 | case Qtopia::BusinessWebPage: | 62 | case Qtopia::BusinessWebPage: |
63 | icon = Resource::loadPixmap( "addressbook/webpagework" ); | 63 | icon = Resource::loadPixmap( "addressbook/webpagework" ); |
64 | break; | 64 | break; |
65 | case Qtopia::Title: | 65 | case Qtopia::Title: |
66 | case Qtopia::JobTitle: | 66 | case Qtopia::JobTitle: |
67 | case Qtopia::FirstName: | 67 | case Qtopia::FirstName: |
68 | case Qtopia::MiddleName: | 68 | case Qtopia::MiddleName: |
69 | case Qtopia::LastName: | 69 | case Qtopia::LastName: |
70 | case Qtopia::Suffix: | 70 | case Qtopia::Suffix: |
71 | case Qtopia::Nickname: | 71 | case Qtopia::Nickname: |
72 | case Qtopia::FileAs: | 72 | case Qtopia::FileAs: |
73 | icon = Resource::loadPixmap( "osearch/identity" ); | 73 | icon = Resource::loadPixmap( "addressbook/identity" ); |
74 | break; | 74 | break; |
75 | case Qtopia::HomeStreet: | 75 | case Qtopia::HomeStreet: |
76 | case Qtopia::HomeCity: | 76 | case Qtopia::HomeCity: |
77 | case Qtopia::HomeState: | 77 | case Qtopia::HomeState: |
78 | case Qtopia::HomeZip: | 78 | case Qtopia::HomeZip: |
79 | case Qtopia::HomeCountry: | 79 | case Qtopia::HomeCountry: |
80 | icon = Resource::loadPixmap( "osearch/addresshome" ); | 80 | icon = Resource::loadPixmap( "osearch/addresshome" ); |
81 | break; | 81 | break; |
82 | case Qtopia::Company: | 82 | case Qtopia::Company: |
83 | case Qtopia::BusinessCity: | 83 | case Qtopia::BusinessCity: |
84 | case Qtopia::BusinessStreet: | 84 | case Qtopia::BusinessStreet: |
85 | case Qtopia::BusinessZip: | 85 | case Qtopia::BusinessZip: |
86 | case Qtopia::BusinessCountry: | 86 | case Qtopia::BusinessCountry: |
87 | case Qtopia::Department: | 87 | case Qtopia::Department: |
88 | case Qtopia::Office: | 88 | case Qtopia::Office: |
89 | case Qtopia::Manager: | 89 | case Qtopia::Manager: |
90 | case Qtopia::BusinessPager: | 90 | case Qtopia::BusinessPager: |
91 | case Qtopia::Profession: | 91 | case Qtopia::Profession: |
92 | icon = Resource::loadPixmap( "osearch/addresshome" ); | 92 | icon = Resource::loadPixmap( "osearch/addresshome" ); |
93 | break; | 93 | break; |
94 | case Qtopia::Assistant: | 94 | case Qtopia::Assistant: |
95 | case Qtopia::Spouse: | 95 | case Qtopia::Spouse: |
96 | case Qtopia::Children: | 96 | case Qtopia::Children: |
97 | icon = Resource::loadPixmap( "osearch/personal" ); | 97 | icon = Resource::loadPixmap( "osearch/personal" ); |
98 | break; | 98 | break; |
99 | case Qtopia::Birthday: | 99 | case Qtopia::Birthday: |
100 | case Qtopia::Anniversary: | 100 | case Qtopia::Anniversary: |
101 | icon = Resource::loadPixmap( "osearch/clock" ); | 101 | icon = Resource::loadPixmap( "osearch/clock" ); |
102 | break; | 102 | break; |
103 | case Qtopia::Notes: | 103 | case Qtopia::Notes: |
104 | icon = Resource::loadPixmap( "txt" ); | 104 | icon = Resource::loadPixmap( "txt" ); |
105 | break; | 105 | break; |
106 | default: | 106 | default: |
107 | icon = Resource::loadPixmap( "DocsIcon" ); | 107 | icon = Resource::loadPixmap( "DocsIcon" ); |
108 | break; | 108 | break; |
109 | } | 109 | } |
110 | setPixmap( 0, icon ); | 110 | setPixmap( 0, icon ); |
111 | } | 111 | } |
112 | 112 | ||
113 | ContactItem::~ContactItem() | 113 | ContactItem::~ContactItem() |
114 | { | 114 | { |
115 | delete _contact; | 115 | delete _contact; |
116 | } | 116 | } |
117 | 117 | ||
118 | 118 | ||
119 | QString ContactItem::toRichText() | 119 | QString ContactItem::toRichText() |
120 | { | 120 | { |
121 | return _contact->toRichText(); | 121 | return _contact->toRichText(); |