summaryrefslogtreecommitdiffabout
Unidiff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--korganizer/koagenda.cpp22
-rw-r--r--korganizer/koagendaitem.cpp5
-rw-r--r--korganizer/koagendaview.cpp28
3 files changed, 38 insertions, 17 deletions
diff --git a/korganizer/koagenda.cpp b/korganizer/koagenda.cpp
index 148d914..18c506e 100644
--- a/korganizer/koagenda.cpp
+++ b/korganizer/koagenda.cpp
@@ -1365,2 +1365,5 @@ void KOAgenda::drawContents(QPainter* p, int cx, int cy, int cw, int ch)
1365 return; 1365 return;
1366 if ( ! mAllDayMode ) {
1367 // currently not working for
1368
1366 //qDebug("KOAgenda::drawContents "); 1369 //qDebug("KOAgenda::drawContents ");
@@ -1401,10 +1404,5 @@ void KOAgenda::drawContents(QPainter* p, int cx, int cy, int cw, int ch)
1401 } 1404 }
1402 //qDebug("btbl ");
1403 p->begin( pd ); 1405 p->begin( pd );
1404 //qDebug("end "); 1406 } else {
1405#if 0
1406 1407
1407 if ( globalFlagBlockAgenda )
1408 return;
1409 //qDebug("KOAgenda::drawContents ");
1410 if ( mCurPixWid != contentsWidth() || mCurPixHei != contentsHeight() ) 1408 if ( mCurPixWid != contentsWidth() || mCurPixHei != contentsHeight() )
@@ -1431,13 +1429,5 @@ void KOAgenda::drawContents(QPainter* p, int cx, int cy, int cw, int ch)
1431 } 1429 }
1432 //qDebug("btbl ");
1433 p->begin( pd ); 1430 p->begin( pd );
1434 //qDebug("end "); 1431 }
1435
1436
1437
1438
1439
1440
1441 1432
1442#endif
1443} 1433}
@@ -1969,3 +1959,3 @@ void KOAgenda::resizeEvent ( QResizeEvent *ev )
1969{ 1959{
1970 1960 mSelectionHeight = 0;
1971 mResizeTimer.start( 150 , true ); 1961 mResizeTimer.start( 150 , true );
diff --git a/korganizer/koagendaitem.cpp b/korganizer/koagendaitem.cpp
index c9e307f..1801d7e 100644
--- a/korganizer/koagendaitem.cpp
+++ b/korganizer/koagendaitem.cpp
@@ -551,2 +551,5 @@ void KOAgendaItem::computeText()
551 if ( mIncidence->dtStart().date().addDays(3) < mIncidence->dtEnd().date() ) { 551 if ( mIncidence->dtStart().date().addDays(3) < mIncidence->dtEnd().date() ) {
552 if ( mIncidence->doesRecur() ) {
553 mDisplayedText += " (" + mIncidence->recurrence()->recurrenceText() + ")";
554 } else {
552 mDisplayedText += ": " +KGlobal::locale()->formatDate((static_cast<Event*>(mIncidence))->dtStart().date(), true) + " - " + KGlobal::locale()->formatDate((static_cast<Event*>(mIncidence))->dtEnd().date(), true) ; 555 mDisplayedText += ": " +KGlobal::locale()->formatDate((static_cast<Event*>(mIncidence))->dtStart().date(), true) + " - " + KGlobal::locale()->formatDate((static_cast<Event*>(mIncidence))->dtEnd().date(), true) ;
@@ -554,3 +557,3 @@ void KOAgendaItem::computeText()
554 } 557 }
555 558 }
556 } 559 }
diff --git a/korganizer/koagendaview.cpp b/korganizer/koagendaview.cpp
index 76d5c4b..f53e5d5 100644
--- a/korganizer/koagendaview.cpp
+++ b/korganizer/koagendaview.cpp
@@ -1162,3 +1162,31 @@ void KOAgendaView::fillAgenda()
1162 if (event->recurrence()->doesRecur()) { 1162 if (event->recurrence()->doesRecur()) {
1163 if (event->isMultiDay() ) {
1164 endX = endX - beginX;// endX is now number of days
1165 if ( event->recursOn( currentDate ) ) {
1166 endX += curCol;
1167 beginX = curCol;
1168 mAllDayAgenda->insertAllDayItem(event,currentDate,beginX,endX);
1169 } else {
1170 //qDebug("days %d %s",endX , currentDate.toString().latin1());
1171 QDate dateit = currentDate.addDays( -endX );
1172 if ( event->recursOn( dateit ) ) {
1173 //qDebug("found %d %d %d %s", endX,curCol, curCol-endX ,dateit.toString().latin1() );
1174 if ( curCol-endX < 0 ) {
1175 mAllDayAgenda->insertAllDayItem(event,currentDate,0,curCol);
1176 }
1177 }
1178 }
1179 } else {
1163 mAllDayAgenda->insertAllDayItem(event,currentDate,curCol,curCol); 1180 mAllDayAgenda->insertAllDayItem(event,currentDate,curCol,curCol);
1181 }
1182#if 0
1183 if (beginX <= 0 && curCol == 0) {
1184 mAllDayAgenda->insertAllDayItem(event,currentDate,beginX,endX);
1185 } else if (beginX == curCol) {
1186 mAllDayAgenda->insertAllDayItem(event,currentDate,beginX,endX);
1187 } else {
1188 qDebug("skipped %d %d %d ",beginX , endX, curCol);
1189 }
1190#endif
1191 //mAllDayAgenda->insertAllDayItem(event,currentDate,curCol,curCol);
1164 } else { 1192 } else {