author | zautrix <zautrix> | 2005-08-23 18:28:51 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-08-23 18:28:51 (UTC) |
commit | 13a736b71dec27ef7ffef06b91f34d220d89cce6 (patch) (unidiff) | |
tree | 08003ff0365e905ad653e3a714ac99f1c1aba654 | |
parent | 789aec1acdf798aea32ab16219a8f19c6155250e (diff) | |
download | kdepimpi-13a736b71dec27ef7ffef06b91f34d220d89cce6.zip kdepimpi-13a736b71dec27ef7ffef06b91f34d220d89cce6.tar.gz kdepimpi-13a736b71dec27ef7ffef06b91f34d220d89cce6.tar.bz2 |
align fix
-rw-r--r-- | kmicromail/mailistviewitem.cpp | 2 | ||||
-rw-r--r-- | kmicromail/mainwindow.cpp | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/kmicromail/mailistviewitem.cpp b/kmicromail/mailistviewitem.cpp index 15fa148..41cee52 100644 --- a/kmicromail/mailistviewitem.cpp +++ b/kmicromail/mailistviewitem.cpp | |||
@@ -42,33 +42,33 @@ void MailListViewItem::showEntry() | |||
42 | fsort = fsize ; | 42 | fsort = fsize ; |
43 | break; | 43 | break; |
44 | 44 | ||
45 | } | 45 | } |
46 | 46 | ||
47 | setText(3, fsize ); | 47 | setText(3, fsize ); |
48 | //qDebug("fsize *%s* ",fsize.latin1() ); | 48 | //qDebug("fsize *%s* ",fsize.latin1() ); |
49 | //qDebug("fsort *%s* ",fsort.latin1() ); | 49 | //qDebug("fsort *%s* ",fsort.latin1() ); |
50 | if ( fsize.right(2) == "kB" ) { | 50 | if ( fsize.right(2) == "kB" ) { |
51 | mKeyMap.insert(3, "k" + fsort); | 51 | mKeyMap.insert(3, "k" + fsort); |
52 | } else { | 52 | } else { |
53 | mKeyMap.insert(3, "M" +fsort ); | 53 | mKeyMap.insert(3, "M" +fsort ); |
54 | } | 54 | } |
55 | setText(1,mail_data->getSubject()); | 55 | setText(1,mail_data->getSubject()); |
56 | setText(2,mail_data->getFrom()); | 56 | setText(2,mail_data->getFrom()); |
57 | mKeyMap.insert(4,mail_data->getIsoDate()); | 57 | mKeyMap.insert(4,mail_data->getIsoDate()); |
58 | setText(4,mail_data->getDate()); | 58 | setText(4," "+mail_data->getDate()); |
59 | if ( KOPrefs::instance()->mShowToField ) | 59 | if ( KOPrefs::instance()->mShowToField ) |
60 | setText(5,mail_data->To()[0]); | 60 | setText(5,mail_data->To()[0]); |
61 | } | 61 | } |
62 | 62 | ||
63 | void MailListViewItem::storeData(const RecMailP&data) | 63 | void MailListViewItem::storeData(const RecMailP&data) |
64 | { | 64 | { |
65 | mail_data = data; | 65 | mail_data = data; |
66 | } | 66 | } |
67 | void MailListViewItem::setSortKey(int column,const QString &key) | 67 | void MailListViewItem::setSortKey(int column,const QString &key) |
68 | { | 68 | { |
69 | mKeyMap.insert(column,key); | 69 | mKeyMap.insert(column,key); |
70 | } | 70 | } |
71 | QString MailListViewItem::key(int column, bool) const | 71 | QString MailListViewItem::key(int column, bool) const |
72 | { | 72 | { |
73 | // to make is fast, we use here special cases | 73 | // to make is fast, we use here special cases |
74 | if ( column == 3 || column == 4 || column == 0) { | 74 | if ( column == 3 || column == 4 || column == 0) { |
diff --git a/kmicromail/mainwindow.cpp b/kmicromail/mainwindow.cpp index 3dde3cd..d547dda 100644 --- a/kmicromail/mainwindow.cpp +++ b/kmicromail/mainwindow.cpp | |||
@@ -364,33 +364,32 @@ void MainWindow::slotAdjustLayout() { | |||
364 | } | 364 | } |
365 | 365 | ||
366 | void MainWindow::slotAdjustColumns() | 366 | void MainWindow::slotAdjustColumns() |
367 | { | 367 | { |
368 | 368 | ||
369 | if ( !folderView->isHidden() ) | 369 | if ( !folderView->isHidden() ) |
370 | folderView->setColumnWidth( 0, folderView->visibleWidth() ); | 370 | folderView->setColumnWidth( 0, folderView->visibleWidth() ); |
371 | 371 | ||
372 | mailView->setColumnWidth( 0, 10 ); | 372 | mailView->setColumnWidth( 0, 10 ); |
373 | mailView->setColumnWidth( 1, 100 ); | 373 | mailView->setColumnWidth( 1, 100 ); |
374 | mailView->setColumnWidth( 2, 100 ); | 374 | mailView->setColumnWidth( 2, 100 ); |
375 | mailView->setColumnWidth( 3, 70 ); | 375 | mailView->setColumnWidth( 3, 70 ); |
376 | mailView->setColumnWidth( 4, 180 ); | 376 | mailView->setColumnWidth( 4, 180 ); |
377 | if ( KOPrefs::instance()->mShowToField ) | 377 | if ( KOPrefs::instance()->mShowToField ) |
378 | mailView->setColumnWidth( 5, 100 ); | 378 | mailView->setColumnWidth( 5, 100 ); |
379 | mailView->setColumnAlignment( 3, AlignRight); | 379 | mailView->setColumnAlignment( 3, AlignRight); |
380 | mailView->setColumnAlignment( 4, AlignRight); | ||
381 | } | 380 | } |
382 | void MainWindow::slotAdjustColumnsWide() | 381 | void MainWindow::slotAdjustColumnsWide() |
383 | { | 382 | { |
384 | if ( !folderView->isHidden() ) | 383 | if ( !folderView->isHidden() ) |
385 | folderView->setColumnWidth( 0, folderView->visibleWidth() ); | 384 | folderView->setColumnWidth( 0, folderView->visibleWidth() ); |
386 | 385 | ||
387 | mailView->setColumnWidth( 0, 10 ); | 386 | mailView->setColumnWidth( 0, 10 ); |
388 | mailView->setColumnWidth( 1, 200 ); | 387 | mailView->setColumnWidth( 1, 200 ); |
389 | mailView->setColumnWidth( 2, 200 ); | 388 | mailView->setColumnWidth( 2, 200 ); |
390 | mailView->setColumnWidth( 3, 70 ); | 389 | mailView->setColumnWidth( 3, 70 ); |
391 | mailView->setColumnWidth( 4, 180 ); | 390 | mailView->setColumnWidth( 4, 180 ); |
392 | if ( KOPrefs::instance()->mShowToField ) | 391 | if ( KOPrefs::instance()->mShowToField ) |
393 | mailView->setColumnWidth( 5, 100 ); | 392 | mailView->setColumnWidth( 5, 100 ); |
394 | mailView->setColumnAlignment( 3, AlignRight); | 393 | mailView->setColumnAlignment( 3, AlignRight); |
395 | } | 394 | } |
396 | 395 | ||