-rw-r--r-- | korganizer/komonthview.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/korganizer/komonthview.cpp b/korganizer/komonthview.cpp index 9b0389d..00e5a6f 100644 --- a/korganizer/komonthview.cpp +++ b/korganizer/komonthview.cpp @@ -306,8 +306,20 @@ void MonthViewItem::recycle( Incidence *incidence, QDate qd, const QString & s) mReply = false; mInfo = false; mdayPos = 0; } +void MonthViewItem::clearData() +{ + mDisplayHightlighted = false; + setText( "" ); + mMultiday = 0; + mIncidence = 0; + mRecur = false; + mAlarm = false; + mReply = false; + mInfo = false; + mdayPos = 0; +} bool MonthViewItem::setHighlightedFalse() { if ( !mDisplayHightlighted ) return false; @@ -654,8 +666,10 @@ void MonthViewCell::startUpdateCell() MonthViewItem* CurrentAvailItem = (MonthViewItem*) firstItem (); //clear(); while ( CurrentAvailItem ) { MonthViewItem *item = CurrentAvailItem; + //item->setHighlightedFalse(); + item->clearData(); CurrentAvailItem = (MonthViewItem *)item->next(); mAvailItemList.append( item ); takeItem ( item ); } |