author | zautrix <zautrix> | 2005-08-22 20:51:25 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-08-22 20:51:25 (UTC) |
commit | cfda06568cbd0e67ba0188f00622b348b57b27c0 (patch) (side-by-side diff) | |
tree | 925a3d4553eae2946cb8c588abae872b78d494f2 /kmicromail/mainwindow.cpp | |
parent | cb425b4c2d027d49f964368e94a52d3ba5e6aa31 (diff) | |
download | kdepimpi-cfda06568cbd0e67ba0188f00622b348b57b27c0.zip kdepimpi-cfda06568cbd0e67ba0188f00622b348b57b27c0.tar.gz kdepimpi-cfda06568cbd0e67ba0188f00622b348b57b27c0.tar.bz2 |
fixxx
-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 @@ -25,2 +25,3 @@ extern QStatusBar* globalSstatusBarMainWindow; #include <KDGanttMinimizeSplitter.h> +#include <libkdepim/kpimglobalprefs.h> @@ -167,3 +168,3 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags ) - mailView = new QListView( split ); + mailView = new KListView( split ); mailView->addColumn( i18n( " " ) ); @@ -180,3 +181,5 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags ) statusWidget->hide(); - + mailView->setSelectionMode( QListView::Multi ); + mailView->setMultiSelection( true); + mailView->setAlternateBackground(KPimGlobalPrefs::instance()->mAlternateColor ); //layout->addWidget( mailView ); @@ -213,3 +216,3 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags ) //mailView->setMultiSelection ( true ); - mailView->setSelectionMode( QListView::Extended ); + //mailView->setSelectionMode( QListView::Extended ); QValueList<int> list; @@ -221,3 +224,3 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags ) split->setSizes( list ); - QTimer::singleShot( 1000, this, SLOT( slotAdjustColumns() ) ); + QTimer::singleShot( 100, this, SLOT( slotAdjustColumns() ) ); mailView->setShowSortIndicator ( true ); @@ -372,6 +375,7 @@ void MainWindow::slotAdjustColumns() 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); } |