summaryrefslogtreecommitdiffstats
path: root/common/test.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2016-11-14 18:04:06 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2016-11-14 18:04:06 +0100
commite86e1f06d2b730c14c90d4c78719a47f3e5350fc (patch)
tree7e6337a45a25ad5ac7ba581ee292f3bd4b68a97f /common/test.cpp
parent175a49d623a5e37c1c20c80ed7f2077222f3c593 (diff)
downloadsink-e86e1f06d2b730c14c90d4c78719a47f3e5350fc.tar.gz
sink-e86e1f06d2b730c14c90d4c78719a47f3e5350fc.zip
Hide Query::parentProperty
Diffstat (limited to 'common/test.cpp')
-rw-r--r--common/test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/test.cpp b/common/test.cpp
index cf2e8a3..1a0d9bc 100644
--- a/common/test.cpp
+++ b/common/test.cpp
@@ -151,7 +151,7 @@ public:
151 for (const auto &res : mTestAccount->entities<T>()) { 151 for (const auto &res : mTestAccount->entities<T>()) {
152 qDebug() << "Parent filter " << query.getFilter("parent").value.toByteArray() << res->identifier() << res->getProperty("parent").toByteArray(); 152 qDebug() << "Parent filter " << query.getFilter("parent").value.toByteArray() << res->identifier() << res->getProperty("parent").toByteArray();
153 auto parentProperty = res->getProperty("parent").toByteArray(); 153 auto parentProperty = res->getProperty("parent").toByteArray();
154 if ((!parent && parentProperty.isEmpty()) || (parent && parentProperty == parent->identifier()) || query.parentProperty.isEmpty()) { 154 if ((!parent && parentProperty.isEmpty()) || (parent && parentProperty == parent->identifier()) || query.parentProperty().isEmpty()) {
155 qDebug() << "Found a match" << res->identifier(); 155 qDebug() << "Found a match" << res->identifier();
156 resultProvider->add(res.template staticCast<T>()); 156 resultProvider->add(res.template staticCast<T>());
157 } 157 }