Diffstat (limited to 'noncore/unsupported/mail2/mainwindowbase.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/unsupported/mail2/mainwindowbase.cpp | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/noncore/unsupported/mail2/mainwindowbase.cpp b/noncore/unsupported/mail2/mainwindowbase.cpp index d61899b..bffe8b3 100644 --- a/noncore/unsupported/mail2/mainwindowbase.cpp +++ b/noncore/unsupported/mail2/mainwindowbase.cpp | |||
@@ -18,17 +18,17 @@ MainWindowBase::MainWindowBase(QWidget *parent, const char *name, WFlags fl) | |||
18 | : QMainWindow(parent, name, fl) | 18 | : QMainWindow(parent, name, fl) |
19 | { | 19 | { |
20 | setCaption(tr("E-Mail")); | 20 | setCaption(tr("E-Mail")); |
21 | setToolBarsMovable(false); | 21 | setToolBarsMovable(false); |
22 | 22 | ||
23 | toolbar = new QPEToolBar(this); | 23 | toolbar = new QPEToolBar(this); |
24 | menubar = new QPEMenuBar( toolbar ); | 24 | menubar = new QPEMenuBar( toolbar ); |
25 | mailmenu = new QPopupMenu( menubar ); | 25 | mailmenu = new QPopupMenu( menubar ); |
26 | servermenu = new QPopupMenu( menubar ); | 26 | servermenu = new QPopupMenu( menubar ); |
27 | menubar->insertItem( tr( "Mail" ), mailmenu ); | 27 | menubar->insertItem( tr( "Mail" ), mailmenu ); |
28 | menubar->insertItem( tr( "Servers" ), servermenu ); | 28 | menubar->insertItem( tr( "Servers" ), servermenu ); |
29 | 29 | ||
30 | addToolBar(toolbar); | 30 | addToolBar(toolbar); |
31 | toolbar->setHorizontalStretchable(true); | 31 | toolbar->setHorizontalStretchable(true); |
32 | 32 | ||
33 | QLabel *spacer = new QLabel(toolbar); | 33 | QLabel *spacer = new QLabel(toolbar); |
34 | spacer->setBackgroundMode(QWidget::PaletteButton); | 34 | spacer->setBackgroundMode(QWidget::PaletteButton); |
@@ -36,31 +36,27 @@ MainWindowBase::MainWindowBase(QWidget *parent, const char *name, WFlags fl) | |||
36 | 36 | ||
37 | compose = new QAction(tr("Compose new mail"), QIconSet(Resource::loadPixmap("mail/newmail")), 0, 0, this); | 37 | compose = new QAction(tr("Compose new mail"), QIconSet(Resource::loadPixmap("mail/newmail")), 0, 0, this); |
38 | compose->addTo(toolbar); | 38 | compose->addTo(toolbar); |
39 | compose->addTo(mailmenu); | 39 | compose->addTo(mailmenu); |
40 | 40 | ||
41 | sendQueue = new QAction(tr("Send queued mails"), QIconSet(Resource::loadPixmap("mail/sendqueue")), 0, 0, this); | 41 | sendQueue = new QAction(tr("Send queued mails"), QIconSet(Resource::loadPixmap("mail/sendqueue")), 0, 0, this); |
42 | sendQueue->addTo(toolbar); | 42 | sendQueue->addTo(toolbar); |
43 | sendQueue->addTo(mailmenu); | 43 | sendQueue->addTo(mailmenu); |
44 | 44 | ||
45 | folders = new QAction(tr("Show/hide folders"), QIconSet(Resource::loadPixmap("mail/folder")), 0, 0, this, 0, true); | 45 | folders = new QAction(tr("Show/hide folders"), QIconSet(Resource::loadPixmap("mail/folder")), 0, 0, this, 0, true); |
46 | folders->addTo(toolbar); | 46 | folders->addTo(toolbar); |
47 | folders->addTo(servermenu); | 47 | folders->addTo(servermenu); |
48 | connect(folders, SIGNAL(toggled(bool)), SLOT(slotFoldersToggled(bool))); | 48 | connect(folders, SIGNAL(toggled(bool)), SLOT(slotFoldersToggled(bool))); |
49 | 49 | ||
50 | findmails = new QAction(tr("Search mails"), QIconSet(Resource::loadPixmap("mail/find")), 0, 0, this); | 50 | findmails = new QAction(tr("Search mails"), QIconSet(Resource::loadPixmap("mail/find")), 0, 0, this); |
51 | findmails->addTo(toolbar); | 51 | findmails->addTo(toolbar); |
52 | findmails->addTo(mailmenu); | 52 | findmails->addTo(mailmenu); |
53 | 53 | ||
54 | configure = new QAction(tr("Configuration"), QIconSet(Resource::loadPixmap("mail/configure")), 0, 0, this); | 54 | configure = new QAction(tr("Configuration"), QIconSet(Resource::loadPixmap("mail/configure")), 0, 0, this); |
55 | configure->addTo(toolbar); | ||
56 | configure->addTo(servermenu); | 55 | configure->addTo(servermenu); |
57 | 56 | ||
58 | stop = new QAction(tr("Abort"), QIconSet(Resource::loadPixmap("mail/abort")), 0, 0, this); | ||
59 | stop->addTo(toolbar); | ||
60 | |||
61 | QVBox *view = new QVBox(this); | 57 | QVBox *view = new QVBox(this); |
62 | setCentralWidget(view); | 58 | setCentralWidget(view); |
63 | 59 | ||
64 | folderView = new FolderWidget(view); | 60 | folderView = new FolderWidget(view); |
65 | folderView->setMinimumHeight(90); | 61 | folderView->setMinimumHeight(90); |
66 | folderView->setMaximumHeight(90); | 62 | folderView->setMaximumHeight(90); |
@@ -73,12 +69,17 @@ MainWindowBase::MainWindowBase(QWidget *parent, const char *name, WFlags fl) | |||
73 | 69 | ||
74 | statusLabel = new QLabel(status); | 70 | statusLabel = new QLabel(status); |
75 | QFont tmpFont = statusLabel->font(); | 71 | QFont tmpFont = statusLabel->font(); |
76 | tmpFont.setPixelSize(8); | 72 | tmpFont.setPixelSize(8); |
77 | statusLabel->setFont(tmpFont); | 73 | statusLabel->setFont(tmpFont); |
78 | 74 | ||
75 | stopButton = new QToolButton(status); | ||
76 | stopButton->setText(" X "); | ||
77 | stopButton->setMaximumHeight(15); | ||
78 | stopButton->setSizePolicy(QSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed)); | ||
79 | |||
79 | statusProgress = new QProgressBar(status); | 80 | statusProgress = new QProgressBar(status); |
80 | statusProgress->setCenterIndicator(true); | 81 | statusProgress->setCenterIndicator(true); |
81 | statusProgress->setMaximumHeight(15); | 82 | statusProgress->setMaximumHeight(15); |
82 | statusProgress->setSizePolicy(QSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed)); | 83 | statusProgress->setSizePolicy(QSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed)); |
83 | } | 84 | } |
84 | 85 | ||