-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 @@ -302,16 +302,28 @@ void MonthViewItem::recycle( Incidence *incidence, QDate qd, const QString & s) mIncidence = incidence; mDate = qd; mRecur = false; mAlarm = false; 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; mDisplayHightlighted = false; return true; } @@ -650,16 +662,18 @@ void MonthViewCell::startUpdateCell() setLineWidth( 3 ); } else { setLineWidth( 1 ); } MonthViewItem* CurrentAvailItem = (MonthViewItem*) firstItem (); //clear(); while ( CurrentAvailItem ) { MonthViewItem *item = CurrentAvailItem; + //item->setHighlightedFalse(); + item->clearData(); CurrentAvailItem = (MonthViewItem *)item->next(); mAvailItemList.append( item ); takeItem ( item ); } #ifdef DESKTOP_VERSION QToolTip::remove(this); #endif |