diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-09-27 16:15:44 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-09-27 16:15:44 +0200 |
commit | 5830d7e0d1d35494823f5fa61a4871b8d9df1c9d (patch) | |
tree | 1383d9b6ad926a97ee8376175c6bee01182dc096 /common/test.cpp | |
parent | 529db49c496f4f668cec3f7c59d2d0ec78c50c9a (diff) | |
download | sink-5830d7e0d1d35494823f5fa61a4871b8d9df1c9d.tar.gz sink-5830d7e0d1d35494823f5fa61a4871b8d9df1c9d.zip |
Use the Query::filter api.
Diffstat (limited to 'common/test.cpp')
-rw-r--r-- | common/test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/test.cpp b/common/test.cpp index 1a8e11d..97c42ef 100644 --- a/common/test.cpp +++ b/common/test.cpp | |||
@@ -147,7 +147,7 @@ public: | |||
147 | } | 147 | } |
148 | SinkTrace() << "-------------------------."; | 148 | SinkTrace() << "-------------------------."; |
149 | for (const auto &res : mTestAccount->entities<T>()) { | 149 | for (const auto &res : mTestAccount->entities<T>()) { |
150 | qDebug() << "Parent filter " << query.propertyFilter.value("parent").value.toByteArray() << res->identifier() << res->getProperty("parent").toByteArray(); | 150 | qDebug() << "Parent filter " << query.getFilter("parent").value.toByteArray() << res->identifier() << res->getProperty("parent").toByteArray(); |
151 | auto parentProperty = res->getProperty("parent").toByteArray(); | 151 | auto parentProperty = res->getProperty("parent").toByteArray(); |
152 | if ((!parent && parentProperty.isEmpty()) || (parent && parentProperty == parent->identifier()) || query.parentProperty.isEmpty()) { | 152 | if ((!parent && parentProperty.isEmpty()) || (parent && parentProperty == parent->identifier()) || query.parentProperty.isEmpty()) { |
153 | qDebug() << "Found a match" << res->identifier(); | 153 | qDebug() << "Found a match" << res->identifier(); |