summaryrefslogtreecommitdiffabout
authorzautrix <zautrix>2005-06-27 18:45:56 (UTC)
committer zautrix <zautrix>2005-06-27 18:45:56 (UTC)
commit427221638f1e652bd57a37835a1de0134266c3f7 (patch) (side-by-side diff)
tree5ce070815756cdaccd6c2f0cd6a02e54a1052675
parent2a6c47afc7688923f427f4a38e3353e3503ab09a (diff)
downloadkdepimpi-427221638f1e652bd57a37835a1de0134266c3f7.zip
kdepimpi-427221638f1e652bd57a37835a1de0134266c3f7.tar.gz
kdepimpi-427221638f1e652bd57a37835a1de0134266c3f7.tar.bz2
fixx
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/komonthview.cpp14
-rw-r--r--korganizer/komonthview.h1
2 files changed, 15 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
@@ -304,12 +304,24 @@ void MonthViewItem::recycle( Incidence *incidence, QDate qd, const QString & s)
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;
@@ -652,12 +664,14 @@ void MonthViewCell::startUpdateCell()
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
diff --git a/korganizer/komonthview.h b/korganizer/komonthview.h
index 159af16..ac97860 100644
--- a/korganizer/komonthview.h
+++ b/korganizer/komonthview.h
@@ -104,12 +104,13 @@ class KNoScrollListBox: public QListBox
class MonthViewItem: public QListBoxItem
{
public:
MonthViewItem( Incidence *, QDate qd, const QString & title );
void recycle( Incidence *incidence, QDate qd, const QString & s);
+ void clearData();
void setRecur(bool on) { mRecur = on; }
void setAlarm(bool on) { mAlarm = on; }
void setReply(bool on) { mReply = on; }
void setMoreInfo(bool on) { mInfo = on; }
void setMultiDay(int type) { mMultiday = type; }
int multiDay() { return mMultiday; }