author | zautrix <zautrix> | 2005-08-23 09:58:25 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-08-23 09:58:25 (UTC) |
commit | e34e096c0e1b799904643c753591833f3ff2ab95 (patch) (side-by-side diff) | |
tree | 7599dafddcc8b7b918ee52c5dfa1fe162d3022d3 /kmicromail/mainwindow.cpp | |
parent | cfda06568cbd0e67ba0188f00622b348b57b27c0 (diff) | |
download | kdepimpi-e34e096c0e1b799904643c753591833f3ff2ab95.zip kdepimpi-e34e096c0e1b799904643c753591833f3ff2ab95.tar.gz kdepimpi-e34e096c0e1b799904643c753591833f3ff2ab95.tar.bz2 |
ompi fix
-rw-r--r-- | kmicromail/mainwindow.cpp | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/kmicromail/mainwindow.cpp b/kmicromail/mainwindow.cpp index 82a915e..3dde3cd 100644 --- a/kmicromail/mainwindow.cpp +++ b/kmicromail/mainwindow.cpp @@ -356,34 +356,48 @@ void MainWindow::slotAdjustLayout() { QWidget *d = QApplication::desktop(); if ( d->width() < d->height() ) { layout->setDirection( QBoxLayout::TopToBottom ); } else { layout->setDirection( QBoxLayout::LeftToRight ); } */ } void MainWindow::slotAdjustColumns() { - bool hidden = folderView->isHidden(); - if ( hidden ) folderView->show(); - folderView->setColumnWidth( 0, folderView->visibleWidth() ); - if ( hidden ) folderView->hide(); + + if ( !folderView->isHidden() ) + folderView->setColumnWidth( 0, folderView->visibleWidth() ); mailView->setColumnWidth( 0, 10 ); mailView->setColumnWidth( 1, 100 ); mailView->setColumnWidth( 2, 100 ); mailView->setColumnWidth( 3, 70 ); - mailView->setColumnWidth( 4, 170 ); + mailView->setColumnWidth( 4, 180 ); + if ( KOPrefs::instance()->mShowToField ) + mailView->setColumnWidth( 5, 100 ); + mailView->setColumnAlignment( 3, AlignRight); + mailView->setColumnAlignment( 4, AlignRight); +} +void MainWindow::slotAdjustColumnsWide() +{ + if ( !folderView->isHidden() ) + folderView->setColumnWidth( 0, folderView->visibleWidth() ); + + mailView->setColumnWidth( 0, 10 ); + mailView->setColumnWidth( 1, 200 ); + mailView->setColumnWidth( 2, 200 ); + mailView->setColumnWidth( 3, 70 ); + mailView->setColumnWidth( 4, 180 ); if ( KOPrefs::instance()->mShowToField ) mailView->setColumnWidth( 5, 100 ); mailView->setColumnAlignment( 3, AlignRight); } void MainWindow::slotEditSettings() { } void MainWindow::slotEditGlobalSettings() { } |