summaryrefslogtreecommitdiff
path: root/noncore/unsupported/mail2/composerbase.cpp
Unidiff
Diffstat (limited to 'noncore/unsupported/mail2/composerbase.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/unsupported/mail2/composerbase.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/noncore/unsupported/mail2/composerbase.cpp b/noncore/unsupported/mail2/composerbase.cpp
index 10d567d..6627701 100644
--- a/noncore/unsupported/mail2/composerbase.cpp
+++ b/noncore/unsupported/mail2/composerbase.cpp
@@ -5,48 +5,51 @@
5#include <qlayout.h> 5#include <qlayout.h>
6#include <qaction.h> 6#include <qaction.h>
7#include <qlabel.h> 7#include <qlabel.h>
8#include <qvbox.h> 8#include <qvbox.h>
9 9
10#include <qpe/qpetoolbar.h> 10#include <qpe/qpetoolbar.h>
11#include <qpe/resource.h> 11#include <qpe/resource.h>
12 12
13#include "listviewplus.h" 13#include "listviewplus.h"
14#include "composerbase.h" 14#include "composerbase.h"
15 15
16ComposerBase::ComposerBase(QWidget *parent, const char *name, WFlags fl) 16ComposerBase::ComposerBase(QWidget *parent, const char *name, WFlags fl)
17 : QMainWindow(parent, name, fl) 17 : QMainWindow(parent, name, fl)
18{ 18{
19 setCaption(tr("Compose Message")); 19 setCaption(tr("Compose Message"));
20 setToolBarsMovable(false); 20 setToolBarsMovable(false);
21 21
22 toolbar = new QPEToolBar(this); 22 toolbar = new QPEToolBar(this);
23 addToolBar(toolbar); 23 addToolBar(toolbar);
24 toolbar->setHorizontalStretchable(true); 24 toolbar->setHorizontalStretchable(true);
25 25
26 sendmail = new QAction(tr("Send the mail"), QIconSet(Resource::loadPixmap("mail/sendmail")), 0, 0, this); 26 sendmail = new QAction(tr("Send the mail"), QIconSet(Resource::loadPixmap("mail/sendmail")), 0, 0, this);
27 sendmail->addTo(toolbar); 27 sendmail->addTo(toolbar);
28 28
29 queuemail = new QAction(tr("Queue the mail"), QIconSet(Resource::loadPixmap("mail/sendall")), 0, 0, this);
30 queuemail->addTo(toolbar);
31
29 attachfile = new QAction(tr("Attach a file"), QIconSet(Resource::loadPixmap("mail/attach")), 0, 0, this, 0, true); 32 attachfile = new QAction(tr("Attach a file"), QIconSet(Resource::loadPixmap("mail/attach")), 0, 0, this, 0, true);
30 attachfile->addTo(toolbar); 33 attachfile->addTo(toolbar);
31 connect(attachfile, SIGNAL(toggled(bool)), SLOT(slotAttachfileChanged(bool))); 34 connect(attachfile, SIGNAL(toggled(bool)), SLOT(slotAttachfileChanged(bool)));
32 35
33 addressbook = new QAction(tr("Addressbook"), QIconSet(Resource::loadPixmap("mail/addbook")), 0, 0, this); 36 addressbook = new QAction(tr("Addressbook"), QIconSet(Resource::loadPixmap("mail/addbook")), 0, 0, this);
34 addressbook->addTo(toolbar); 37 addressbook->addTo(toolbar);
35 38
36 QLabel *spacer = new QLabel(toolbar); 39 QLabel *spacer = new QLabel(toolbar);
37 spacer->setBackgroundMode(QWidget::PaletteButton); 40 spacer->setBackgroundMode(QWidget::PaletteButton);
38 toolbar->setStretchableWidget(spacer); 41 toolbar->setStretchableWidget(spacer);
39 42
40 abort = new QAction(tr("Abort sending"), QIconSet(Resource::loadPixmap("mail/abort")), 0, 0, this); 43 abort = new QAction(tr("Abort sending"), QIconSet(Resource::loadPixmap("mail/abort")), 0, 0, this);
41 abort->addTo(toolbar); 44 abort->addTo(toolbar);
42 45
43 QWidget *main = new QWidget(this); 46 QWidget *main = new QWidget(this);
44 setCentralWidget(main); 47 setCentralWidget(main);
45 48
46 QGridLayout *layout = new QGridLayout(main); 49 QGridLayout *layout = new QGridLayout(main);
47 50
48 fromBox = new QComboBox(main); 51 fromBox = new QComboBox(main);
49 fromBox->insertItem(tr("From"), POPUP_FROM_FROM); 52 fromBox->insertItem(tr("From"), POPUP_FROM_FROM);
50 fromBox->insertItem(tr("Reply"), POPUP_FROM_REPLYTO); 53 fromBox->insertItem(tr("Reply"), POPUP_FROM_REPLYTO);
51 layout->addWidget(fromBox, 0, 0); 54 layout->addWidget(fromBox, 0, 0);
52 55