summaryrefslogtreecommitdiffstats
path: root/framework/domain
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-03-14 17:03:47 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-03-14 17:03:47 +0100
commitcd82ff9946b82266c65777e141ad58916f05f4ca (patch)
tree4f77bb86adac036b90206dfa4548d696d91363b7 /framework/domain
parent68d3180e565e8d5021dcf86cb1b05d5c0b1126bd (diff)
downloadkube-cd82ff9946b82266c65777e141ad58916f05f4ca.tar.gz
kube-cd82ff9946b82266c65777e141ad58916f05f4ca.zip
Request all used properties
Diffstat (limited to 'framework/domain')
-rw-r--r--framework/domain/identitiesmodel.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/framework/domain/identitiesmodel.cpp b/framework/domain/identitiesmodel.cpp
index 49c08005..0d97fc6a 100644
--- a/framework/domain/identitiesmodel.cpp
+++ b/framework/domain/identitiesmodel.cpp
@@ -84,11 +84,12 @@ QVariant IdentitiesModel::data(const QModelIndex &idx, int role) const
84 84
85void IdentitiesModel::runQuery(const Sink::Query &query) 85void IdentitiesModel::runQuery(const Sink::Query &query)
86{ 86{
87 mModel = Sink::Store::loadModel<Sink::ApplicationDomain::Identity>(query); 87 using namespace Sink::ApplicationDomain;
88 mModel = Sink::Store::loadModel<Identity>(query);
88 setSourceModel(mModel.data()); 89 setSourceModel(mModel.data());
89 90
90 Sink::Store::fetchAll<Sink::ApplicationDomain::SinkAccount>(Sink::Query()) 91 Sink::Store::fetchAll<SinkAccount>(Sink::Query{}.request<SinkAccount::Icon>().request<SinkAccount::Name>())
91 .then([this](const QList<Sink::ApplicationDomain::SinkAccount::Ptr> &accounts) { 92 .then([this](const QList<SinkAccount::Ptr> &accounts) {
92 for (const auto &account : accounts) { 93 for (const auto &account : accounts) {
93 mAccountNames.insert(account->identifier(), account->getName()); 94 mAccountNames.insert(account->identifier(), account->getName());
94 mAccountIcons.insert(account->identifier(), account->getIcon()); 95 mAccountIcons.insert(account->identifier(), account->getIcon());