From bb33b559609356149ae51cb50c081b3e82aecafb Mon Sep 17 00:00:00 2001 From: zautrix Date: Mon, 24 Jan 2005 18:27:06 +0000 Subject: pixmap update fix --- (limited to 'kmicromail/mailistviewitem.cpp') diff --git a/kmicromail/mailistviewitem.cpp b/kmicromail/mailistviewitem.cpp index 137c482..5119744 100644 --- a/kmicromail/mailistviewitem.cpp +++ b/kmicromail/mailistviewitem.cpp @@ -15,12 +15,15 @@ void MailListViewItem::showEntry() { if ( mail_data->getFlags().testBit( FLAG_ANSWERED ) == true) { setPixmap( 0, SmallIcon ( "kmmsgreplied") ); + mKeyMap.insert(0, "r" ); } else if ( mail_data->getFlags().testBit( FLAG_SEEN ) == true ) { /* I think it looks nicer if there are not such a log of icons but only on mails replied or new - Alwin*/ //setPixmap( 0,SmallIcon ("kmmsgunseen") ); + mKeyMap.insert(0, "s" ); } else { setPixmap( 0,SmallIcon ( "kmmsgnew") ); + mKeyMap.insert(0, "u" ); } QString fsize = mail_data->MsgsizeString(); // 1.23 @@ -67,7 +70,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 || column == 0) { return *mKeyMap.find(column); } if ( column == 1 ) { -- cgit v0.9.0.2