summaryrefslogtreecommitdiff
authorconber <conber>2002-07-10 15:58:52 (UTC)
committer conber <conber>2002-07-10 15:58:52 (UTC)
commitc182d037fe82b7a7fc8adbc493eff9057d29a02d (patch) (side-by-side diff)
tree6553b5138914978000ed1286b2f588037d6d92e4
parent0439137e4c18ad7d10002e2da6bea20b57ae1dec (diff)
downloadopie-c182d037fe82b7a7fc8adbc493eff9057d29a02d.zip
opie-c182d037fe82b7a7fc8adbc493eff9057d29a02d.tar.gz
opie-c182d037fe82b7a7fc8adbc493eff9057d29a02d.tar.bz2
ui improvements
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/unsupported/mail2/mainwindow.cpp7
-rw-r--r--noncore/unsupported/mail2/mainwindowbase.cpp9
-rw-r--r--noncore/unsupported/mail2/mainwindowbase.h4
3 files changed, 12 insertions, 8 deletions
diff --git a/noncore/unsupported/mail2/mainwindow.cpp b/noncore/unsupported/mail2/mainwindow.cpp
index 652db94..0044693 100644
--- a/noncore/unsupported/mail2/mainwindow.cpp
+++ b/noncore/unsupported/mail2/mainwindow.cpp
@@ -2,2 +2,3 @@
#include <qmessagebox.h>
+#include <qtoolbutton.h>
#include <qaction.h>
@@ -17,3 +18,3 @@ MainWindow::MainWindow(QWidget *parent, const char *name, WFlags fl)
{
- stop->setEnabled(false);
+ stopButton->setEnabled(false);
@@ -27,5 +28,5 @@ MainWindow::MainWindow(QWidget *parent, const char *name, WFlags fl)
connect(mailView, SIGNAL(resetProgress()), statusProgress, SLOT(reset()));
- connect(mailView, SIGNAL(stopEnabled(bool)), stop, SLOT(setEnabled(bool)));
+ connect(mailView, SIGNAL(stopEnabled(bool)), stopButton, SLOT(setEnabled(bool)));
- connect(stop, SIGNAL(activated()), mailView, SLOT(stop()));
+ connect(stopButton, SIGNAL(clicked()), mailView, SLOT(stop()));
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
@@ -54,8 +54,4 @@ MainWindowBase::MainWindowBase(QWidget *parent, const char *name, WFlags fl)
configure = new QAction(tr("Configuration"), QIconSet(Resource::loadPixmap("mail/configure")), 0, 0, this);
- configure->addTo(toolbar);
configure->addTo(servermenu);
- stop = new QAction(tr("Abort"), QIconSet(Resource::loadPixmap("mail/abort")), 0, 0, this);
- stop->addTo(toolbar);
-
QVBox *view = new QVBox(this);
@@ -78,2 +74,7 @@ MainWindowBase::MainWindowBase(QWidget *parent, const char *name, WFlags fl)
+ stopButton = new QToolButton(status);
+ stopButton->setText(" X ");
+ stopButton->setMaximumHeight(15);
+ stopButton->setSizePolicy(QSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed));
+
statusProgress = new QProgressBar(status);
diff --git a/noncore/unsupported/mail2/mainwindowbase.h b/noncore/unsupported/mail2/mainwindowbase.h
index d8faeba..702933a 100644
--- a/noncore/unsupported/mail2/mainwindowbase.h
+++ b/noncore/unsupported/mail2/mainwindowbase.h
@@ -8,2 +8,3 @@ class QProgressBar;
class FolderWidget;
+class QToolButton;
class QPEToolBar;
@@ -29,2 +30,3 @@ protected:
FolderWidget *folderView;
+ QToolButton *stopButton;
QPEToolBar *toolbar;
@@ -33,3 +35,3 @@ protected:
MailTable *mailView;
- QAction *compose, *sendQueue, *folders, *findmails, *configure, *stop;
+ QAction *compose, *sendQueue, *folders, *findmails, *configure;
QLabel *statusLabel;