summaryrefslogtreecommitdiffstats
path: root/framework/settings/resourcelistmodel.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2016-01-21 11:46:46 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2016-01-21 11:46:46 +0100
commit42d34555397dd62399233fac1fbfa216c255ef68 (patch)
treebe2a6cd0442915bbc39243d8423d717c8727fa25 /framework/settings/resourcelistmodel.cpp
parentbf96cfa0d75d256e036c76ec64f0f456014f2739 (diff)
downloadkube-42d34555397dd62399233fac1fbfa216c255ef68.tar.gz
kube-42d34555397dd62399233fac1fbfa216c255ef68.zip
Akonadi2 -> Sink
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 }