author | alwin <alwin> | 2003-12-24 13:09:36 (UTC) |
---|---|---|
committer | alwin <alwin> | 2003-12-24 13:09:36 (UTC) |
commit | c609fd3341bccf6150e313f4fa08ff3ca9086503 (patch) (unidiff) | |
tree | feaa476de724d9dce133830ff455611c274993b8 | |
parent | d128e2686193fb52bad638317e6f29a1b75a1db4 (diff) | |
download | opie-c609fd3341bccf6150e313f4fa08ff3ca9086503.zip opie-c609fd3341bccf6150e313f4fa08ff3ca9086503.tar.gz opie-c609fd3341bccf6150e313f4fa08ff3ca9086503.tar.bz2 |
bugfix in slotAdjustLayout (tnx zecke)
-rw-r--r-- | noncore/net/mail/mainwindow.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/noncore/net/mail/mainwindow.cpp b/noncore/net/mail/mainwindow.cpp index a0ce6c1..a57fb0d 100644 --- a/noncore/net/mail/mainwindow.cpp +++ b/noncore/net/mail/mainwindow.cpp | |||
@@ -130,25 +130,24 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags ) | |||
130 | } | 130 | } |
131 | 131 | ||
132 | 132 | ||
133 | void MainWindow::slotAdjustLayout() { | 133 | void MainWindow::slotAdjustLayout() { |
134 | 134 | ||
135 | QWidget *d = QApplication::desktop(); | 135 | QWidget *d = QApplication::desktop(); |
136 | 136 | ||
137 | if ( d->width() < d->height() ) { | 137 | if ( d->width() < d->height() ) { |
138 | layout->setDirection( QBoxLayout::TopToBottom ); | 138 | layout->setDirection( QBoxLayout::TopToBottom ); |
139 | } else { | 139 | } else { |
140 | layout->setDirection( QBoxLayout::LeftToRight ); | 140 | layout->setDirection( QBoxLayout::LeftToRight ); |
141 | } | 141 | } |
142 | delete d; | ||
143 | } | 142 | } |
144 | 143 | ||
145 | void MainWindow::slotAdjustColumns() | 144 | void MainWindow::slotAdjustColumns() |
146 | { | 145 | { |
147 | bool hidden = folderView->isHidden(); | 146 | bool hidden = folderView->isHidden(); |
148 | if ( hidden ) folderView->show(); | 147 | if ( hidden ) folderView->show(); |
149 | folderView->setColumnWidth( 0, folderView->visibleWidth() ); | 148 | folderView->setColumnWidth( 0, folderView->visibleWidth() ); |
150 | if ( hidden ) folderView->hide(); | 149 | if ( hidden ) folderView->hide(); |
151 | 150 | ||
152 | mailView->setColumnWidth( 0, 10 ); | 151 | mailView->setColumnWidth( 0, 10 ); |
153 | mailView->setColumnWidth( 1, mailView->visibleWidth() - 130 ); | 152 | mailView->setColumnWidth( 1, mailView->visibleWidth() - 130 ); |
154 | mailView->setColumnWidth( 2, 80 ); | 153 | mailView->setColumnWidth( 2, 80 ); |