-rw-r--r-- | kmicromail/mainwindow.cpp | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/kmicromail/mainwindow.cpp b/kmicromail/mainwindow.cpp index e3c5ec3..82a915e 100644 --- a/kmicromail/mainwindow.cpp +++ b/kmicromail/mainwindow.cpp @@ -24,4 +24,5 @@ extern QStatusBar* globalSstatusBarMainWindow; #include "mailistviewitem.h" #include <KDGanttMinimizeSplitter.h> +#include <libkdepim/kpimglobalprefs.h> #include "koprefs.h" @@ -166,5 +167,5 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags ) //layout->addWidget( folderView ); - mailView = new QListView( split ); + mailView = new KListView( split ); mailView->addColumn( i18n( " " ) ); mailView->addColumn( i18n( "Subject" ),QListView::Manual ); @@ -179,5 +180,7 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags ) statusWidget = new StatusWidget( wrapperBox ); statusWidget->hide(); - + mailView->setSelectionMode( QListView::Multi ); + mailView->setMultiSelection( true); + mailView->setAlternateBackground(KPimGlobalPrefs::instance()->mAlternateColor ); //layout->addWidget( mailView ); //layout->setStretchFactor( folderView, 1 ); @@ -212,5 +215,5 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags ) connect( editAccounts, SIGNAL( activated() ), SLOT( slotEditAccounts() ) ); //mailView->setMultiSelection ( true ); - mailView->setSelectionMode( QListView::Extended ); + //mailView->setSelectionMode( QListView::Extended ); QValueList<int> list; int fw = 100; @@ -220,5 +223,5 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags ) list.append( 100 ); split->setSizes( list ); - QTimer::singleShot( 1000, this, SLOT( slotAdjustColumns() ) ); + QTimer::singleShot( 100, this, SLOT( slotAdjustColumns() ) ); mailView->setShowSortIndicator ( true ); QLabel *spacer = new QLabel( toolBar ); @@ -371,8 +374,9 @@ void MainWindow::slotAdjustColumns() mailView->setColumnWidth( 1, 100 ); mailView->setColumnWidth( 2, 100 ); - mailView->setColumnWidth( 3, 50 ); - mailView->setColumnWidth( 4, 120 ); + mailView->setColumnWidth( 3, 70 ); + mailView->setColumnWidth( 4, 170 ); if ( KOPrefs::instance()->mShowToField ) mailView->setColumnWidth( 5, 100 ); + mailView->setColumnAlignment( 3, AlignRight); } |