summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/mail/mainwindow.cpp1
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
@@ -118,49 +118,48 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags )
118 layout->setStretchFactor( mailView, 2 ); 118 layout->setStretchFactor( mailView, 2 );
119 119
120 120
121 slotAdjustLayout(); 121 slotAdjustLayout();
122 122
123 connect( mailView, SIGNAL( clicked( QListViewItem * ) ),this, 123 connect( mailView, SIGNAL( clicked( QListViewItem * ) ),this,
124 SLOT( displayMail( QListViewItem * ) ) ); 124 SLOT( displayMail( QListViewItem * ) ) );
125 125
126 connect(folderView, SIGNAL(refreshMailview(QList<RecMail>*)),this,SLOT(refreshMailView(QList<RecMail>*))); 126 connect(folderView, SIGNAL(refreshMailview(QList<RecMail>*)),this,SLOT(refreshMailView(QList<RecMail>*)));
127 127
128 QTimer::singleShot( 1000, this, SLOT( slotAdjustColumns() ) ); 128 QTimer::singleShot( 1000, this, SLOT( slotAdjustColumns() ) );
129 129
130} 130}
131 131
132 132
133void MainWindow::slotAdjustLayout() { 133void 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
145void MainWindow::slotAdjustColumns() 144void 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 );
155 mailView->setColumnWidth( 3, 50 ); 154 mailView->setColumnWidth( 3, 50 );
156 mailView->setColumnWidth( 4, 50 ); 155 mailView->setColumnWidth( 4, 50 );
157} 156}
158 157
159void MainWindow::slotEditSettings() { 158void MainWindow::slotEditSettings() {
160 SettingsDialog settingsDialog( this, 0, true ); 159 SettingsDialog settingsDialog( this, 0, true );
161 settingsDialog.showMaximized(); 160 settingsDialog.showMaximized();
162 settingsDialog.exec(); 161 settingsDialog.exec();
163} 162}
164 163
165void MainWindow::slotShowFolders( bool show ) 164void MainWindow::slotShowFolders( bool show )
166{ 165{