author | zautrix <zautrix> | 2004-10-23 19:32:41 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-10-23 19:32:41 (UTC) |
commit | 94df6192e59b7d4c69e2fb43ef2c39db08bb1c39 (patch) (unidiff) | |
tree | 28956adbf73a61010d98deb27d83b324cb285471 /kmicromail/viewmailbase.cpp | |
parent | 52b6fc17c0dcd1f13f701f698e0305440f26fc3e (diff) | |
download | kdepimpi-94df6192e59b7d4c69e2fb43ef2c39db08bb1c39.zip kdepimpi-94df6192e59b7d4c69e2fb43ef2c39db08bb1c39.tar.gz kdepimpi-94df6192e59b7d4c69e2fb43ef2c39db08bb1c39.tar.bz2 |
compile fixes
-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 | |||
@@ -6,12 +6,13 @@ | |||
6 | #include <qvbox.h> | 6 | #include <qvbox.h> |
7 | 7 | ||
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 | ||
16 | ViewMailBase::ViewMailBase(QWidget *parent, const char *name, WFlags fl) | 17 | ViewMailBase::ViewMailBase(QWidget *parent, const char *name, WFlags fl) |
17 | : QMainWindow(parent, name, fl) | 18 | : QMainWindow(parent, name, fl) |
@@ -19,39 +20,39 @@ ViewMailBase::ViewMailBase(QWidget *parent, const char *name, WFlags fl) | |||
19 | 20 | ||
20 | setToolBarsMovable(false); | 21 | setToolBarsMovable(false); |
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); |
56 | closeMail->addTo(mailmenu); | 57 | closeMail->addTo(mailmenu); |
57 | QVBox *view = new QVBox(this); | 58 | QVBox *view = new QVBox(this); |
@@ -59,15 +60,15 @@ ViewMailBase::ViewMailBase(QWidget *parent, const char *name, WFlags fl) | |||
59 | 60 | ||
60 | attachments = new QListView(view); | 61 | attachments = new QListView(view); |
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); |
72 | 73 | ||
73 | //openDiag = new OpenDiag(view); | 74 | //openDiag = new OpenDiag(view); |