author | zautrix <zautrix> | 2004-07-04 17:18:13 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-07-04 17:18:13 (UTC) |
commit | 25671b4735f2604e13f4d6801b96f016ac8b9834 (patch) (side-by-side diff) | |
tree | 8fb194ccfbec635f1ada9db16b76e81f72387216 | |
parent | 48bea7694899530fdfdbc0a2fefab6d3e64be1e1 (diff) | |
download | kdepimpi-25671b4735f2604e13f4d6801b96f016ac8b9834.zip kdepimpi-25671b4735f2604e13f4d6801b96f016ac8b9834.tar.gz kdepimpi-25671b4735f2604e13f4d6801b96f016ac8b9834.tar.bz2 |
Usebility enhancement:Removed trash from toolbar, added exit button
-rw-r--r-- | kmicromail/mainwindow.cpp | 24 | ||||
-rw-r--r-- | kmicromail/viewmail.cpp | 3 | ||||
-rw-r--r-- | kmicromail/viewmailbase.cpp | 13 | ||||
-rw-r--r-- | kmicromail/viewmailbase.h | 2 |
4 files changed, 25 insertions, 17 deletions
diff --git a/kmicromail/mainwindow.cpp b/kmicromail/mainwindow.cpp index ddc7b3e..a500dec 100644 --- a/kmicromail/mainwindow.cpp +++ b/kmicromail/mainwindow.cpp @@ -34,5 +34,3 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags ) - QLabel *spacer = new QLabel( toolBar ); - spacer->setBackgroundMode( QWidget::PaletteButton ); - toolBar->setStretchableWidget( spacer ); + @@ -135,4 +133,4 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags ) connect( editAccounts, SIGNAL( activated() ), SLOT( slotEditAccounts() ) ); - mailView->setMultiSelection ( true ); - //mailView->setSelectionMode( QListView::Extended ); + //mailView->setMultiSelection ( true ); + mailView->setSelectionMode( QListView::Extended ); QValueList<int> list; @@ -145,3 +143,11 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags ) QTimer::singleShot( 1000, this, SLOT( slotAdjustColumns() ) ); - mailView->setShowSortIndicator ( true ); + mailView->setShowSortIndicator ( true ); + QLabel *spacer = new QLabel( toolBar ); + spacer->setBackgroundMode( QWidget::PaletteButton ); + toolBar->setStretchableWidget( spacer ); + + QAction* closeMail = new QAction(tr("Close"),SmallIcon("exit"), 0, 0, this); + connect( closeMail, SIGNAL( activated() ), SLOT( close() ) ); + closeMail->addTo(toolBar); + closeMail->addTo(mailMenu); } @@ -178,6 +184,6 @@ void MainWindow::slotAdjustColumns() mailView->setColumnWidth( 0, 10 ); - mailView->setColumnWidth( 1, 80 ); - mailView->setColumnWidth( 2, 80 ); + mailView->setColumnWidth( 1, 100 ); + mailView->setColumnWidth( 2, 100 ); mailView->setColumnWidth( 3, 50 ); - mailView->setColumnWidth( 4, 50 ); + mailView->setColumnWidth( 4, 120 ); } diff --git a/kmicromail/viewmail.cpp b/kmicromail/viewmail.cpp index b434318..703711d 100644 --- a/kmicromail/viewmail.cpp +++ b/kmicromail/viewmail.cpp @@ -315,3 +315,4 @@ ViewMail::ViewMail( QWidget *parent, const char *name, WFlags fl) connect( deleteMail, SIGNAL( activated() ), SLOT( slotDeleteMail() ) ); - connect( showHtml, SIGNAL( toggled(bool) ), SLOT( slotShowHtml(bool) ) ); + connect( showHtml, SIGNAL( toggled(bool) ), SLOT( slotShowHtml(bool) ) ); + connect( closeMail, SIGNAL( activated() ), SLOT( close() ) ); diff --git a/kmicromail/viewmailbase.cpp b/kmicromail/viewmailbase.cpp index 2590481..584a0ac 100644 --- a/kmicromail/viewmailbase.cpp +++ b/kmicromail/viewmailbase.cpp @@ -28,6 +28,2 @@ ViewMailBase::ViewMailBase(QWidget *parent, const char *name, WFlags fl) - QLabel *spacer = new QLabel(toolbar); - spacer->setBackgroundMode(QWidget::PaletteButton); - toolbar->setStretchableWidget(spacer); - reply = new QAction(tr("Reply"),SmallIcon("reply"), 0, 0, this); @@ -50,6 +46,11 @@ ViewMailBase::ViewMailBase(QWidget *parent, const char *name, WFlags fl) - deleteMail = new QAction(tr("Delete Mail"),SmallIcon("trash"), 0, 0, this); + deleteMail = new QAction(tr("Delete Mail"),SmallIcon("trash"), 0, 0, this); deleteMail->addTo(toolbar); deleteMail->addTo(mailmenu); - + closeMail = new QAction(tr("Close"),SmallIcon("exit"), 0, 0, this); + QLabel *spacer = new QLabel(toolbar); + spacer->setBackgroundMode(QWidget::PaletteButton); + toolbar->setStretchableWidget(spacer); + closeMail->addTo(toolbar); + closeMail->addTo(mailmenu); QVBox *view = new QVBox(this); diff --git a/kmicromail/viewmailbase.h b/kmicromail/viewmailbase.h index fdaad2a..c29d143 100644 --- a/kmicromail/viewmailbase.h +++ b/kmicromail/viewmailbase.h @@ -21,3 +21,3 @@ public: protected: - QAction *reply, *forward, *attachbutton, *deleteMail, *showHtml; + QAction *reply, *forward, *attachbutton, *deleteMail, *showHtml, *closeMail; QListView *attachments; |