summaryrefslogtreecommitdiffabout
authorzautrix <zautrix>2005-07-10 18:45:37 (UTC)
committer zautrix <zautrix>2005-07-10 18:45:37 (UTC)
commitb3b9d2e1b0435cd8943922759c8091d2bd5595ab (patch) (side-by-side diff)
tree7fd43053310d964e1f8260b0c43c7ec6f0f74464
parentd6fdd08218996b5dc528eecd0b2170a4afce877d (diff)
downloadkdepimpi-b3b9d2e1b0435cd8943922759c8091d2bd5595ab.zip
kdepimpi-b3b9d2e1b0435cd8943922759c8091d2bd5595ab.tar.gz
kdepimpi-b3b9d2e1b0435cd8943922759c8091d2bd5595ab.tar.bz2
rec agenda fix
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--korganizer/koagendaview.cpp17
1 files changed, 16 insertions, 1 deletions
diff --git a/korganizer/koagendaview.cpp b/korganizer/koagendaview.cpp
index 131a345..a01323a 100644
--- a/korganizer/koagendaview.cpp
+++ b/korganizer/koagendaview.cpp
@@ -1175,4 +1175,5 @@ void KOAgendaView::fillAgenda()
DateList::ConstIterator dit;
int curCol = 0;
+ int maxCol = mSelectedDates.count()-1;
for( dit = mSelectedDates.begin(); dit != mSelectedDates.end(); ++dit ) {
QDate currentDate = *dit;
@@ -1187,4 +1188,5 @@ void KOAgendaView::fillAgenda()
unsigned int numEvent;
+ //qDebug("+++++NUMEVENT %d", dayEvents.count());
for(numEvent=0;numEvent<dayEvents.count();++numEvent) {
Event *event = dayEvents.at(numEvent);
@@ -1208,5 +1210,17 @@ void KOAgendaView::fillAgenda()
mAllDayAgenda->insertAllDayItem(event,currentDate,beginX,endX);
} else {
- //qDebug("days %d %s",endX , currentDate.toString().latin1());
+ //qDebug("days endX %d curCol %d max Col %d %s",endX ,curCol, maxCol, currentDate.toString().latin1());
+ if ( curCol == maxCol && maxCol+1 < endX ) {
+ int i;
+ for ( i = 1; i< endX; ++i ) {
+ if ( event->recursOn( currentDate.addDays( -i ) ) )
+ break;
+ }
+ if ( i > maxCol ) {
+ mAllDayAgenda->insertAllDayItem(event,currentDate,0,curCol);
+ //qDebug("BINGO ");
+ }
+
+ } else {
QDate dateit = currentDate.addDays( -endX );
if ( event->recursOn( dateit ) ) {
@@ -1217,4 +1231,5 @@ void KOAgendaView::fillAgenda()
}
}
+ }
} else {
mAllDayAgenda->insertAllDayItem(event,currentDate,curCol,curCol);