-rw-r--r-- | korganizer/koagendaview.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/korganizer/koagendaview.cpp b/korganizer/koagendaview.cpp index 1320a2e..b2b136a 100644 --- a/korganizer/koagendaview.cpp +++ b/korganizer/koagendaview.cpp @@ -583,3 +583,3 @@ void KOAgendaView::addToCalSlot(Incidence * inc, Incidence * incOld ) if ( incOld ) { - if ( incOld->type() == "Todo" ) + if ( incOld->typeID() == todoID ) emit todoMoved((Todo*)incOld, KOGlobals::EVENTEDITED ); @@ -969,3 +969,3 @@ void KOAgendaView::updateEventDates(KOAgendaItem *item, int type) // qDebug("MOVE "); - if ( item->incidence()->type() == "Event" ) { + if ( item->incidence()->typeID() == eventID ) { startDt =item->incidence()->dtStart(); @@ -977,3 +977,3 @@ void KOAgendaView::updateEventDates(KOAgendaItem *item, int type) - if ( item->incidence()->type()=="Todo" && item->mLastMoveXPos > 0 ) { + if ( item->incidence()->typeID()== todoID && item->mLastMoveXPos > 0 ) { startDate = mSelectedDates[item->mLastMoveXPos]; @@ -993,3 +993,3 @@ void KOAgendaView::updateEventDates(KOAgendaItem *item, int type) startDt.setTime(mAgenda->gyToTime(item->cellYTop())); - if ( item->incidence()->type() == "Event" ) { + if ( item->incidence()->typeID() == eventID ) { if ( type == KOAgenda::MOVE ) { @@ -1023,6 +1023,6 @@ void KOAgendaView::updateEventDates(KOAgendaItem *item, int type) } - if ( item->incidence()->type() == "Event" ) { + if ( item->incidence()->typeID() == eventID ) { item->incidence()->setDtStart(startDt); (static_cast<Event*>(item->incidence()))->setDtEnd(endDt); - } else if ( item->incidence()->type() == "Todo" ) { + } else if ( item->incidence()->typeID() == todoID ) { Todo* to = static_cast<Todo*>(item->incidence()); @@ -1040,3 +1040,3 @@ void KOAgendaView::updateEventDates(KOAgendaItem *item, int type) //item->updateItem(); - if ( item->incidence()->type() == "Todo" ) { + if ( item->incidence()->typeID() == todoID ) { emit todoMoved((Todo*)item->incidence(), KOGlobals::EVENTEDITED ); |