-rw-r--r-- | kmicromail/mainwindow.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kmicromail/mainwindow.cpp b/kmicromail/mainwindow.cpp index 1dc374b..875ab77 100644 --- a/kmicromail/mainwindow.cpp +++ b/kmicromail/mainwindow.cpp | |||
@@ -124,24 +124,26 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags ) | |||
124 | folderView->header()->hide(); | 124 | folderView->header()->hide(); |
125 | folderView->setRootIsDecorated( false ); | 125 | folderView->setRootIsDecorated( false ); |
126 | folderView->addColumn( i18n( "Mailbox" ) ); | 126 | folderView->addColumn( i18n( "Mailbox" ) ); |
127 | 127 | ||
128 | //layout->addWidget( folderView ); | 128 | //layout->addWidget( folderView ); |
129 | 129 | ||
130 | mailView = new QListView( split ); | 130 | mailView = new QListView( split ); |
131 | mailView->addColumn( i18n( " " ) ); | 131 | mailView->addColumn( i18n( " " ) ); |
132 | mailView->addColumn( i18n( "Subject" ),QListView::Manual ); | 132 | mailView->addColumn( i18n( "Subject" ),QListView::Manual ); |
133 | mailView->addColumn( i18n( "Sender" ),QListView::Manual ); | 133 | mailView->addColumn( i18n( "Sender" ),QListView::Manual ); |
134 | mailView->addColumn( i18n( "Size" ),QListView::Manual); | 134 | mailView->addColumn( i18n( "Size" ),QListView::Manual); |
135 | mailView->addColumn( i18n( "Date" ),QListView::Manual); | 135 | mailView->addColumn( i18n( "Date" ),QListView::Manual); |
136 | if ( KOPrefs::instance()->mShowToField ) | ||
137 | mailView->addColumn( i18n( "To" ),QListView::Manual); | ||
136 | mailView->setAllColumnsShowFocus(true); | 138 | mailView->setAllColumnsShowFocus(true); |
137 | //mailView->setSorting(-1); | 139 | //mailView->setSorting(-1); |
138 | mailView->setRootIsDecorated( false ); | 140 | mailView->setRootIsDecorated( false ); |
139 | statusWidget = new StatusWidget( wrapperBox ); | 141 | statusWidget = new StatusWidget( wrapperBox ); |
140 | statusWidget->hide(); | 142 | statusWidget->hide(); |
141 | 143 | ||
142 | //layout->addWidget( mailView ); | 144 | //layout->addWidget( mailView ); |
143 | //layout->setStretchFactor( folderView, 1 ); | 145 | //layout->setStretchFactor( folderView, 1 ); |
144 | //layout->setStretchFactor( mailView, 2 ); | 146 | //layout->setStretchFactor( mailView, 2 ); |
145 | 147 | ||
146 | slotAdjustLayout(); | 148 | slotAdjustLayout(); |
147 | #ifndef DESKTOP_VERSION | 149 | #ifndef DESKTOP_VERSION |
@@ -294,24 +296,26 @@ void MainWindow::slotAdjustLayout() { | |||
294 | void MainWindow::slotAdjustColumns() | 296 | void MainWindow::slotAdjustColumns() |
295 | { | 297 | { |
296 | bool hidden = folderView->isHidden(); | 298 | bool hidden = folderView->isHidden(); |
297 | if ( hidden ) folderView->show(); | 299 | if ( hidden ) folderView->show(); |
298 | folderView->setColumnWidth( 0, folderView->visibleWidth() ); | 300 | folderView->setColumnWidth( 0, folderView->visibleWidth() ); |
299 | if ( hidden ) folderView->hide(); | 301 | if ( hidden ) folderView->hide(); |
300 | 302 | ||
301 | mailView->setColumnWidth( 0, 10 ); | 303 | mailView->setColumnWidth( 0, 10 ); |
302 | mailView->setColumnWidth( 1, 100 ); | 304 | mailView->setColumnWidth( 1, 100 ); |
303 | mailView->setColumnWidth( 2, 100 ); | 305 | mailView->setColumnWidth( 2, 100 ); |
304 | mailView->setColumnWidth( 3, 50 ); | 306 | mailView->setColumnWidth( 3, 50 ); |
305 | mailView->setColumnWidth( 4, 120 ); | 307 | mailView->setColumnWidth( 4, 120 ); |
308 | if ( KOPrefs::instance()->mShowToField ) | ||
309 | mailView->setColumnWidth( 5, 100 ); | ||
306 | } | 310 | } |
307 | 311 | ||
308 | void MainWindow::slotEditSettings() | 312 | void MainWindow::slotEditSettings() |
309 | { | 313 | { |
310 | } | 314 | } |
311 | 315 | ||
312 | void MainWindow::slotShowFolders( bool ) | 316 | void MainWindow::slotShowFolders( bool ) |
313 | { | 317 | { |
314 | qDebug("not implemented: "); | 318 | qDebug("not implemented: "); |
315 | } | 319 | } |
316 | 320 | ||
317 | void MainWindow::refreshMailView(const QValueList<RecMailP>&) | 321 | void MainWindow::refreshMailView(const QValueList<RecMailP>&) |