-rw-r--r-- | korganizer/koagendaview.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/korganizer/koagendaview.cpp b/korganizer/koagendaview.cpp index 947bb66..3aae076 100644 --- a/korganizer/koagendaview.cpp +++ b/korganizer/koagendaview.cpp | |||
@@ -1001,26 +1001,27 @@ void KOAgendaView::fillAgenda() | |||
1001 | // kdDebug() << "KOAgendaView::fillAgenda(): " << currentDate.toString() | 1001 | // kdDebug() << "KOAgendaView::fillAgenda(): " << currentDate.toString() |
1002 | // << endl; | 1002 | // << endl; |
1003 | 1003 | ||
1004 | dayEvents = calendar()->events(currentDate,true); | 1004 | dayEvents = calendar()->events(currentDate,true); |
1005 | 1005 | ||
1006 | // Default values, which can never be reached | 1006 | // Default values, which can never be reached |
1007 | mMinY[curCol] = mAgenda->timeToY(QTime(23,59)) + 1; | 1007 | mMinY[curCol] = mAgenda->timeToY(QTime(23,59)) + 1; |
1008 | mMaxY[curCol] = mAgenda->timeToY(QTime(0,0)) - 1; | 1008 | mMaxY[curCol] = mAgenda->timeToY(QTime(0,0)) - 1; |
1009 | 1009 | ||
1010 | unsigned int numEvent; | 1010 | unsigned int numEvent; |
1011 | for(numEvent=0;numEvent<dayEvents.count();++numEvent) { | 1011 | for(numEvent=0;numEvent<dayEvents.count();++numEvent) { |
1012 | Event *event = dayEvents.at(numEvent); | 1012 | Event *event = dayEvents.at(numEvent); |
1013 | if ( !KOPrefs::instance()->mShowSyncEvents && event->uid().left(15) == QString("last-syncEvent-") ) | 1013 | if ( !KOPrefs::instance()->mShowSyncEvents && event->uid().left(2) == QString("la") ) |
1014 | continue; | 1014 | if ( event->uid().left(15) == QString("last-syncEvent-") ) |
1015 | continue; | ||
1015 | // kdDebug() << " Event: " << event->summary() << endl; | 1016 | // kdDebug() << " Event: " << event->summary() << endl; |
1016 | 1017 | ||
1017 | int beginX = currentDate.daysTo(event->dtStart().date()) + curCol; | 1018 | int beginX = currentDate.daysTo(event->dtStart().date()) + curCol; |
1018 | int endX = currentDate.daysTo(event->dtEnd().date()) + curCol; | 1019 | int endX = currentDate.daysTo(event->dtEnd().date()) + curCol; |
1019 | 1020 | ||
1020 | // kdDebug() << " beginX: " << beginX << " endX: " << endX << endl; | 1021 | // kdDebug() << " beginX: " << beginX << " endX: " << endX << endl; |
1021 | 1022 | ||
1022 | if (event->doesFloat()) { | 1023 | if (event->doesFloat()) { |
1023 | if (event->recurrence()->doesRecur()) { | 1024 | if (event->recurrence()->doesRecur()) { |
1024 | mAllDayAgenda->insertAllDayItem(event,currentDate,curCol,curCol); | 1025 | mAllDayAgenda->insertAllDayItem(event,currentDate,curCol,curCol); |
1025 | } else { | 1026 | } else { |
1026 | if (beginX <= 0 && curCol == 0) { | 1027 | if (beginX <= 0 && curCol == 0) { |