Diffstat (limited to 'core/pim/osearch/eventitem.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/osearch/eventitem.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/core/pim/osearch/eventitem.cpp b/core/pim/osearch/eventitem.cpp index 7bcf340..36adc63 100644 --- a/core/pim/osearch/eventitem.cpp +++ b/core/pim/osearch/eventitem.cpp | |||
@@ -3,26 +3,26 @@ | |||
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 "eventitem.h" | 13 | #include "eventitem.h" |
14 | 14 | ||
15 | #include <opie2/oresource.h> | ||
15 | 16 | ||
16 | #include <qpe/resource.h> | ||
17 | #include <qpe/qcopenvelope_qws.h> | 17 | #include <qpe/qcopenvelope_qws.h> |
18 | 18 | ||
19 | 19 | ||
20 | using namespace Opie; | 20 | using namespace Opie; |
21 | EventItem::EventItem(OListViewItem* parent, OPimEvent *event) | 21 | EventItem::EventItem(OListViewItem* parent, OPimEvent *event) |
22 | : ResultItem(parent) | 22 | : ResultItem(parent) |
23 | { | 23 | { |
24 | _event = event; | 24 | _event = event; |
25 | setText(0, _event->toShortText() ); | 25 | setText(0, _event->toShortText() ); |
26 | setIcon(); | 26 | setIcon(); |
27 | } | 27 | } |
28 | 28 | ||
@@ -52,34 +52,34 @@ QIntDict<QString> EventItem::actions() | |||
52 | { | 52 | { |
53 | QIntDict<QString> result; | 53 | QIntDict<QString> result; |
54 | result.insert( 0, new QString( QObject::tr("show") ) ); | 54 | result.insert( 0, new QString( QObject::tr("show") ) ); |
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 = Opie::Core::OResource::loadPixmap( "reset", Opie::Core::OResource::SmallIcon ); |
65 | // QWhatsThis::add( icon, QObject::tr("Enter your search terms here") ); | 65 | // QWhatsThis::add( icon, QObject::tr("Enter your search terms here") ); |
66 | break; | 66 | break; |
67 | case Qtopia::DatebookDescription: | 67 | case Qtopia::DatebookDescription: |
68 | icon = Resource::loadPixmap( "osearch/summary" ); | 68 | icon = Opie::Core::OResource::loadPixmap( "osearch/summary", Opie::Core::OResource::SmallIcon ); |
69 | break; | 69 | break; |
70 | case Qtopia::Notes: | 70 | case Qtopia::Notes: |
71 | icon = Resource::loadPixmap( "txt" ); | 71 | icon = Opie::Core::OResource::loadPixmap( "txt", Opie::Core::OResource::SmallIcon ); |
72 | break; | 72 | break; |
73 | case Qtopia::Location: | 73 | case Qtopia::Location: |
74 | icon = Resource::loadPixmap( "home" ); | 74 | icon = Opie::Core::OResource::loadPixmap( "home", Opie::Core::OResource::SmallIcon ); |
75 | break; | 75 | break; |
76 | case Qtopia::StartDateTime: | 76 | case Qtopia::StartDateTime: |
77 | case Qtopia::EndDateTime: | 77 | case Qtopia::EndDateTime: |
78 | icon = Resource::loadPixmap( "osearch/clock" ); | 78 | icon = Opie::Core::OResource::loadPixmap( "osearch/clock", Opie::Core::OResource::SmallIcon ); |
79 | break; | 79 | break; |
80 | default: | 80 | default: |
81 | icon = Resource::loadPixmap( "DocsIcon" ); | 81 | icon = Opie::Core::OResource::loadPixmap( "DocsIcon", Opie::Core::OResource::SmallIcon ); |
82 | break; | 82 | break; |
83 | } | 83 | } |
84 | setPixmap( 0, icon ); | 84 | setPixmap( 0, icon ); |
85 | } | 85 | } |