From 5b41b26a349967acf2197f9f9228526193fd826e Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Fri, 27 Nov 2015 17:30:04 +0100 Subject: Introduced a QueryRunner object The QueryRunner object lives for the duration of the query (so just for the initial query for non-live queries, and for the lifetime of the result model for live queries). It's supposed to handle all the threading internally and decouple the lifetime of the facade. --- tests/dummyresourcebenchmark.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'tests/dummyresourcebenchmark.cpp') diff --git a/tests/dummyresourcebenchmark.cpp b/tests/dummyresourcebenchmark.cpp index 609b8dc..6eaf065 100644 --- a/tests/dummyresourcebenchmark.cpp +++ b/tests/dummyresourcebenchmark.cpp @@ -7,7 +7,6 @@ #include "clientapi.h" #include "commands.h" #include "entitybuffer.h" -#include "synclistresult.h" #include "pipeline.h" #include "log.h" #include "resourceconfig.h" @@ -115,7 +114,6 @@ private Q_SLOTS: query.propertyFilter.insert("uid", "testuid"); auto model = Akonadi2::Store::loadModel(query); - model->fetchMore(QModelIndex()); QTRY_COMPARE(model->rowCount(QModelIndex()), num); } qDebug() << "Query Time: " << time.elapsed() << "/sec " << num*1000/time.elapsed(); -- cgit v1.2.3