-rw-r--r-- | korganizer/kolistview.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/korganizer/kolistview.cpp b/korganizer/kolistview.cpp index a1bf9ff..bbf83d9 100644 --- a/korganizer/kolistview.cpp +++ b/korganizer/kolistview.cpp @@ -103,34 +103,40 @@ bool ListItemVisitor::visit(Event *e) if ( ok ) { int days = e->dtStart().date().daysTo(e->dtEnd().date() ); start = KGlobal::locale()->formatDate(ds,true); de = ds.addDays( days); end = KGlobal::locale()->formatDate(de,true); } } if ( ! ok ) { start =e->dtStartDateStr(); end = e->dtEndDateStr(); ds = e->dtStart().date(); de = e->dtEnd().date(); } mItem->setText(0,e->summary()); mItem->setText(1,start); + if ( e->doesFloat() ) + mItem->setText(2,"---"); + else mItem->setText(2,e->dtStartTimeStr()); mItem->setText(3,end); + if ( e->doesFloat() ) + mItem->setText(4,"---"); + else mItem->setText(4,e->dtEndTimeStr()); if ( e->isAlarmEnabled() ) { mItem->setText(5,e->alarms().first()->offsetText() ); } else { mItem->setText(5, i18n("No")); } mItem->setText(6, e->recurrence()->recurrenceText()); if( ! e->doesRecur() ) mItem->setSortKey( 6, "-" ); mItem->setText(7,"---"); mItem->setText(8,"---"); mItem->setText(9, e->cancelled() ? i18n("Yes") : i18n("No")); mItem->setText(10,e->categoriesStr()); QString key; QTime t = e->doesFloat() ? QTime(0,0) : e->dtStart().time(); |