summaryrefslogtreecommitdiffabout
path: root/kmicromail/mailistviewitem.cpp
Side-by-side diff
Diffstat (limited to 'kmicromail/mailistviewitem.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--kmicromail/mailistviewitem.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/kmicromail/mailistviewitem.cpp b/kmicromail/mailistviewitem.cpp
index b92b0cf..484a635 100644
--- a/kmicromail/mailistviewitem.cpp
+++ b/kmicromail/mailistviewitem.cpp
@@ -53,11 +53,11 @@ void MailListViewItem::showEntry()
//setText(3, "kB" + fsort ); // test only
} else {
//setText(3, fsize + "MB");
- mKeyMap.insert(4, "M" +fsort );
+ mKeyMap.insert(3, "M" +fsort );
}
setText(1,mail_data->getSubject());
setText(2,mail_data->getFrom());
-
+#if 0
QString date = mail_data->getDate();
int kom = date.find( ",")+2;
@@ -98,9 +98,12 @@ void MailListViewItem::showEntry()
so = "12";
date = date.mid(7,4)+so+date.left(2)+date.mid(12,14);
}
+ //qDebug("insert Date %s ", date.latin1());
// if ( date.left(1) != "1" || date.left(1) != "2" )
// date = date.mid(5);
mKeyMap.insert(4,date);
+#endif
+ mKeyMap.insert(4,mail_data->getIsoDate());
setText(4,mail_data->getDate());
}
@@ -115,7 +118,7 @@ void MailListViewItem::setSortKey(int column,const QString &key)
QString MailListViewItem::key(int column, bool) const
{
// to make is fast, we use here special cases
- if ( column == 3 || column == 4 ) {
+ if ( column == 3 || column == 4 ) {
return *mKeyMap.find(column);
}
if ( column == 1 ) {