author | tille <tille> | 2003-05-17 10:38:52 (UTC) |
---|---|---|
committer | tille <tille> | 2003-05-17 10:38:52 (UTC) |
commit | cdf3ec6993eebb80c96258c1bb217594ea442544 (patch) (unidiff) | |
tree | e0323d8011928c11aecc747535fcf8ae521d70c3 /core/pim/osearch/eventitem.cpp | |
parent | f6c30fa4d0e97b0256a7b40554f70b5c08895d80 (diff) | |
download | opie-cdf3ec6993eebb80c96258c1bb217594ea442544.zip opie-cdf3ec6993eebb80c96258c1bb217594ea442544.tar.gz opie-cdf3ec6993eebb80c96258c1bb217594ea442544.tar.bz2 |
(layout) fixes from zecke (for 0.99)
and some minor things...
Diffstat (limited to 'core/pim/osearch/eventitem.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/osearch/eventitem.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/pim/osearch/eventitem.cpp b/core/pim/osearch/eventitem.cpp index 24ce8e8..3228093 100644 --- a/core/pim/osearch/eventitem.cpp +++ b/core/pim/osearch/eventitem.cpp | |||
@@ -7,24 +7,25 @@ | |||
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 <qdatetime.h> | 15 | #include <qdatetime.h> |
16 | #include <qpixmap.h> | 16 | #include <qpixmap.h> |
17 | #include <qpe/resource.h> | 17 | #include <qpe/resource.h> |
18 | #include <qpe/qcopenvelope_qws.h> | 18 | #include <qpe/qcopenvelope_qws.h> |
19 | //#include <qwhatsthis.h> | ||
19 | #include <opie/oevent.h> | 20 | #include <opie/oevent.h> |
20 | 21 | ||
21 | EventItem::EventItem(OListViewItem* parent, OEvent *event) | 22 | EventItem::EventItem(OListViewItem* parent, OEvent *event) |
22 | : ResultItem(parent) | 23 | : ResultItem(parent) |
23 | { | 24 | { |
24 | _event = event; | 25 | _event = event; |
25 | setText(0, _event->toShortText() ); | 26 | setText(0, _event->toShortText() ); |
26 | setIcon(); | 27 | setIcon(); |
27 | } | 28 | } |
28 | 29 | ||
29 | 30 | ||
30 | EventItem::~EventItem() | 31 | EventItem::~EventItem() |
@@ -53,24 +54,25 @@ QIntDict<QString> EventItem::actions() | |||
53 | QIntDict<QString> result; | 54 | QIntDict<QString> result; |
54 | result.insert( 0, new QString( QObject::tr("show") ) ); | 55 | result.insert( 0, new QString( QObject::tr("show") ) ); |
55 | result.insert( 1, new QString( QObject::tr("edit") ) ); | 56 | result.insert( 1, new QString( QObject::tr("edit") ) ); |
56 | return result; | 57 | return result; |
57 | } | 58 | } |
58 | 59 | ||
59 | void EventItem::setIcon() | 60 | void EventItem::setIcon() |
60 | { | 61 | { |
61 | QPixmap icon; | 62 | QPixmap icon; |
62 | switch ( _event->lastHitField() ) { | 63 | switch ( _event->lastHitField() ) { |
63 | case -1: | 64 | case -1: |
64 | icon = Resource::loadPixmap( "reset" ); | 65 | icon = Resource::loadPixmap( "reset" ); |
66 | // QWhatsThis::add( icon, QObject::tr("Enter your search terms here") ); | ||
65 | break; | 67 | break; |
66 | case Qtopia::DatebookDescription: | 68 | case Qtopia::DatebookDescription: |
67 | icon = Resource::loadPixmap( "osearch/summary" ); | 69 | icon = Resource::loadPixmap( "osearch/summary" ); |
68 | break; | 70 | break; |
69 | case Qtopia::Notes: | 71 | case Qtopia::Notes: |
70 | icon = Resource::loadPixmap( "txt" ); | 72 | icon = Resource::loadPixmap( "txt" ); |
71 | break; | 73 | break; |
72 | case Qtopia::Location: | 74 | case Qtopia::Location: |
73 | icon = Resource::loadPixmap( "home" ); | 75 | icon = Resource::loadPixmap( "home" ); |
74 | break; | 76 | break; |
75 | case Qtopia::StartDateTime: | 77 | case Qtopia::StartDateTime: |
76 | case Qtopia::EndDateTime: | 78 | case Qtopia::EndDateTime: |