-rw-r--r-- | libkcal/incidence.cpp | 4 | ||||
-rw-r--r-- | libkcal/incidence.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/libkcal/incidence.cpp b/libkcal/incidence.cpp index 78fa24f..9c35b1d 100644 --- a/libkcal/incidence.cpp +++ b/libkcal/incidence.cpp @@ -379,8 +379,12 @@ QStringList Incidence::categories() const QString Incidence::categoriesStr() { return mCategories.join(","); } +QString Incidence::categoriesStrWithSpace() +{ + return mCategories.join(", "); +} void Incidence::setRelatedToUid(const QString &relatedToUid) { if (mReadOnly) return; diff --git a/libkcal/incidence.h b/libkcal/incidence.h index 60070a2..327e7dd 100644 --- a/libkcal/incidence.h +++ b/libkcal/incidence.h @@ -157,8 +157,9 @@ class Incidence : public IncidenceBase /** return categories in a list */ QStringList categories() const; /** return categories as a comma separated string */ QString categoriesStr(); + QString categoriesStrWithSpace(); /** point at some other event to which the event relates. This function should * only be used when constructing a calendar before the related Event * exists. */ |