author | conber <conber> | 2002-06-15 16:05:38 (UTC) |
---|---|---|
committer | conber <conber> | 2002-06-15 16:05:38 (UTC) |
commit | f2f238ad06ce87e644bf56d0c6950a2aeae35ed4 (patch) (unidiff) | |
tree | 82a465db09f4fa05a7af710492fe6c953f4a8e0f /noncore/unsupported/mail2/viewmailbase.cpp | |
parent | 3e9adfcfcc674ad9b329fcb17880ea24789dbcde (diff) | |
download | opie-f2f238ad06ce87e644bf56d0c6950a2aeae35ed4.zip opie-f2f238ad06ce87e644bf56d0c6950a2aeae35ed4.tar.gz opie-f2f238ad06ce87e644bf56d0c6950a2aeae35ed4.tar.bz2 |
changed QToolBar to QPEToolBar
Diffstat (limited to 'noncore/unsupported/mail2/viewmailbase.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/unsupported/mail2/viewmailbase.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/noncore/unsupported/mail2/viewmailbase.cpp b/noncore/unsupported/mail2/viewmailbase.cpp index 134e5cb..b650c88 100644 --- a/noncore/unsupported/mail2/viewmailbase.cpp +++ b/noncore/unsupported/mail2/viewmailbase.cpp | |||
@@ -1,43 +1,43 @@ | |||
1 | #include <qtextbrowser.h> | 1 | #include <qtextbrowser.h> |
2 | #include <qlistview.h> | 2 | #include <qlistview.h> |
3 | #include <qtoolbar.h> | ||
4 | #include <qaction.h> | 3 | #include <qaction.h> |
5 | #include <qlabel.h> | 4 | #include <qlabel.h> |
6 | #include <qvbox.h> | 5 | #include <qvbox.h> |
7 | 6 | ||
7 | #include <qpe/qpetoolbar.h> | ||
8 | #include <qpe/resource.h> | 8 | #include <qpe/resource.h> |
9 | 9 | ||
10 | #include "viewmailbase.h" | 10 | #include "viewmailbase.h" |
11 | #include "opendiag.h" | 11 | #include "opendiag.h" |
12 | 12 | ||
13 | ViewMailBase::ViewMailBase(QWidget *parent, const char *name, WFlags fl) | 13 | ViewMailBase::ViewMailBase(QWidget *parent, const char *name, WFlags fl) |
14 | : QMainWindow(parent, name, fl) | 14 | : QMainWindow(parent, name, fl) |
15 | { | 15 | { |
16 | setCaption(tr("E-Mail by %1")); | 16 | setCaption(tr("E-Mail by %1")); |
17 | setToolBarsMovable(false); | 17 | setToolBarsMovable(false); |
18 | 18 | ||
19 | toolbar = new QToolBar(this); | 19 | toolbar = new QPEToolBar(this); |
20 | toolbar->setHorizontalStretchable(true); | 20 | toolbar->setHorizontalStretchable(true); |
21 | addToolBar(toolbar); | 21 | addToolBar(toolbar); |
22 | 22 | ||
23 | reply = new QAction(tr("Reply"), QIconSet(Resource::loadPixmap("mail/reply")), 0, 0, this); | 23 | reply = new QAction(tr("Reply"), QIconSet(Resource::loadPixmap("mail/reply")), 0, 0, this); |
24 | reply->addTo(toolbar); | 24 | reply->addTo(toolbar); |
25 | 25 | ||
26 | forward = new QAction(tr("Forward"), QIconSet(Resource::loadPixmap("mail/forward")), 0, 0, this); | 26 | forward = new QAction(tr("Forward"), QIconSet(Resource::loadPixmap("mail/forward")), 0, 0, this); |
27 | forward->addTo(toolbar); | 27 | forward->addTo(toolbar); |
28 | 28 | ||
29 | attachbutton = new QAction(tr("Attachments"), QIconSet(Resource::loadPixmap("mail/attach")), 0, 0, this, 0, true); | 29 | attachbutton = new QAction(tr("Attachments"), QIconSet(Resource::loadPixmap("mail/attach")), 0, 0, this, 0, true); |
30 | attachbutton->addTo(toolbar); | 30 | attachbutton->addTo(toolbar); |
31 | connect(attachbutton, SIGNAL(toggled(bool)), SLOT(slotChangeAttachview(bool))); | 31 | connect(attachbutton, SIGNAL(toggled(bool)), SLOT(slotChangeAttachview(bool))); |
32 | 32 | ||
33 | deleteMail = new QAction(tr("Delete Mail"), QIconSet(Resource::loadPixmap("mail/delete")), 0, 0, this); | 33 | deleteMail = new QAction(tr("Delete Mail"), QIconSet(Resource::loadPixmap("mail/delete")), 0, 0, this); |
34 | deleteMail->addTo(toolbar); | 34 | deleteMail->addTo(toolbar); |
35 | 35 | ||
36 | QLabel *spacer = new QLabel(toolbar); | 36 | QLabel *spacer = new QLabel(toolbar); |
37 | spacer->setBackgroundMode(QWidget::PaletteButton); | 37 | spacer->setBackgroundMode(QWidget::PaletteButton); |
38 | toolbar->setStretchableWidget(spacer); | 38 | toolbar->setStretchableWidget(spacer); |
39 | 39 | ||
40 | QVBox *view = new QVBox(this); | 40 | QVBox *view = new QVBox(this); |
41 | setCentralWidget(view); | 41 | setCentralWidget(view); |
42 | 42 | ||
43 | attachments = new QListView(view); | 43 | attachments = new QListView(view); |