-rw-r--r-- | kmicromail/viewmailbase.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kmicromail/viewmailbase.cpp b/kmicromail/viewmailbase.cpp index 584a0ac..705b57f 100644 --- a/kmicromail/viewmailbase.cpp +++ b/kmicromail/viewmailbase.cpp | |||
@@ -1,48 +1,49 @@ | |||
1 | // CHANGED 2004-08-06 Lutz Rogowski | ||
1 | #include <qtextbrowser.h> | 2 | #include <qtextbrowser.h> |
2 | #include <qlistview.h> | 3 | #include <qlistview.h> |
3 | #include <qaction.h> | 4 | #include <qaction.h> |
4 | #include <qlabel.h> | 5 | #include <qlabel.h> |
5 | #include <qvbox.h> | 6 | #include <qvbox.h> |
6 | 7 | ||
7 | #include <qtoolbar.h> | 8 | #include <qtoolbar.h> |
8 | #include <qmenubar.h> | 9 | #include <qmenubar.h> |
9 | #include <kiconloader.h> | 10 | #include <kiconloader.h> |
10 | //#include <qpe/resource.h> | 11 | //#include <qpe/resource.h> |
11 | 12 | ||
12 | #include "viewmailbase.h" | 13 | #include "viewmailbase.h" |
13 | //#include "opendiag.h" | 14 | //#include "opendiag.h" |
14 | 15 | ||
15 | ViewMailBase::ViewMailBase(QWidget *parent, const char *name, WFlags fl) | 16 | ViewMailBase::ViewMailBase(QWidget *parent, const char *name, WFlags fl) |
16 | : QMainWindow(parent, name, fl) | 17 | : QMainWindow(parent, name, fl) |
17 | { | 18 | { |
18 | 19 | ||
19 | setToolBarsMovable(false); | 20 | setToolBarsMovable(false); |
20 | 21 | ||
21 | toolbar = new QToolBar(this); | 22 | toolbar = new QToolBar(this); |
22 | menubar = new QMenuBar( toolbar ); | 23 | menubar = new QMenuBar( toolbar ); |
23 | mailmenu = new QPopupMenu( menubar ); | 24 | mailmenu = new QPopupMenu( menubar ); |
24 | menubar->insertItem( tr( "Mail" ), mailmenu ); | 25 | menubar->insertItem( tr( "Mail" ), mailmenu ); |
25 | 26 | ||
26 | toolbar->setHorizontalStretchable(true); | 27 | toolbar->setHorizontalStretchable(true); |
27 | addToolBar(toolbar); | 28 | addToolBar(toolbar); |
28 | 29 | ||
29 | reply = new QAction(tr("Reply"),SmallIcon("reply"), 0, 0, this); | 30 | reply = new QAction(tr("Reply"),SmallIcon("reply"), 0, 0, this); |
30 | reply->addTo(toolbar); | 31 | reply->addTo(toolbar); |
31 | reply->addTo(mailmenu); | 32 | reply->addTo(mailmenu); |
32 | 33 | ||
33 | forward = new QAction(tr("Forward"),SmallIcon("forward"), 0, 0, this); | 34 | forward = new QAction(tr("Forward"),SmallIcon("forward"), 0, 0, this); |
34 | forward->addTo(toolbar); | 35 | forward->addTo(toolbar); |
35 | forward->addTo(mailmenu); | 36 | forward->addTo(mailmenu); |
36 | 37 | ||
37 | attachbutton = new QAction(tr("Attachments"),SmallIcon("attach"), 0, 0, this, 0, true); | 38 | attachbutton = new QAction(tr("Attachments"),SmallIcon("attach"), 0, 0, this, 0, true); |
38 | attachbutton->addTo(toolbar); | 39 | attachbutton->addTo(toolbar); |
39 | attachbutton->addTo(mailmenu); | 40 | attachbutton->addTo(mailmenu); |
40 | connect(attachbutton, SIGNAL(toggled(bool)), SLOT(slotChangeAttachview(bool))); | 41 | connect(attachbutton, SIGNAL(toggled(bool)), SLOT(slotChangeAttachview(bool))); |
41 | 42 | ||
42 | 43 | ||
43 | showHtml = new QAction( tr( "Show Html" ), SmallIcon( "html" ), 0, 0, this, 0, true ); | 44 | showHtml = new QAction( tr( "Show Html" ), SmallIcon( "html" ), 0, 0, this, 0, true ); |
44 | showHtml->addTo( toolbar ); | 45 | showHtml->addTo( toolbar ); |
45 | showHtml->addTo( mailmenu ); | 46 | showHtml->addTo( mailmenu ); |
46 | 47 | ||
47 | deleteMail = new QAction(tr("Delete Mail"),SmallIcon("trash"), 0, 0, this); | 48 | deleteMail = new QAction(tr("Delete Mail"),SmallIcon("trash"), 0, 0, this); |
48 | deleteMail->addTo(toolbar); | 49 | deleteMail->addTo(toolbar); |