-rw-r--r-- | korganizer/koagendaview.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/korganizer/koagendaview.cpp b/korganizer/koagendaview.cpp index 20a5b74..76d5c4b 100644 --- a/korganizer/koagendaview.cpp +++ b/korganizer/koagendaview.cpp | |||
@@ -943,26 +943,33 @@ void KOAgendaView::updateConfig() | |||
943 | 943 | ||
944 | //setHolidayMasks(); | 944 | //setHolidayMasks(); |
945 | 945 | ||
946 | //createDayLabels(); called by via updateView(); | 946 | //createDayLabels(); called by via updateView(); |
947 | mEventIndicatorTop->setXOffset(mTimeLabels->width() + mAgenda->frameWidth()); | 947 | mEventIndicatorTop->setXOffset(mTimeLabels->width() + mAgenda->frameWidth()); |
948 | updateView(); | 948 | updateView(); |
949 | mAgenda->restorePosition(); | 949 | mAgenda->restorePosition(); |
950 | } | 950 | } |
951 | 951 | ||
952 | 952 | ||
953 | void KOAgendaView::updateEventDates(KOAgendaItem *item, int type) | 953 | void KOAgendaView::updateEventDates(KOAgendaItem *item, int type) |
954 | { | 954 | { |
955 | // kdDebug() << "KOAgendaView::updateEventDates(): " << item->text() << endl; | 955 | |
956 | //qDebug("KOAgendaView::updateEventDates "); | 956 | |
957 | int xxx = item->cellX(); | ||
958 | //qDebug("KOAgendaView::updateEventDates %d %d %d %d %d", xxx, mMinY.at(xxx),mMaxY.at(xxx),item->cellYTop(),item->cellYBottom() ); | ||
959 | if ( mMinY.at(xxx) > item->cellYTop() ) | ||
960 | mMinY.at(xxx) = item->cellYTop(); | ||
961 | if ( mMaxY.at(xxx) < item->cellYBottom() ) | ||
962 | mMaxY.at(xxx) = item->cellYBottom(); | ||
963 | |||
957 | QDateTime startDt,endDt; | 964 | QDateTime startDt,endDt; |
958 | QDate startDate; | 965 | QDate startDate; |
959 | int lenInSecs; | 966 | int lenInSecs; |
960 | // if ( type == KOAgenda::RESIZETOP ) | 967 | // if ( type == KOAgenda::RESIZETOP ) |
961 | // qDebug("RESIZETOP "); | 968 | // qDebug("RESIZETOP "); |
962 | // if ( type == KOAgenda::RESIZEBOTTOM ) | 969 | // if ( type == KOAgenda::RESIZEBOTTOM ) |
963 | // qDebug("RESIZEBOTTOM "); | 970 | // qDebug("RESIZEBOTTOM "); |
964 | // if ( type == KOAgenda::MOVE ) | 971 | // if ( type == KOAgenda::MOVE ) |
965 | // qDebug("MOVE "); | 972 | // qDebug("MOVE "); |
966 | if ( item->incidence()->type() == "Event" ) { | 973 | if ( item->incidence()->type() == "Event" ) { |
967 | startDt =item->incidence()->dtStart(); | 974 | startDt =item->incidence()->dtStart(); |
968 | endDt = item->incidence()->dtEnd(); | 975 | endDt = item->incidence()->dtEnd(); |