diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-11-19 17:37:39 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-11-19 17:37:39 +0100 |
commit | 8d5684292ef92f32487ba32df716a00c4a0841b5 (patch) | |
tree | 1af55d3216f79175a55c1890d75cef2ae1f041d0 /common/clientapi.h | |
parent | ef205affdb73bfdbef5830996e6336e583660fbc (diff) | |
download | sink-8d5684292ef92f32487ba32df716a00c4a0841b5.tar.gz sink-8d5684292ef92f32487ba32df716a00c4a0841b5.zip |
Loading data with the new model for the test client
Diffstat (limited to 'common/clientapi.h')
-rw-r--r-- | common/clientapi.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/clientapi.h b/common/clientapi.h index 179bb5c..6b11ad5 100644 --- a/common/clientapi.h +++ b/common/clientapi.h | |||
@@ -110,7 +110,7 @@ public: | |||
110 | template <class DomainType> | 110 | template <class DomainType> |
111 | static QSharedPointer<QAbstractItemModel> loadModel(Query query) | 111 | static QSharedPointer<QAbstractItemModel> loadModel(Query query) |
112 | { | 112 | { |
113 | auto model = QSharedPointer<ModelResult<DomainType, typename DomainType::Ptr> >::create(query, QList<QByteArray>() << "summary" << "uid"); | 113 | auto model = QSharedPointer<ModelResult<DomainType, typename DomainType::Ptr> >::create(query, query.requestedProperties.toList()); |
114 | auto resultProvider = std::make_shared<ModelResultProvider<DomainType, typename DomainType::Ptr> >(model); | 114 | auto resultProvider = std::make_shared<ModelResultProvider<DomainType, typename DomainType::Ptr> >(model); |
115 | //Keep the resultprovider alive for as long as the model lives | 115 | //Keep the resultprovider alive for as long as the model lives |
116 | model->setProperty("resultProvider", QVariant::fromValue(std::shared_ptr<void>(resultProvider))); | 116 | model->setProperty("resultProvider", QVariant::fromValue(std::shared_ptr<void>(resultProvider))); |