summaryrefslogtreecommitdiffstats
path: root/framework/settings/resourcelistmodel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'framework/settings/resourcelistmodel.cpp')
-rw-r--r--framework/settings/resourcelistmodel.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/framework/settings/resourcelistmodel.cpp b/framework/settings/resourcelistmodel.cpp
index ebeaac32..ae1ffc15 100644
--- a/framework/settings/resourcelistmodel.cpp
+++ b/framework/settings/resourcelistmodel.cpp
@@ -1,15 +1,15 @@
1#include "resourcelistmodel.h" 1#include "resourcelistmodel.h"
2 2
3#include <akonadi2common/clientapi.h> 3#include <sinkcommon/clientapi.h>
4 4
5ResourceListModel::ResourceListModel(QObject *parent) : QIdentityProxyModel() 5ResourceListModel::ResourceListModel(QObject *parent) : QIdentityProxyModel()
6{ 6{
7 Akonadi2::Query query; 7 Sink::Query query;
8 query.syncOnDemand = false; 8 query.syncOnDemand = false;
9 query.processAll = false; 9 query.processAll = false;
10 query.liveQuery = true; 10 query.liveQuery = true;
11 query.requestedProperties << "type"; 11 query.requestedProperties << "type";
12 m_model = Akonadi2::Store::loadModel<Akonadi2::ApplicationDomain::AkonadiResource>(query); 12 m_model = Sink::Store::loadModel<Sink::ApplicationDomain::SinkResource>(query);
13} 13}
14 14
15ResourceListModel::~ResourceListModel() 15ResourceListModel::~ResourceListModel()
@@ -32,7 +32,7 @@ QVariant ResourceListModel::data(const QModelIndex& index, int role) const
32 auto srcIdx = mapToSource(index); 32 auto srcIdx = mapToSource(index);
33 switch (role) { 33 switch (role) {
34 case Id: 34 case Id:
35 return srcIdx.data(Akonadi2::Store::DomainObjectBaseRole).value<Akonadi2::ApplicationDomain::ApplicationDomainType::Ptr>()->identifier(); 35 return srcIdx.data(Sink::Store::DomainObjectBaseRole).value<Sink::ApplicationDomain::ApplicationDomainType::Ptr>()->identifier();
36 case Type: 36 case Type:
37 return srcIdx.sibling(srcIdx.row(), 0).data(Qt::DisplayRole).toString(); 37 return srcIdx.sibling(srcIdx.row(), 0).data(Qt::DisplayRole).toString();
38 } 38 }