summaryrefslogtreecommitdiffabout
path: root/kmicromail/mainwindow.cpp
authorzautrix <zautrix>2004-07-04 17:18:13 (UTC)
committer zautrix <zautrix>2004-07-04 17:18:13 (UTC)
commit25671b4735f2604e13f4d6801b96f016ac8b9834 (patch) (side-by-side diff)
tree8fb194ccfbec635f1ada9db16b76e81f72387216 /kmicromail/mainwindow.cpp
parent48bea7694899530fdfdbc0a2fefab6d3e64be1e1 (diff)
downloadkdepimpi-25671b4735f2604e13f4d6801b96f016ac8b9834.zip
kdepimpi-25671b4735f2604e13f4d6801b96f016ac8b9834.tar.gz
kdepimpi-25671b4735f2604e13f4d6801b96f016ac8b9834.tar.bz2
Usebility enhancement:Removed trash from toolbar, added exit button
Diffstat (limited to 'kmicromail/mainwindow.cpp') (more/less context) (show whitespace changes)
-rw-r--r--kmicromail/mainwindow.cpp22
1 files changed, 14 insertions, 8 deletions
diff --git a/kmicromail/mainwindow.cpp b/kmicromail/mainwindow.cpp
index ddc7b3e..a500dec 100644
--- a/kmicromail/mainwindow.cpp
+++ b/kmicromail/mainwindow.cpp
@@ -32,9 +32,7 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags )
addToolBar( toolBar );
toolBar->setHorizontalStretchable( true );
- QLabel *spacer = new QLabel( toolBar );
- spacer->setBackgroundMode( QWidget::PaletteButton );
- toolBar->setStretchableWidget( spacer );
+
composeMail = new QAction( tr( "Compose new mail" ), SmallIcon("composemail"),
0, 0, this );
@@ -133,8 +131,8 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags )
connect( sendQueued, SIGNAL( activated() ), SLOT( slotSendQueued() ) );
// connect( searchMails, SIGNAL( activated() ), SLOT( slotSearchMails() ) );
connect( editAccounts, SIGNAL( activated() ), SLOT( slotEditAccounts() ) );
- mailView->setMultiSelection ( true );
- //mailView->setSelectionMode( QListView::Extended );
+ //mailView->setMultiSelection ( true );
+ mailView->setSelectionMode( QListView::Extended );
QValueList<int> list;
int fw = 100;
if ( QApplication::desktop()->width() > 320 )
@@ -144,6 +142,14 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags )
split->setSizes( list );
QTimer::singleShot( 1000, this, SLOT( slotAdjustColumns() ) );
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);
}
MainWindow::~MainWindow()
@@ -176,10 +182,10 @@ void MainWindow::slotAdjustColumns()
if ( hidden ) folderView->hide();
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 );
}
void MainWindow::slotEditSettings()