author | zautrix <zautrix> | 2005-06-08 10:56:24 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-06-08 10:56:24 (UTC) |
commit | 2448916479b456ca7c880427a80e8e32e95b2fba (patch) (side-by-side diff) | |
tree | 83be907f0eccb43ffc44a7f1bc07995c32760cb5 /korganizer/komonthview.cpp | |
parent | 793d117812b4da36c9c11d90cccba347cbc6e208 (diff) | |
download | kdepimpi-2448916479b456ca7c880427a80e8e32e95b2fba.zip kdepimpi-2448916479b456ca7c880427a80e8e32e95b2fba.tar.gz kdepimpi-2448916479b456ca7c880427a80e8e32e95b2fba.tar.bz2 |
more type API changes
-rw-r--r-- | korganizer/komonthview.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/korganizer/komonthview.cpp b/korganizer/komonthview.cpp index 678cab6..c868270 100644 --- a/korganizer/komonthview.cpp +++ b/korganizer/komonthview.cpp @@ -381,9 +381,9 @@ void MonthViewItem::paint(QPainter *p) x += sizeM/2 + 1; x += sizeM + 1; } - if ( mIncidence->type() == "Todo" ){ + if ( mIncidence->typeID() == todoID ){ Todo* td = ( Todo* ) mIncidence; if ( td->isCompleted() ) { int half = size/2; p->drawLine ( x, heihei/2, x +half , heihei/2 +half ) ; @@ -1942,9 +1942,9 @@ void KOMonthView::showContextMenu( Incidence *incidence ) //qDebug("KOMonthView::showContextMenu "); mNewItemMenu->popup(QCursor::pos()); } /* - if( incidence && incidence->type() == "Event" ) { + if( incidence && incidence->typeID() == eventID ) { Event *event = static_cast<Event *>(incidence); mContextMenu->showEventPopup(event); } else { kdDebug() << "MonthView::showContextMenu(): cast failed." << endl; |