Changeset View
Changeset View
Standalone View
Standalone View
kcalcore/incidence.cpp
Show First 20 Lines • Show All 959 Lines • ▼ Show 20 Lines | |||||
bool Incidence::locationIsRich() const | bool Incidence::locationIsRich() const | ||||
{ | { | ||||
return d->mLocationIsRich; | return d->mLocationIsRich; | ||||
} | } | ||||
void Incidence::setSchedulingID(const QString &sid, const QString &uid) | void Incidence::setSchedulingID(const QString &sid, const QString &uid) | ||||
{ | { | ||||
d->mSchedulingID = sid; | |||||
if (!uid.isEmpty()) { | if (!uid.isEmpty()) { | ||||
setUid(uid); | setUid(uid); | ||||
} | } | ||||
if (sid != d->mSchedulingID) { | |||||
d->mSchedulingID = sid; | |||||
setFieldDirty(FieldSchedulingId); | setFieldDirty(FieldSchedulingId); | ||||
} | } | ||||
} | |||||
QString Incidence::schedulingID() const | QString Incidence::schedulingID() const | ||||
{ | { | ||||
if (d->mSchedulingID.isNull()) { | if (d->mSchedulingID.isNull()) { | ||||
// Nothing set, so use the normal uid | // Nothing set, so use the normal uid | ||||
return uid(); | return uid(); | ||||
} | } | ||||
return d->mSchedulingID; | return d->mSchedulingID; | ||||
▲ Show 20 Lines • Show All 210 Lines • Show Last 20 Lines |