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 'libkcal/alarm.cpp') diff --git a/libkcal/alarm.cpp b/libkcal/alarm.cpp index 6de1566..0afa0a7 100644 --- a/libkcal/alarm.cpp +++ b/libkcal/alarm.cpp @@ -338,7 +338,7 @@ void Alarm::setTime(const QDateTime &alarmTime) int Alarm::offset() { if ( hasTime() ) { - if (mParent->type()=="Todo") { + if (mParent->typeID() == todoID ) { Todo *t = static_cast(mParent); return t->dtDue().secsTo( mAlarmTime ) ; } else @@ -381,7 +381,7 @@ QDateTime Alarm::time() const return mAlarmTime; else { - if (mParent->type()=="Todo") { + if (mParent->typeID() == todoID ) { Todo *t = static_cast(mParent); return mOffset.end( t->dtDue() ); } else if (mEndOffset) { -- cgit v0.9.0.2