summaryrefslogtreecommitdiffabout
authorzautrix <zautrix>2005-06-15 16:07:02 (UTC)
committer zautrix <zautrix>2005-06-15 16:07:02 (UTC)
commit2a788f41ebeb7d8edab7010fb1a00799cb9e036d (patch) (side-by-side diff)
tree0d8f635abc48d64add3131f8b5891ee70a877802
parent40fa3e374fd96c0cb8925a1c3c46d40e1ea2b111 (diff)
downloadkdepimpi-2a788f41ebeb7d8edab7010fb1a00799cb9e036d.zip
kdepimpi-2a788f41ebeb7d8edab7010fb1a00799cb9e036d.tar.gz
kdepimpi-2a788f41ebeb7d8edab7010fb1a00799cb9e036d.tar.bz2
fixxx
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--korganizer/komonthview.cpp27
1 files changed, 21 insertions, 6 deletions
diff --git a/korganizer/komonthview.cpp b/korganizer/komonthview.cpp
index 2150654..475bb4a 100644
--- a/korganizer/komonthview.cpp
+++ b/korganizer/komonthview.cpp
@@ -319,2 +319,4 @@ void MonthViewItem::paint(QPainter *p)
+ int heihei = height( listBox () );
+ int x = 1;
if (KOPrefs::instance()->mMonthViewUsesCategoryColor)
@@ -323,5 +325,5 @@ void MonthViewItem::paint(QPainter *p)
sel ? QColorGroup::Highlight : QColorGroup::Background ) );
- p->eraseRect( 0, 0, listBox()->maxItemWidth(), height( listBox() ) );
+ p->eraseRect( 0, 0, listBox()->maxItemWidth(), heihei );
}
- int x = 1;
+
//int y = 3;//(height() - mRecurPixmap.height()) /2;
@@ -330,5 +332,10 @@ void MonthViewItem::paint(QPainter *p)
size = 3;
- int heihei = height( listBox () );
int y = (heihei - size -1 ) /2;
+ if ( mIncidence->calID() > 1 ) {
+ p->fillRect ( x, y-2,size,size+4, KOPrefs::instance()->defaultColor( mIncidence->calID() ) );
+ p->drawRect ( x, y-2,size,size+4);
+ x += size + 1;
+ }
+
if ( KOPrefs::instance()->mMonthShowIcons ) {
@@ -612,2 +619,3 @@ void MonthViewCell::startUpdateCell()
mAvailItemList.setAutoDelete( false );
+ clear();
}
@@ -765,2 +773,3 @@ int MonthViewCell::insertEvent(Event *event)
#endif
+
item->setMultiDay( multiday );
@@ -770,5 +779,11 @@ int MonthViewCell::insertEvent(Event *event)
} else {
- uint i;
- int pos = mdayCount;
- for ( i = mdayCount; i < count();++i ) {
+ uint i = mdayCount;
+ uint pos = mdayCount;
+ uint itcount = count();
+ if ( itcount > 1000 ) {
+ qDebug("KO: Bug in MonthViewCell::insertEvent %u ", itcount);
+ itcount = 0;
+ }
+ for ( i = pos; i < itcount;++i ) {
+ // qDebug("i %d mday %u count %d ",i,itcount,mdayCount );
QListBoxItem* it = this->item ( i );