From 2448916479b456ca7c880427a80e8e32e95b2fba Mon Sep 17 00:00:00 2001 From: zautrix Date: Wed, 08 Jun 2005 10:56:24 +0000 Subject: more type API changes --- (limited to 'korganizer/koeventviewerdialog.cpp') diff --git a/korganizer/koeventviewerdialog.cpp b/korganizer/koeventviewerdialog.cpp index e5ff8af..02f13c7 100644 --- a/korganizer/koeventviewerdialog.cpp +++ b/korganizer/koeventviewerdialog.cpp @@ -148,20 +148,20 @@ void KOEventViewerDialog::setEvent(Event *event) } void KOEventViewerDialog::setIncidence(Incidence *in ) { - if ( in->type() == "Event" ) + if ( in->typeID() == eventID ) setEvent( (Event*) in ); - else if ( in->type() =="Todo" ) + else if ( in->typeID() == todoID ) setTodo( (Todo*) in ); - else if ( in->type() =="Journal" ) + else if ( in->typeID() == journalID ) setJournal( (Journal*) in ); } void KOEventViewerDialog::addIncidence(Incidence *in) { - if ( in->type() == "Event" ) + if ( in->typeID() == eventID ) addEvent( (Event*) in ); - else if ( in->type() =="Todo" ) + else if ( in->typeID() == todoID ) mEventViewer->setTodo( (Todo*) in, false ); - else if ( in->type() =="Journal" ) + else if ( in->typeID() == journalID ) mEventViewer->setJournal( (Journal*) in, false ); if ( mSyncMode ) { findButton( User1 )->setFocus(); -- cgit v0.9.0.2