summaryrefslogtreecommitdiff
path: root/noncore/unsupported/mail2/mainwindowbase.cpp
Side-by-side diff
Diffstat (limited to 'noncore/unsupported/mail2/mainwindowbase.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/unsupported/mail2/mainwindowbase.cpp20
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 @@
-#include <qprogressbar.h>
-#include <qtoolbutton.h>
#include <qpopupmenu.h>
#include <qaction.h>
#include <qheader.h>
#include <qlabel.h>
#include <qvbox.h>
#include <qpe/qpetoolbar.h>
#include <qpe/qpemenubar.h>
#include <qpe/resource.h>
#include "mainwindowbase.h"
+#include "mailstatusbar.h"
#include "folderwidget.h"
#include "mailtable.h"
MainWindowBase::MainWindowBase(QWidget *parent, const char *name, WFlags fl)
: QMainWindow(parent, name, fl)
{
@@ -62,28 +61,13 @@ MainWindowBase::MainWindowBase(QWidget *parent, const char *name, WFlags fl)
folderView->setMaximumHeight(90);
folderView->hide();
mailView = new MailTable(view);
mailView->setMinimumHeight(50);
- QHBox *status = new QHBox(view);
-
- statusLabel = new QLabel(status);
- QFont tmpFont = statusLabel->font();
- tmpFont.setPixelSize(8);
- statusLabel->setFont(tmpFont);
-
- stopButton = new QToolButton(status);
- stopButton->setText(" X ");
- stopButton->setMaximumHeight(15);
- stopButton->setSizePolicy(QSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed));
-
- statusProgress = new QProgressBar(status);
- statusProgress->setCenterIndicator(true);
- statusProgress->setMaximumHeight(15);
- statusProgress->setSizePolicy(QSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed));
+ status = new MailStatusBar(view);
}
void MainWindowBase::slotFoldersToggled(bool toggled)
{
if (folderView->isHidden() && toggled) folderView->show();
if (!folderView->isHidden() && !toggled) folderView->hide();