Diffstat (limited to 'noncore/unsupported/mail2/mainwindowbase.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/unsupported/mail2/mainwindowbase.cpp | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/noncore/unsupported/mail2/mainwindowbase.cpp b/noncore/unsupported/mail2/mainwindowbase.cpp index bffe8b3..e35d489 100644 --- a/noncore/unsupported/mail2/mainwindowbase.cpp +++ b/noncore/unsupported/mail2/mainwindowbase.cpp | |||
@@ -1,19 +1,18 @@ | |||
1 | #include <qprogressbar.h> | ||
2 | #include <qtoolbutton.h> | ||
3 | #include <qpopupmenu.h> | 1 | #include <qpopupmenu.h> |
4 | #include <qaction.h> | 2 | #include <qaction.h> |
5 | #include <qheader.h> | 3 | #include <qheader.h> |
6 | #include <qlabel.h> | 4 | #include <qlabel.h> |
7 | #include <qvbox.h> | 5 | #include <qvbox.h> |
8 | 6 | ||
9 | #include <qpe/qpetoolbar.h> | 7 | #include <qpe/qpetoolbar.h> |
10 | #include <qpe/qpemenubar.h> | 8 | #include <qpe/qpemenubar.h> |
11 | #include <qpe/resource.h> | 9 | #include <qpe/resource.h> |
12 | 10 | ||
13 | #include "mainwindowbase.h" | 11 | #include "mainwindowbase.h" |
12 | #include "mailstatusbar.h" | ||
14 | #include "folderwidget.h" | 13 | #include "folderwidget.h" |
15 | #include "mailtable.h" | 14 | #include "mailtable.h" |
16 | 15 | ||
17 | MainWindowBase::MainWindowBase(QWidget *parent, const char *name, WFlags fl) | 16 | MainWindowBase::MainWindowBase(QWidget *parent, const char *name, WFlags fl) |
18 | : QMainWindow(parent, name, fl) | 17 | : QMainWindow(parent, name, fl) |
19 | { | 18 | { |
@@ -62,28 +61,13 @@ MainWindowBase::MainWindowBase(QWidget *parent, const char *name, WFlags fl) | |||
62 | folderView->setMaximumHeight(90); | 61 | folderView->setMaximumHeight(90); |
63 | folderView->hide(); | 62 | folderView->hide(); |
64 | 63 | ||
65 | mailView = new MailTable(view); | 64 | mailView = new MailTable(view); |
66 | mailView->setMinimumHeight(50); | 65 | mailView->setMinimumHeight(50); |
67 | 66 | ||
68 | QHBox *status = new QHBox(view); | 67 | status = new MailStatusBar(view); |
69 | |||
70 | statusLabel = new QLabel(status); | ||
71 | QFont tmpFont = statusLabel->font(); | ||
72 | tmpFont.setPixelSize(8); | ||
73 | statusLabel->setFont(tmpFont); | ||
74 | |||
75 | stopButton = new QToolButton(status); | ||
76 | stopButton->setText(" X "); | ||
77 | stopButton->setMaximumHeight(15); | ||
78 | stopButton->setSizePolicy(QSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed)); | ||
79 | |||
80 | statusProgress = new QProgressBar(status); | ||
81 | statusProgress->setCenterIndicator(true); | ||
82 | statusProgress->setMaximumHeight(15); | ||
83 | statusProgress->setSizePolicy(QSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed)); | ||
84 | } | 68 | } |
85 | 69 | ||
86 | void MainWindowBase::slotFoldersToggled(bool toggled) | 70 | void MainWindowBase::slotFoldersToggled(bool toggled) |
87 | { | 71 | { |
88 | if (folderView->isHidden() && toggled) folderView->show(); | 72 | if (folderView->isHidden() && toggled) folderView->show(); |
89 | if (!folderView->isHidden() && !toggled) folderView->hide(); | 73 | if (!folderView->isHidden() && !toggled) folderView->hide(); |