diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-11-04 12:40:24 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-11-04 12:40:24 +0100 |
commit | ba94c4300c52dd80774ed7affc2ef9b4508cb7be (patch) | |
tree | 3c8bf6ce042a4544e81901d901a3a3759d0a128a /tests/accountstest.cpp | |
parent | 98b682acb8c57cadaea5ff0ac6709d21a591b97b (diff) | |
download | sink-ba94c4300c52dd80774ed7affc2ef9b4508cb7be.tar.gz sink-ba94c4300c52dd80774ed7affc2ef9b4508cb7be.zip |
Don't expose the live query flag directly.
Diffstat (limited to 'tests/accountstest.cpp')
-rw-r--r-- | tests/accountstest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/accountstest.cpp b/tests/accountstest.cpp index 8216210..88b13f3 100644 --- a/tests/accountstest.cpp +++ b/tests/accountstest.cpp | |||
@@ -99,7 +99,7 @@ private slots: | |||
99 | Store::create(account).exec().waitForFinished(); | 99 | Store::create(account).exec().waitForFinished(); |
100 | 100 | ||
101 | Query query; | 101 | Query query; |
102 | query.liveQuery = true; | 102 | query.setFlags(Query::LiveQuery); |
103 | auto model = Store::loadModel<SinkAccount>(query); | 103 | auto model = Store::loadModel<SinkAccount>(query); |
104 | QTRY_COMPARE(model->rowCount(QModelIndex()), 1); | 104 | QTRY_COMPARE(model->rowCount(QModelIndex()), 1); |
105 | 105 | ||
@@ -130,7 +130,7 @@ private slots: | |||
130 | VERIFYEXEC(Sink::Store::create(res)); | 130 | VERIFYEXEC(Sink::Store::create(res)); |
131 | { | 131 | { |
132 | Sink::Query query; | 132 | Sink::Query query; |
133 | query.liveQuery = true; | 133 | query.setFlags(Query::LiveQuery); |
134 | query.request<Sink::ApplicationDomain::SinkAccount::Status>(); | 134 | query.request<Sink::ApplicationDomain::SinkAccount::Status>(); |
135 | 135 | ||
136 | auto model = Sink::Store::loadModel<Sink::ApplicationDomain::SinkAccount>(query); | 136 | auto model = Sink::Store::loadModel<Sink::ApplicationDomain::SinkAccount>(query); |