From 78284e0963d93e3e0f85e2165013412580a3b8c1 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Thu, 14 Jan 2016 18:52:04 +0100 Subject: Got rid of all uses of Query::syncOnDemand and Query::processAll --- tests/dummyresourcebenchmark.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'tests/dummyresourcebenchmark.cpp') diff --git a/tests/dummyresourcebenchmark.cpp b/tests/dummyresourcebenchmark.cpp index aad86c0..c52eee3 100644 --- a/tests/dummyresourcebenchmark.cpp +++ b/tests/dummyresourcebenchmark.cpp @@ -92,9 +92,7 @@ private Q_SLOTS: { Akonadi2::Query query; query.resources << "org.kde.dummy.instance1"; - query.syncOnDemand = false; - query.processAll = true; - Akonadi2::Store::synchronize(query).exec().waitForFinished(); + Akonadi2::Store::flushMessageQueue(query.resources).exec().waitForFinished(); } auto allProcessedTime = time.elapsed(); @@ -123,8 +121,6 @@ private Q_SLOTS: time.start(); Akonadi2::Query query; query.resources << "org.kde.dummy.instance1"; - query.syncOnDemand = false; - query.processAll = false; query.propertyFilter.insert("uid", "testuid"); auto model = Akonadi2::Store::loadModel(query); -- cgit v1.2.3