diff options
Diffstat (limited to 'common/modelresult.cpp')
-rw-r--r-- | common/modelresult.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/common/modelresult.cpp b/common/modelresult.cpp index c7fcd49..4fd8d97 100644 --- a/common/modelresult.cpp +++ b/common/modelresult.cpp | |||
@@ -71,6 +71,10 @@ QVariant ModelResult<T, Ptr>::data(const QModelIndex &index, int role) const | |||
71 | Q_ASSERT(mEntities.contains(index.internalId())); | 71 | Q_ASSERT(mEntities.contains(index.internalId())); |
72 | return QVariant::fromValue(mEntities.value(index.internalId())); | 72 | return QVariant::fromValue(mEntities.value(index.internalId())); |
73 | } | 73 | } |
74 | if (role == DomainObjectBaseRole) { | ||
75 | Q_ASSERT(mEntities.contains(index.internalId())); | ||
76 | return QVariant::fromValue(mEntities.value(index.internalId()). template staticCast<Akonadi2::ApplicationDomain::ApplicationDomainType>()); | ||
77 | } | ||
74 | if (role == ChildrenFetchedRole) { | 78 | if (role == ChildrenFetchedRole) { |
75 | return childrenFetched(index); | 79 | return childrenFetched(index); |
76 | } | 80 | } |