author | tille <tille> | 2003-05-14 15:56:46 (UTC) |
---|---|---|
committer | tille <tille> | 2003-05-14 15:56:46 (UTC) |
commit | 4b5a71fb4bcfa9ff7defcd42f2779c3a6442db46 (patch) (unidiff) | |
tree | eb5b4f8893a8d4854a4a6a6f1843cb13d9bc267b | |
parent | 0042c63bd72905598928621e6e849cd6303ddf27 (diff) | |
download | opie-4b5a71fb4bcfa9ff7defcd42f2779c3a6442db46.zip opie-4b5a71fb4bcfa9ff7defcd42f2779c3a6442db46.tar.gz opie-4b5a71fb4bcfa9ff7defcd42f2779c3a6442db46.tar.bz2 |
icon improvements
-rw-r--r-- | core/pim/osearch/contactitem.cpp | 4 | ||||
-rw-r--r-- | core/pim/osearch/eventitem.cpp | 4 | ||||
-rw-r--r-- | core/pim/osearch/todoitem.cpp | 4 |
3 files changed, 8 insertions, 4 deletions
diff --git a/core/pim/osearch/contactitem.cpp b/core/pim/osearch/contactitem.cpp index 3928b1f..1d24b18 100644 --- a/core/pim/osearch/contactitem.cpp +++ b/core/pim/osearch/contactitem.cpp | |||
@@ -39,78 +39,78 @@ void ContactItem::setIcon() | |||
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 | qDebug("homephone"); | ||
52 | icon = Resource::loadPixmap( "addressbook/phonehome" ); | 51 | icon = Resource::loadPixmap( "addressbook/phonehome" ); |
53 | break; | 52 | break; |
54 | case Qtopia::HomeFax: | 53 | case Qtopia::HomeFax: |
55 | icon = Resource::loadPixmap( "addressbook/faxhome" ); | 54 | icon = Resource::loadPixmap( "addressbook/faxhome" ); |
56 | break; | 55 | break; |
57 | case Qtopia::HomeMobile: | 56 | case Qtopia::HomeMobile: |
58 | icon = Resource::loadPixmap( "addressbook/mobilehome" ); | 57 | icon = Resource::loadPixmap( "addressbook/mobilehome" ); |
59 | break; | 58 | break; |
60 | case Qtopia::HomeWebPage: | 59 | case Qtopia::HomeWebPage: |
61 | icon = Resource::loadPixmap( "addressbook/webpagehome" ); | 60 | icon = Resource::loadPixmap( "addressbook/webpagehome" ); |
62 | break; | 61 | break; |
63 | case Qtopia::BusinessWebPage: | 62 | case Qtopia::BusinessWebPage: |
64 | icon = Resource::loadPixmap( "addressbook/webpagework" ); | 63 | icon = Resource::loadPixmap( "addressbook/webpagework" ); |
65 | break; | 64 | break; |
66 | case Qtopia::Title: | 65 | case Qtopia::Title: |
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( "addressbook/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( "addressbook/addresshome" ); | 80 | icon = Resource::loadPixmap( "addressbook/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::JobTitle: | ||
88 | case Qtopia::Department: | 87 | case Qtopia::Department: |
89 | case Qtopia::Office: | 88 | case Qtopia::Office: |
90 | case Qtopia::Manager: | 89 | case Qtopia::Manager: |
91 | case Qtopia::BusinessPager: | 90 | case Qtopia::BusinessPager: |
92 | case Qtopia::Profession: | 91 | case Qtopia::Profession: |
93 | icon = Resource::loadPixmap( "addressbook/addresshome" ); | 92 | icon = Resource::loadPixmap( "addressbook/addresshome" ); |
94 | break; | 93 | break; |
95 | case Qtopia::Assistant: | 94 | case Qtopia::Assistant: |
96 | case Qtopia::Spouse: | 95 | case Qtopia::Spouse: |
97 | case Qtopia::Children: | 96 | case Qtopia::Children: |
98 | icon = Resource::loadPixmap( "osearch/personal" ); | 97 | icon = Resource::loadPixmap( "osearch/personal" ); |
99 | break; | 98 | break; |
100 | case Qtopia::Birthday: | 99 | case Qtopia::Birthday: |
101 | case Qtopia::Anniversary: | 100 | case Qtopia::Anniversary: |
102 | icon = Resource::loadPixmap( "osearch/clock" ); | 101 | icon = Resource::loadPixmap( "osearch/clock" ); |
103 | break; | 102 | break; |
104 | case Qtopia::Notes: | 103 | case Qtopia::Notes: |
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 | } |
diff --git a/core/pim/osearch/eventitem.cpp b/core/pim/osearch/eventitem.cpp index 5b7a840..24ce8e8 100644 --- a/core/pim/osearch/eventitem.cpp +++ b/core/pim/osearch/eventitem.cpp | |||
@@ -55,26 +55,28 @@ QIntDict<QString> EventItem::actions() | |||
55 | result.insert( 1, new QString( QObject::tr("edit") ) ); | 55 | result.insert( 1, new QString( QObject::tr("edit") ) ); |
56 | return result; | 56 | return result; |
57 | } | 57 | } |
58 | 58 | ||
59 | void EventItem::setIcon() | 59 | void EventItem::setIcon() |
60 | { | 60 | { |
61 | QPixmap icon; | 61 | QPixmap icon; |
62 | switch ( _event->lastHitField() ) { | 62 | switch ( _event->lastHitField() ) { |
63 | case -1: | 63 | case -1: |
64 | icon = Resource::loadPixmap( "reset" ); | 64 | icon = Resource::loadPixmap( "reset" ); |
65 | break; | 65 | break; |
66 | case Qtopia::DatebookDescription: | 66 | case Qtopia::DatebookDescription: |
67 | icon = Resource::loadPixmap( "osearch/summary" ); | ||
68 | break; | ||
67 | case Qtopia::Notes: | 69 | case Qtopia::Notes: |
68 | icon = Resource::loadPixmap( "osearch/personal" ); | 70 | icon = Resource::loadPixmap( "txt" ); |
69 | break; | 71 | break; |
70 | case Qtopia::Location: | 72 | case Qtopia::Location: |
71 | icon = Resource::loadPixmap( "home" ); | 73 | icon = Resource::loadPixmap( "home" ); |
72 | break; | 74 | break; |
73 | case Qtopia::StartDateTime: | 75 | case Qtopia::StartDateTime: |
74 | case Qtopia::EndDateTime: | 76 | case Qtopia::EndDateTime: |
75 | icon = Resource::loadPixmap( "osearch/clock" ); | 77 | icon = Resource::loadPixmap( "osearch/clock" ); |
76 | break; | 78 | break; |
77 | default: | 79 | default: |
78 | icon = Resource::loadPixmap( "DocsIcon" ); | 80 | icon = Resource::loadPixmap( "DocsIcon" ); |
79 | break; | 81 | break; |
80 | } | 82 | } |
diff --git a/core/pim/osearch/todoitem.cpp b/core/pim/osearch/todoitem.cpp index de4ea97..9808a04 100644 --- a/core/pim/osearch/todoitem.cpp +++ b/core/pim/osearch/todoitem.cpp | |||
@@ -53,26 +53,28 @@ QIntDict<QString> TodoItem::actions() | |||
53 | result.insert( 1, new QString( QObject::tr("edit") ) ); | 53 | result.insert( 1, new QString( QObject::tr("edit") ) ); |
54 | return result; | 54 | return result; |
55 | } | 55 | } |
56 | 56 | ||
57 | void TodoItem::setIcon() | 57 | void TodoItem::setIcon() |
58 | { | 58 | { |
59 | QPixmap icon; | 59 | QPixmap icon; |
60 | switch ( _todo->lastHitField() ) { | 60 | switch ( _todo->lastHitField() ) { |
61 | case -1: | 61 | case -1: |
62 | icon = Resource::loadPixmap( "reset" ); | 62 | icon = Resource::loadPixmap( "reset" ); |
63 | break; | 63 | break; |
64 | case OTodo::Description: | 64 | case OTodo::Description: |
65 | icon = Resource::loadPixmap( "txt" ); | ||
66 | break; | ||
65 | case OTodo::Summary: | 67 | case OTodo::Summary: |
66 | icon = Resource::loadPixmap( "osearch/personal" ); | 68 | icon = Resource::loadPixmap( "osearch/summary" ); |
67 | break; | 69 | break; |
68 | case OTodo::Priority: | 70 | case OTodo::Priority: |
69 | icon = Resource::loadPixmap( "todo/priority1" ); | 71 | icon = Resource::loadPixmap( "todo/priority1" ); |
70 | break; | 72 | break; |
71 | case OTodo::HasDate: | 73 | case OTodo::HasDate: |
72 | icon = Resource::loadPixmap( "osearch/clock" ); | 74 | icon = Resource::loadPixmap( "osearch/clock" ); |
73 | break; | 75 | break; |
74 | default: | 76 | default: |
75 | icon = Resource::loadPixmap( "DocsIcon" ); | 77 | icon = Resource::loadPixmap( "DocsIcon" ); |
76 | break; | 78 | break; |
77 | } | 79 | } |
78 | setPixmap( 0, icon ); | 80 | setPixmap( 0, icon ); |