From 4926e7f613ea3e03a2865eec66c6a8c1ec0b6516 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Sat, 28 Nov 2015 16:07:15 +0100 Subject: Cleanup --- examples/client/main.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'examples/client') diff --git a/examples/client/main.cpp b/examples/client/main.cpp index c75b3ce..3fa5a4e 100644 --- a/examples/client/main.cpp +++ b/examples/client/main.cpp @@ -77,7 +77,6 @@ public: topLayout->addWidget(titleLabel); topLayout->addWidget(syncButton); topLayout->addWidget(modelView, 10); - model->fetchMore(QModelIndex()); show(); } @@ -127,6 +126,7 @@ int main(int argc, char *argv[]) query.syncOnDemand = false; query.processAll = false; query.requestedProperties << "name"; + query.liveQuery = true; auto model = Akonadi2::Store::loadModel(query); if (cliOptions.isSet("list")) { @@ -137,11 +137,9 @@ int main(int argc, char *argv[]) qDebug() << model->data(model->index(i, 0, index)).toString(); } }); - model->fetchMore(QModelIndex()); return app.exec(); } else if (cliOptions.isSet("count")) { query.liveQuery = false; - model->fetchMore(QModelIndex()); qDebug() << "Counted results " << model->rowCount(QModelIndex()); } else { query.liveQuery = true; -- cgit v1.2.3