Diffstat (limited to 'noncore/unsupported/mailit/viewatt.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/unsupported/mailit/viewatt.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/noncore/unsupported/mailit/viewatt.cpp b/noncore/unsupported/mailit/viewatt.cpp index 293e137..3515ba5 100644 --- a/noncore/unsupported/mailit/viewatt.cpp +++ b/noncore/unsupported/mailit/viewatt.cpp @@ -19,3 +19,3 @@ **********************************************************************/ -#include "resource.h" +#include <qpe/resource.h> #include "viewatt.h" @@ -35,3 +35,3 @@ ViewAtt::ViewAtt(QWidget *parent, const char *name, WFlags f) installButton->setWhatsThis(tr("Click here to install the attachment to your Documents")); - + listView = new QListView(this, "AttView"); @@ -48,5 +48,5 @@ void ViewAtt::update(Email *mailIn, bool inbox) Enclosure *ePtr; - - + + listView->clear(); @@ -59,6 +59,6 @@ void ViewAtt::update(Email *mailIn, bool inbox) } - + mail = mailIn; for ( ePtr=mail->files.first(); ePtr != 0; ePtr=mail->files.next() ) { - + QString isInstalled = tr("No"); @@ -67,7 +67,7 @@ void ViewAtt::update(Email *mailIn, bool inbox) item = new QListViewItem(listView, ePtr->originalName, ePtr->contentType, isInstalled); - + const QString& mtypeDef=(const QString&) ePtr->contentType+"/"+ePtr->contentAttribute; - + MimeType mt(mtypeDef); - + item->setPixmap(0, mt.pixmap()); @@ -98,3 +98,3 @@ void ViewAtt::install() DocLnk d; - + item = listView->selectedItem(); @@ -107,3 +107,3 @@ void ViewAtt::install() } - + if (selPtr == NULL) { @@ -112,3 +112,3 @@ void ViewAtt::install() } - + d.setName(selPtr->originalName); |