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.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/noncore/unsupported/mailit/viewatt.cpp b/noncore/unsupported/mailit/viewatt.cpp
index b6f5015..21885c2 100644
--- a/noncore/unsupported/mailit/viewatt.cpp
+++ b/noncore/unsupported/mailit/viewatt.cpp
@@ -16,30 +16,33 @@
16** Contact info@trolltech.com if any conditions of this licensing are 16** Contact info@trolltech.com if any conditions of this licensing are
17** not clear to you. 17** not clear to you.
18** 18**
19**********************************************************************/ 19**********************************************************************/
20#include "resource.h" 20#include "resource.h"
21#include "viewatt.h" 21#include "viewatt.h"
22#include <qwhatsthis.h>
22#include <qpe/applnk.h> 23#include <qpe/applnk.h>
23#include <qpe/mimetype.h> 24#include <qpe/mimetype.h>
24 25
25ViewAtt::ViewAtt(QWidget *parent, const char *name, WFlags f) 26ViewAtt::ViewAtt(QWidget *parent, const char *name, WFlags f)
26 : QMainWindow(parent, name, f) 27 : QMainWindow(parent, name, f)
27{ 28{
28 setCaption("Exploring attatchments"); 29 setCaption("Exploring attatchments");
29 30
30 setToolBarsMovable( FALSE ); 31 setToolBarsMovable( FALSE );
31 bar = new QToolBar(this); 32 bar = new QToolBar(this);
32 installButton = new QAction( tr( "Install" ), Resource::loadPixmap( "exec" ), QString::null, CTRL + Key_C, this, 0 ); 33 installButton = new QAction( tr( "Install" ), Resource::loadPixmap( "exec" ), QString::null, CTRL + Key_C, this, 0 );
33 connect(installButton, SIGNAL(activated()), this, SLOT(install()) ); 34 connect(installButton, SIGNAL(activated()), this, SLOT(install()) );
35 installButton->setWhatsThis(tr("Click here to install the attachment to your Documents"));
34 36
35 listView = new QListView(this, "AttView"); 37 listView = new QListView(this, "AttView");
36 listView->addColumn( "Attatchment" ); 38 listView->addColumn( "Attatchment" );
37 listView->addColumn( "Type" ); 39 listView->addColumn( "Type" );
38 listView->addColumn( "Installed" ); 40 listView->addColumn( "Installed" );
39 setCentralWidget(listView); 41 setCentralWidget(listView);
42 QWhatsThis::add(listView,QWidget::tr("This is an overview about all attachments in the mail"));
40} 43}
41 44
42void ViewAtt::update(Email *mailIn, bool inbox) 45void ViewAtt::update(Email *mailIn, bool inbox)
43{ 46{
44 QListViewItem *item; 47 QListViewItem *item;
45 Enclosure *ePtr; 48 Enclosure *ePtr;