Diffstat (limited to 'noncore/net/mail/mailistviewitem.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mail/mailistviewitem.cpp | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/noncore/net/mail/mailistviewitem.cpp b/noncore/net/mail/mailistviewitem.cpp index d3a0723..5254616 100644 --- a/noncore/net/mail/mailistviewitem.cpp +++ b/noncore/net/mail/mailistviewitem.cpp | |||
@@ -1,9 +1,13 @@ | |||
1 | #include "mailistviewitem.h" | 1 | #include "mailistviewitem.h" |
2 | #include <libmailwrapper/abstractmail.h> | 2 | #include <libmailwrapper/abstractmail.h> |
3 | #include <qtextstream.h> | 3 | |
4 | #include <qpe/resource.h> | 4 | /* OPIE */ |
5 | #include <opie2/oresource.h> | ||
5 | #include <qpe/timestring.h> | 6 | #include <qpe/timestring.h> |
6 | 7 | ||
8 | /* QT */ | ||
9 | #include <qtextstream.h> | ||
10 | |||
7 | MailListViewItem::MailListViewItem(QListView * parent, MailListViewItem * item ) | 11 | MailListViewItem::MailListViewItem(QListView * parent, MailListViewItem * item ) |
8 | :QListViewItem(parent,item),mail_data() | 12 | :QListViewItem(parent,item),mail_data() |
9 | { | 13 | { |
@@ -12,13 +16,13 @@ MailListViewItem::MailListViewItem(QListView * parent, MailListViewItem * item ) | |||
12 | void MailListViewItem::showEntry() | 16 | void MailListViewItem::showEntry() |
13 | { | 17 | { |
14 | if ( mail_data->getFlags().testBit( FLAG_ANSWERED ) == true) { | 18 | if ( mail_data->getFlags().testBit( FLAG_ANSWERED ) == true) { |
15 | setPixmap( 0, Resource::loadPixmap( "mail/kmmsgreplied") ); | 19 | setPixmap( 0, Opie::Core::OResource::loadPixmap( "mail/kmmsgreplied", Opie::Core::OResource::SmallIcon ) ); |
16 | } else if ( mail_data->getFlags().testBit( FLAG_SEEN ) == true ) { | 20 | } else if ( mail_data->getFlags().testBit( FLAG_SEEN ) == true ) { |
17 | /* I think it looks nicer if there are not such a lot of icons but only on mails | 21 | /* I think it looks nicer if there are not such a lot of icons but only on mails |
18 | replied or new - Alwin*/ | 22 | replied or new - Alwin*/ |
19 | //setPixmap( 0, Resource::loadPixmap( "mail/kmmsgunseen") ); | 23 | //setPixmap( 0, Opie::Core::OResource::loadPixmap( "mail/kmmsgunseen", Opie::Core::OResource::SmallIcon ) ); |
20 | } else { | 24 | } else { |
21 | setPixmap( 0, Resource::loadPixmap( "mail/kmmsgnew") ); | 25 | setPixmap( 0, Opie::Core::OResource::loadPixmap( "mail/kmmsgnew", Opie::Core::OResource::SmallIcon ) ); |
22 | } | 26 | } |
23 | double s = mail_data->Msgsize(); | 27 | double s = mail_data->Msgsize(); |
24 | int w; | 28 | int w; |