diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-11-14 18:04:06 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-11-14 18:04:06 +0100 |
commit | e86e1f06d2b730c14c90d4c78719a47f3e5350fc (patch) | |
tree | 7e6337a45a25ad5ac7ba581ee292f3bd4b68a97f /common/queryrunner.cpp | |
parent | 175a49d623a5e37c1c20c80ed7f2077222f3c593 (diff) | |
download | sink-e86e1f06d2b730c14c90d4c78719a47f3e5350fc.tar.gz sink-e86e1f06d2b730c14c90d4c78719a47f3e5350fc.zip |
Hide Query::parentProperty
Diffstat (limited to 'common/queryrunner.cpp')
-rw-r--r-- | common/queryrunner.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/common/queryrunner.cpp b/common/queryrunner.cpp index b6c9aee..cf56268 100644 --- a/common/queryrunner.cpp +++ b/common/queryrunner.cpp | |||
@@ -221,13 +221,13 @@ QPair<qint64, qint64> QueryWorker<DomainType>::executeInitialQuery( | |||
221 | time.start(); | 221 | time.start(); |
222 | 222 | ||
223 | auto modifiedQuery = query; | 223 | auto modifiedQuery = query; |
224 | if (!query.parentProperty.isEmpty()) { | 224 | if (!query.parentProperty().isEmpty()) { |
225 | if (parent) { | 225 | if (parent) { |
226 | SinkTrace() << "Running initial query for parent:" << parent->identifier(); | 226 | SinkTrace() << "Running initial query for parent:" << parent->identifier(); |
227 | modifiedQuery.filter(query.parentProperty, Query::Comparator(parent->identifier())); | 227 | modifiedQuery.filter(query.parentProperty(), Query::Comparator(parent->identifier())); |
228 | } else { | 228 | } else { |
229 | SinkTrace() << "Running initial query for toplevel"; | 229 | SinkTrace() << "Running initial query for toplevel"; |
230 | modifiedQuery.filter(query.parentProperty, Query::Comparator(QVariant())); | 230 | modifiedQuery.filter(query.parentProperty(), Query::Comparator(QVariant())); |
231 | } | 231 | } |
232 | } | 232 | } |
233 | 233 | ||