summaryrefslogtreecommitdiff
path: root/noncore/unsupported/mailit/viewatt.cpp
Unidiff
Diffstat (limited to 'noncore/unsupported/mailit/viewatt.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/unsupported/mailit/viewatt.cpp15
1 files changed, 12 insertions, 3 deletions
diff --git a/noncore/unsupported/mailit/viewatt.cpp b/noncore/unsupported/mailit/viewatt.cpp
index 86f119f..b6f5015 100644
--- a/noncore/unsupported/mailit/viewatt.cpp
+++ b/noncore/unsupported/mailit/viewatt.cpp
@@ -22,2 +22,3 @@
22#include <qpe/applnk.h> 22#include <qpe/applnk.h>
23#include <qpe/mimetype.h>
23 24
@@ -45,2 +46,4 @@ void ViewAtt::update(Email *mailIn, bool inbox)
45 46
47
48
46 listView->clear(); 49 listView->clear();
@@ -62,2 +65,9 @@ void ViewAtt::update(Email *mailIn, bool inbox)
62 65
66 const QString& mtypeDef=(const QString&) ePtr->contentType+"/"+ePtr->contentAttribute;
67
68 MimeType mt(mtypeDef);
69
70 item->setPixmap(0, mt.pixmap());
71
72 /*
63 if (ePtr->contentType == "TEXT") { 73 if (ePtr->contentType == "TEXT") {
@@ -65,4 +75,3 @@ void ViewAtt::update(Email *mailIn, bool inbox)
65 actions->addTo(bar); 75 actions->addTo(bar);
66 item->setPixmap(0, Resource::loadPixmap("txt")); 76 }
67 }
68 if (ePtr->contentType == "AUDIO") { 77 if (ePtr->contentType == "AUDIO") {
@@ -76,3 +85,3 @@ void ViewAtt::update(Email *mailIn, bool inbox)
76 item->setPixmap(0, Resource::loadPixmap("pixmap")); 85 item->setPixmap(0, Resource::loadPixmap("pixmap"));
77 } 86 }*/
78 } 87 }