Diffstat (limited to 'korganizer/outgoingdialog.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | korganizer/outgoingdialog.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/korganizer/outgoingdialog.cpp b/korganizer/outgoingdialog.cpp index 0fc90c4..7253c8e 100644 --- a/korganizer/outgoingdialog.cpp +++ b/korganizer/outgoingdialog.cpp @@ -57,3 +57,3 @@ ScheduleItemOut::ScheduleItemOut(QListView *parent,IncidenceBase *ev, //Set the summary - if(ev->type() != "FreeBusy") { + if(ev->typeID() != freebusyID ) { Incidence *incidence = static_cast<Incidence *>(ev); @@ -66,3 +66,3 @@ ScheduleItemOut::ScheduleItemOut(QListView *parent,IncidenceBase *ev, //If the object is an event - if(ev->type()=="Event") { + if(ev->typeID()== eventID ) { Event *event = static_cast<Event *>(ev); @@ -90,3 +90,3 @@ ScheduleItemOut::ScheduleItemOut(QListView *parent,IncidenceBase *ev, //If the object is an Todo - if(ev->type()=="Todo") { + if(ev->typeID() == todoID ) { Todo *event = static_cast<Todo *>(ev); @@ -108,3 +108,3 @@ ScheduleItemOut::ScheduleItemOut(QListView *parent,IncidenceBase *ev, //If the object is a freebusy object - if(ev->type() == "FreeBusy") { + if(ev->typeID() == freebusyID ) { FreeBusy *freebusy = static_cast<FreeBusy *>(ev); @@ -243,6 +243,6 @@ void OutgoingDialog::showEvent(QListViewItem *qitem) Todo *todo = 0; - if ( item->event()->type()=="Event" ) { + if ( item->event()->typeID() == eventID ) { event = static_cast<Event *>(item->event()); } - if ( item->event()->type()=="Todo" ) { + if ( item->event()->typeID() == todoID ) { todo = static_cast<Todo *>(item->event()); |