-rw-r--r-- | kmicromail/viewmailbase.cpp | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/kmicromail/viewmailbase.cpp b/kmicromail/viewmailbase.cpp index 705b57f..3d7ed42 100644 --- a/kmicromail/viewmailbase.cpp +++ b/kmicromail/viewmailbase.cpp | |||
@@ -8,8 +8,9 @@ | |||
8 | #include <qtoolbar.h> | 8 | #include <qtoolbar.h> |
9 | #include <qmenubar.h> | 9 | #include <qmenubar.h> |
10 | #include <kiconloader.h> | 10 | #include <kiconloader.h> |
11 | //#include <qpe/resource.h> | 11 | //#include <qpe/resource.h> |
12 | #include <klocale.h> | ||
12 | 13 | ||
13 | #include "viewmailbase.h" | 14 | #include "viewmailbase.h" |
14 | //#include "opendiag.h" | 15 | //#include "opendiag.h" |
15 | 16 | ||
@@ -21,35 +22,35 @@ ViewMailBase::ViewMailBase(QWidget *parent, const char *name, WFlags fl) | |||
21 | 22 | ||
22 | toolbar = new QToolBar(this); | 23 | toolbar = new QToolBar(this); |
23 | menubar = new QMenuBar( toolbar ); | 24 | menubar = new QMenuBar( toolbar ); |
24 | mailmenu = new QPopupMenu( menubar ); | 25 | mailmenu = new QPopupMenu( menubar ); |
25 | menubar->insertItem( tr( "Mail" ), mailmenu ); | 26 | menubar->insertItem( i18n( "Mail" ), mailmenu ); |
26 | 27 | ||
27 | toolbar->setHorizontalStretchable(true); | 28 | toolbar->setHorizontalStretchable(true); |
28 | addToolBar(toolbar); | 29 | addToolBar(toolbar); |
29 | 30 | ||
30 | reply = new QAction(tr("Reply"),SmallIcon("reply"), 0, 0, this); | 31 | reply = new QAction(i18n("Reply"),SmallIcon("reply"), 0, 0, this); |
31 | reply->addTo(toolbar); | 32 | reply->addTo(toolbar); |
32 | reply->addTo(mailmenu); | 33 | reply->addTo(mailmenu); |
33 | 34 | ||
34 | forward = new QAction(tr("Forward"),SmallIcon("forward"), 0, 0, this); | 35 | forward = new QAction(i18n("Forward"),SmallIcon("forward"), 0, 0, this); |
35 | forward->addTo(toolbar); | 36 | forward->addTo(toolbar); |
36 | forward->addTo(mailmenu); | 37 | forward->addTo(mailmenu); |
37 | 38 | ||
38 | attachbutton = new QAction(tr("Attachments"),SmallIcon("attach"), 0, 0, this, 0, true); | 39 | attachbutton = new QAction(i18n("Attachments"),SmallIcon("attach"), 0, 0, this, 0, true); |
39 | attachbutton->addTo(toolbar); | 40 | attachbutton->addTo(toolbar); |
40 | attachbutton->addTo(mailmenu); | 41 | attachbutton->addTo(mailmenu); |
41 | connect(attachbutton, SIGNAL(toggled(bool)), SLOT(slotChangeAttachview(bool))); | 42 | connect(attachbutton, SIGNAL(toggled(bool)), SLOT(slotChangeAttachview(bool))); |
42 | 43 | ||
43 | 44 | ||
44 | showHtml = new QAction( tr( "Show Html" ), SmallIcon( "html" ), 0, 0, this, 0, true ); | 45 | showHtml = new QAction( i18n( "Show Html" ), SmallIcon( "html" ), 0, 0, this, 0, true ); |
45 | showHtml->addTo( toolbar ); | 46 | showHtml->addTo( toolbar ); |
46 | showHtml->addTo( mailmenu ); | 47 | showHtml->addTo( mailmenu ); |
47 | 48 | ||
48 | deleteMail = new QAction(tr("Delete Mail"),SmallIcon("trash"), 0, 0, this); | 49 | deleteMail = new QAction(i18n("Delete Mail"),SmallIcon("trash"), 0, 0, this); |
49 | deleteMail->addTo(toolbar); | 50 | deleteMail->addTo(toolbar); |
50 | deleteMail->addTo(mailmenu); | 51 | deleteMail->addTo(mailmenu); |
51 | closeMail = new QAction(tr("Close"),SmallIcon("exit"), 0, 0, this); | 52 | closeMail = new QAction(i18n("Close"),SmallIcon("exit"), 0, 0, this); |
52 | QLabel *spacer = new QLabel(toolbar); | 53 | QLabel *spacer = new QLabel(toolbar); |
53 | spacer->setBackgroundMode(QWidget::PaletteButton); | 54 | spacer->setBackgroundMode(QWidget::PaletteButton); |
54 | toolbar->setStretchableWidget(spacer); | 55 | toolbar->setStretchableWidget(spacer); |
55 | closeMail->addTo(toolbar); | 56 | closeMail->addTo(toolbar); |
@@ -61,11 +62,11 @@ ViewMailBase::ViewMailBase(QWidget *parent, const char *name, WFlags fl) | |||
61 | attachments->setMinimumHeight(90); | 62 | attachments->setMinimumHeight(90); |
62 | attachments->setMaximumHeight(90); | 63 | attachments->setMaximumHeight(90); |
63 | attachments->setAllColumnsShowFocus(true); | 64 | attachments->setAllColumnsShowFocus(true); |
64 | attachments->addColumn("Mime Type", 60); | 65 | attachments->addColumn("Mime Type", 60); |
65 | attachments->addColumn(tr("Description"), 100); | 66 | attachments->addColumn(i18n("Description"), 100); |
66 | attachments->addColumn(tr("Filename"), 80); | 67 | attachments->addColumn(i18n("Filename"), 80); |
67 | attachments->addColumn(tr("Size"), 80); | 68 | attachments->addColumn(i18n("Size"), 80); |
68 | attachments->setSorting(-1); | 69 | attachments->setSorting(-1); |
69 | attachments->hide(); | 70 | attachments->hide(); |
70 | 71 | ||
71 | browser = new QTextBrowser(view); | 72 | browser = new QTextBrowser(view); |