diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-11-24 23:00:45 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-11-24 23:00:45 +0100 |
commit | 9ad96df6cd1526de32bff2b4f98491dd8318f760 (patch) | |
tree | e1b3da017f97a266efc3b081d59e502eb1f62bde /tests/querytest.cpp | |
parent | 110817a23463c71eacbc986af3ae509462758a3c (diff) | |
download | sink-9ad96df6cd1526de32bff2b4f98491dd8318f760.tar.gz sink-9ad96df6cd1526de32bff2b4f98491dd8318f760.zip |
Use Query::parentProperty to express tree queries
That way we don't have to hardcode the parent property,
and we can use the property to express non-tree queries as well.
Diffstat (limited to 'tests/querytest.cpp')
-rw-r--r-- | tests/querytest.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/querytest.cpp b/tests/querytest.cpp index 677dbac..fdfb609 100644 --- a/tests/querytest.cpp +++ b/tests/querytest.cpp | |||
@@ -145,6 +145,7 @@ private Q_SLOTS: | |||
145 | query.resources << "org.kde.dummy.instance1"; | 145 | query.resources << "org.kde.dummy.instance1"; |
146 | query.syncOnDemand = false; | 146 | query.syncOnDemand = false; |
147 | query.processAll = true; | 147 | query.processAll = true; |
148 | query.parentProperty = "parent"; | ||
148 | 149 | ||
149 | //Ensure all local data is processed | 150 | //Ensure all local data is processed |
150 | Akonadi2::Store::synchronize(query).exec().waitForFinished(); | 151 | Akonadi2::Store::synchronize(query).exec().waitForFinished(); |