diff options
Diffstat (limited to 'common/domainadaptor.cpp')
-rw-r--r-- | common/domainadaptor.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/common/domainadaptor.cpp b/common/domainadaptor.cpp index 5b7c427..5e6f062 100644 --- a/common/domainadaptor.cpp +++ b/common/domainadaptor.cpp | |||
@@ -20,16 +20,16 @@ | |||
20 | #include "domainadaptor.h" | 20 | #include "domainadaptor.h" |
21 | 21 | ||
22 | template <> | 22 | template <> |
23 | QSharedPointer<PropertyMapper<Akonadi2::ApplicationDomain::Buffer::Event> > initializePropertyMapper<Akonadi2::ApplicationDomain::Buffer::Event>() | 23 | QSharedPointer<ReadPropertyMapper<Akonadi2::ApplicationDomain::Buffer::Event> > initializeReadPropertyMapper<Akonadi2::ApplicationDomain::Buffer::Event>() |
24 | { | 24 | { |
25 | auto propertyMapper = QSharedPointer<PropertyMapper<Akonadi2::ApplicationDomain::Buffer::Event> >::create(); | 25 | auto propertyMapper = QSharedPointer<ReadPropertyMapper<Akonadi2::ApplicationDomain::Buffer::Event> >::create(); |
26 | propertyMapper->mReadAccessors.insert("summary", [](Akonadi2::ApplicationDomain::Buffer::Event const *buffer) -> QVariant { | 26 | propertyMapper->addMapping("summary", [](Akonadi2::ApplicationDomain::Buffer::Event const *buffer) -> QVariant { |
27 | if (buffer->summary()) { | 27 | if (buffer->summary()) { |
28 | return QString::fromStdString(buffer->summary()->c_str()); | 28 | return QString::fromStdString(buffer->summary()->c_str()); |
29 | } | 29 | } |
30 | return QVariant(); | 30 | return QVariant(); |
31 | }); | 31 | }); |
32 | propertyMapper->mReadAccessors.insert("uid", [](Akonadi2::ApplicationDomain::Buffer::Event const *buffer) -> QVariant { | 32 | propertyMapper->addMapping("uid", [](Akonadi2::ApplicationDomain::Buffer::Event const *buffer) -> QVariant { |
33 | if (buffer->uid()) { | 33 | if (buffer->uid()) { |
34 | return QString::fromStdString(buffer->uid()->c_str()); | 34 | return QString::fromStdString(buffer->uid()->c_str()); |
35 | } | 35 | } |