From 94829f17066dcbbeb9f641a4870dd88aa916ba24 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Wed, 5 Oct 2016 20:07:53 +0200 Subject: A better resource filter api --- examples/mailtransportresource/tests/mailtransporttest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/mailtransportresource/tests') diff --git a/examples/mailtransportresource/tests/mailtransporttest.cpp b/examples/mailtransportresource/tests/mailtransporttest.cpp index fdd591b..e44aa23 100644 --- a/examples/mailtransportresource/tests/mailtransporttest.cpp +++ b/examples/mailtransportresource/tests/mailtransporttest.cpp @@ -61,10 +61,10 @@ private slots: VERIFYEXEC(Store::create(mail)); VERIFYEXEC(ResourceControl::flushMessageQueue(QByteArrayList() << mResourceInstanceIdentifier)); - VERIFYEXEC(Store::synchronize(Query::ResourceFilter(mResourceInstanceIdentifier))); + VERIFYEXEC(Store::synchronize(Query().resourceFilter(mResourceInstanceIdentifier))); VERIFYEXEC(ResourceControl::inspect(ResourceControl::Inspection::ExistenceInspection(mail, true))); - auto sentMail = Store::readOne(Query::IdentityFilter(mail).request().request()); + auto sentMail = Store::readOne(Query(mail).request().request()); QVERIFY(sentMail.getSent()); QVERIFY(!sentMail.getSubject().isEmpty()); } -- cgit v1.2.3