summaryrefslogtreecommitdiffstats
path: root/common/domain/propertyregistry.cpp
diff options
context:
space:
mode:
authorRémi Nicole <nicole@kolabsystems.com>2018-05-06 17:42:37 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2018-05-06 17:52:51 +0200
commit90a8d33f7c17c802730fd9b978db0e32d28a7dff (patch)
treed270feeb64815da8de3ffb544b14af362424c279 /common/domain/propertyregistry.cpp
parent3d998856895f0e82a4d0eadd398dafbe1d027e34 (diff)
downloadsink-90a8d33f7c17c802730fd9b978db0e32d28a7dff.tar.gz
sink-90a8d33f7c17c802730fd9b978db0e32d28a7dff.zip
Implement Todo entity type
Summary: Some notes: - Needed to specialize some flatbuffers related functions for serializing QStringList and int - Removed useless qWarnings in caldav test - Rename EventSynchronizer -> CalDAVSynchronizer since it also synchronizes Calendars and Todos (and more to come!) Reviewers: cmollekopf Tags: #sink Differential Revision: https://phabricator.kde.org/D12695
Diffstat (limited to 'common/domain/propertyregistry.cpp')
-rw-r--r--common/domain/propertyregistry.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/common/domain/propertyregistry.cpp b/common/domain/propertyregistry.cpp
index d929d68..00bbb1d 100644
--- a/common/domain/propertyregistry.cpp
+++ b/common/domain/propertyregistry.cpp
@@ -75,6 +75,12 @@ QVariant parseString<QList<QByteArray>>(const QString &s)
75} 75}
76 76
77template <> 77template <>
78QVariant parseString<QStringList>(const QString &s)
79{
80 return s.split(',');
81}
82
83template <>
78QVariant parseString<QDateTime>(const QString &s) 84QVariant parseString<QDateTime>(const QString &s)
79{ 85{
80 return QVariant::fromValue(QDateTime::fromString(s, Qt::ISODate)); 86 return QVariant::fromValue(QDateTime::fromString(s, Qt::ISODate));