summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2015-12-08 14:04:03 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2015-12-08 14:04:03 +0100
commitd4b1dd9899a4ae5651967cdcd00c1edf10cc9753 (patch)
treea4c03cbb465411430d4ebf3ede729fa45700fce3
parent3257ee0e6e0d9c3e0ad7d016e2bf9de098535894 (diff)
downloadsink-d4b1dd9899a4ae5651967cdcd00c1edf10cc9753.tar.gz
sink-d4b1dd9899a4ae5651967cdcd00c1edf10cc9753.zip
Use a list instead of a set for requested properties
We want to maintain the order since we use the list in the model result
-rw-r--r--common/clientapi.cpp2
-rw-r--r--common/query.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/common/clientapi.cpp b/common/clientapi.cpp
index 3dc9370..255ea21 100644
--- a/common/clientapi.cpp
+++ b/common/clientapi.cpp
@@ -80,7 +80,7 @@ QList<QByteArray> Store::getResources(const QList<QByteArray> &resourceFilter, c
80template <class DomainType> 80template <class DomainType>
81QSharedPointer<QAbstractItemModel> Store::loadModel(Query query) 81QSharedPointer<QAbstractItemModel> Store::loadModel(Query query)
82{ 82{
83 auto model = QSharedPointer<ModelResult<DomainType, typename DomainType::Ptr> >::create(query, query.requestedProperties.toList()); 83 auto model = QSharedPointer<ModelResult<DomainType, typename DomainType::Ptr> >::create(query, query.requestedProperties);
84 84
85 //* Client defines lifetime of model 85 //* Client defines lifetime of model
86 //* The model lifetime defines the duration of live-queries 86 //* The model lifetime defines the duration of live-queries
diff --git a/common/query.h b/common/query.h
index 5313fa9..0d0f382 100644
--- a/common/query.h
+++ b/common/query.h
@@ -52,7 +52,7 @@ public:
52 //Filters to apply 52 //Filters to apply
53 QHash<QByteArray, QVariant> propertyFilter; 53 QHash<QByteArray, QVariant> propertyFilter;
54 //Properties to retrieve 54 //Properties to retrieve
55 QSet<QByteArray> requestedProperties; 55 QByteArrayList requestedProperties;
56 QByteArray parentProperty; 56 QByteArray parentProperty;
57 bool syncOnDemand; 57 bool syncOnDemand;
58 bool processAll; 58 bool processAll;