diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-01-21 11:46:46 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-01-21 11:46:46 +0100 |
commit | 42d34555397dd62399233fac1fbfa216c255ef68 (patch) | |
tree | be2a6cd0442915bbc39243d8423d717c8727fa25 /framework/mail/folderlistmodel.cpp | |
parent | bf96cfa0d75d256e036c76ec64f0f456014f2739 (diff) | |
download | kube-42d34555397dd62399233fac1fbfa216c255ef68.tar.gz kube-42d34555397dd62399233fac1fbfa216c255ef68.zip |
Akonadi2 -> Sink
Diffstat (limited to 'framework/mail/folderlistmodel.cpp')
-rw-r--r-- | framework/mail/folderlistmodel.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/framework/mail/folderlistmodel.cpp b/framework/mail/folderlistmodel.cpp index 204dfdbf..645ecc30 100644 --- a/framework/mail/folderlistmodel.cpp +++ b/framework/mail/folderlistmodel.cpp | |||
@@ -19,17 +19,17 @@ | |||
19 | */ | 19 | */ |
20 | 20 | ||
21 | #include "folderlistmodel.h" | 21 | #include "folderlistmodel.h" |
22 | #include <akonadi2common/clientapi.h> | 22 | #include <sinkcommon/clientapi.h> |
23 | #include <akonadi2common/applicationdomaintype.h> | 23 | #include <sinkcommon/applicationdomaintype.h> |
24 | 24 | ||
25 | FolderListModel::FolderListModel(QObject *parent) : QIdentityProxyModel() | 25 | FolderListModel::FolderListModel(QObject *parent) : QIdentityProxyModel() |
26 | { | 26 | { |
27 | Akonadi2::Query query; | 27 | Sink::Query query; |
28 | query.syncOnDemand = false; | 28 | query.syncOnDemand = false; |
29 | query.processAll = false; | 29 | query.processAll = false; |
30 | query.liveQuery = true; | 30 | query.liveQuery = true; |
31 | query.requestedProperties << "name" << "icon"; | 31 | query.requestedProperties << "name" << "icon"; |
32 | mModel = Akonadi2::Store::loadModel<Akonadi2::ApplicationDomain::Folder>(query); | 32 | mModel = Sink::Store::loadModel<Sink::ApplicationDomain::Folder>(query); |
33 | setSourceModel(mModel.data()); | 33 | setSourceModel(mModel.data()); |
34 | } | 34 | } |
35 | 35 | ||
@@ -59,9 +59,9 @@ QVariant FolderListModel::data(const QModelIndex &idx, int role) const | |||
59 | case Icon: | 59 | case Icon: |
60 | return srcIdx.sibling(srcIdx.row(), 1).data(Qt::DisplayRole).toString(); | 60 | return srcIdx.sibling(srcIdx.row(), 1).data(Qt::DisplayRole).toString(); |
61 | case Id: | 61 | case Id: |
62 | return srcIdx.data(Akonadi2::Store::DomainObjectBaseRole).value<Akonadi2::ApplicationDomain::ApplicationDomainType::Ptr>()->identifier(); | 62 | return srcIdx.data(Sink::Store::DomainObjectBaseRole).value<Sink::ApplicationDomain::ApplicationDomainType::Ptr>()->identifier(); |
63 | case DomainObject: | 63 | case DomainObject: |
64 | return srcIdx.data(Akonadi2::Store::DomainObjectRole); | 64 | return srcIdx.data(Sink::Store::DomainObjectRole); |
65 | } | 65 | } |
66 | return QIdentityProxyModel::data(idx, role); | 66 | return QIdentityProxyModel::data(idx, role); |
67 | } | 67 | } |