Diffstat (limited to 'noncore/unsupported/mailit/emaillistitem.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/unsupported/mailit/emaillistitem.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/noncore/unsupported/mailit/emaillistitem.cpp b/noncore/unsupported/mailit/emaillistitem.cpp index a325766..b925a1c 100644 --- a/noncore/unsupported/mailit/emaillistitem.cpp +++ b/noncore/unsupported/mailit/emaillistitem.cpp | |||
@@ -29,29 +29,31 @@ EmailListItem::EmailListItem(QListView *parent, Email mailIn, bool inbox) | |||
29 | mail = mailIn; | 29 | mail = mailIn; |
30 | 30 | ||
31 | if (inbox) { | 31 | if (inbox) { |
32 | setText(0, mail.from); | 32 | setText(0, mail.from); |
33 | } else { | 33 | } else { |
34 | QStringList::Iterator it = mail.recipients.begin(); | 34 | QStringList::Iterator it = mail.recipients.begin(); |
35 | temp = *it; | 35 | temp = *it; |
36 | if (mail.recipients.count() > 1) | 36 | if (mail.recipients.count() > 1) |
37 | temp += "..."; | 37 | temp += "..."; |
38 | setText(0, temp); | 38 | setText(0, temp); |
39 | } | 39 | } |
40 | setText(1, mail.subject); | 40 | setText(1, mail.subject); |
41 | setText(2,mail.date); | ||
41 | 42 | ||
42 | if (mailIn.files.count()>0) | 43 | if (mailIn.files.count()>0) |
43 | { | 44 | { |
44 | setPixmap(0, Resource::loadPixmap("mailit/attach")); | 45 | setPixmap(0, Resource::loadPixmap("mailit/attach")); |
45 | } | 46 | } |
47 | |||
46 | selected = FALSE; | 48 | selected = FALSE; |
47 | } | 49 | } |
48 | 50 | ||
49 | Email* EmailListItem::getMail() | 51 | Email* EmailListItem::getMail() |
50 | { | 52 | { |
51 | return &mail; | 53 | return &mail; |
52 | } | 54 | } |
53 | 55 | ||
54 | void EmailListItem::setMail(Email newMail) | 56 | void EmailListItem::setMail(Email newMail) |
55 | { | 57 | { |
56 | mail = newMail; | 58 | mail = newMail; |
57 | repaint(); | 59 | repaint(); |