From d4b1dd9899a4ae5651967cdcd00c1edf10cc9753 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Tue, 8 Dec 2015 14:04:03 +0100 Subject: 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 --- common/clientapi.cpp | 2 +- common/query.h | 2 +- 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 Store::getResources(const QList &resourceFilter, c template QSharedPointer Store::loadModel(Query query) { - auto model = QSharedPointer >::create(query, query.requestedProperties.toList()); + auto model = QSharedPointer >::create(query, query.requestedProperties); //* Client defines lifetime of model //* 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: //Filters to apply QHash propertyFilter; //Properties to retrieve - QSet requestedProperties; + QByteArrayList requestedProperties; QByteArray parentProperty; bool syncOnDemand; bool processAll; -- cgit v1.2.3