summaryrefslogtreecommitdiffstats
path: root/tests/querytest.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2015-11-24 23:00:45 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2015-11-24 23:00:45 +0100
commit9ad96df6cd1526de32bff2b4f98491dd8318f760 (patch)
treee1b3da017f97a266efc3b081d59e502eb1f62bde /tests/querytest.cpp
parent110817a23463c71eacbc986af3ae509462758a3c (diff)
downloadsink-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.cpp1
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();