summaryrefslogtreecommitdiffabout
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--kmicromail/mailistviewitem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/kmicromail/mailistviewitem.cpp b/kmicromail/mailistviewitem.cpp
index 6073da6..b9b4cd9 100644
--- a/kmicromail/mailistviewitem.cpp
+++ b/kmicromail/mailistviewitem.cpp
@@ -46,70 +46,70 @@ void MailListViewItem::showEntry()
46 { 46 {
47 QTextOStream o(&fsize); 47 QTextOStream o(&fsize);
48 if (w>0) o.precision(2); else o.precision(0); 48 if (w>0) o.precision(2); else o.precision(0);
49 o.setf(QTextStream::fixed); 49 o.setf(QTextStream::fixed);
50 o << s << " " << q << "Byte"; 50 o << s << " " << q << "Byte";
51 } 51 }
52 52
53 setText(1,mail_data->getSubject()); 53 setText(1,mail_data->getSubject());
54 setText(2,mail_data->getFrom()); 54 setText(2,mail_data->getFrom());
55 setText(3,fsize); 55 setText(3,fsize);
56 QString date = mail_data->getDate(); 56 QString date = mail_data->getDate();
57 57
58 int kom = date.find( ",")+2; 58 int kom = date.find( ",")+2;
59 if ( kom == 1 ) 59 if ( kom == 1 )
60 kom = 0; 60 kom = 0;
61 if ( date.mid(kom,1) == " ") 61 if ( date.mid(kom,1) == " ")
62 ++kom; 62 ++kom;
63 if ( date.mid(kom+1,1) == " " ) 63 if ( date.mid(kom+1,1) == " " )
64 date = "0" + date.mid( kom ); 64 date = "0" + date.mid( kom );
65 else if ( kom ) 65 else if ( kom )
66 date = date.mid( kom ); 66 date = date.mid( kom );
67 if ( kom || date.mid(2,1 ) == " ") { 67 if ( kom || date.mid(2,1 ) == " ") {
68 QString mon = date.mid(3,3); 68 QString mon = date.mid(3,3);
69 QString so = 00; 69 QString so = 00;
70 if ( mon == "Jan" ) 70 if ( mon == "Jan" )
71 so = "01"; 71 so = "01";
72 else if ( mon == "Feb" ) 72 else if ( mon == "Feb" )
73 so = "02"; 73 so = "02";
74 else if ( mon == "Mar" ) 74 else if ( mon == "Mar" )
75 so = "03"; 75 so = "03";
76 else if ( mon == "Apr" ) 76 else if ( mon == "Apr" )
77 so = "04"; 77 so = "04";
78 else if ( mon == "May" ) 78 else if ( mon == "May" )
79 so = "05"; 79 so = "05";
80 else if ( mon == "Jun" ) 80 else if ( mon == "Jun" )
81 so = "06"; 81 so = "06";
82 else if ( mon == "Jul" ) 82 else if ( mon == "Jul" )
83 so = "07"; 83 so = "07";
84 else if ( mon == "Aug" ) 84 else if ( mon == "Aug" )
85 so = "08"; 85 so = "08";
86 else if ( mon == "Sep" ) 86 else if ( mon == "Sep" )
87 so = "09"; 87 so = "09";
88 else if ( mon == "Oct" ) 88 else if ( mon == "Oct" )
89 so = "10"; 89 so = "10";
90 else if ( mon == "Nov" ) 90 else if ( mon == "Nov" )
91 so = "11"; 91 so = "11";
92 else if ( mon == "Dec" ) 92 else if ( mon == "Dec" )
93 so = "12"; 93 so = "12";
94 date = date.mid(7,4)+"-"+so+"-"+date.left(2)+"-"+date.mid(12); 94 date = date.mid(7,4)+"-"+so+"-"+date.left(2)+" "+date.mid(12,14);
95 } 95 }
96 // if ( date.left(1) != "1" || date.left(1) != "2" ) 96 // if ( date.left(1) != "1" || date.left(1) != "2" )
97 // date = date.mid(5); 97 // date = date.mid(5);
98 setText(4,date); 98 setText(4,date);
99} 99}
100 100
101void MailListViewItem::storeData(const RecMailP&data) 101void MailListViewItem::storeData(const RecMailP&data)
102{ 102{
103 mail_data = data; 103 mail_data = data;
104} 104}
105 105
106const RecMailP& MailListViewItem::data()const 106const RecMailP& MailListViewItem::data()const
107{ 107{
108 return mail_data; 108 return mail_data;
109} 109}
110 110
111MAILLIB::ATYPE MailListViewItem::wrapperType() 111MAILLIB::ATYPE MailListViewItem::wrapperType()
112{ 112{
113 if (!mail_data->Wrapper()) return MAILLIB::A_UNDEFINED; 113 if (!mail_data->Wrapper()) return MAILLIB::A_UNDEFINED;
114 return mail_data->Wrapper()->getType(); 114 return mail_data->Wrapper()->getType();
115} 115}