diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-09-27 16:15:44 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-09-27 16:15:44 +0200 |
commit | 5830d7e0d1d35494823f5fa61a4871b8d9df1c9d (patch) | |
tree | 1383d9b6ad926a97ee8376175c6bee01182dc096 /sinksh | |
parent | 529db49c496f4f668cec3f7c59d2d0ec78c50c9a (diff) | |
download | sink-5830d7e0d1d35494823f5fa61a4871b8d9df1c9d.tar.gz sink-5830d7e0d1d35494823f5fa61a4871b8d9df1c9d.zip |
Use the Query::filter api.
Diffstat (limited to 'sinksh')
-rw-r--r-- | sinksh/syntax_modules/sink_list.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sinksh/syntax_modules/sink_list.cpp b/sinksh/syntax_modules/sink_list.cpp index b20f3d4..2d7ef5f 100644 --- a/sinksh/syntax_modules/sink_list.cpp +++ b/sinksh/syntax_modules/sink_list.cpp | |||
@@ -60,11 +60,11 @@ bool list(const QStringList &args, State &state) | |||
60 | if (filterIndex >= 0) { | 60 | if (filterIndex >= 0) { |
61 | for (int i = 1; i < filterIndex; i++) { | 61 | for (int i = 1; i < filterIndex; i++) { |
62 | query.resources << args.at(i).toLatin1(); | 62 | query.resources << args.at(i).toLatin1(); |
63 | query += Sink::Query::ResourceFilter(args.at(i).toLatin1()); | 63 | query.filter(Sink::ApplicationDomain::SinkResource(args.at(i).toLatin1())); |
64 | } | 64 | } |
65 | for (int i = filterIndex + 1; i < args.size(); i++) { | 65 | for (int i = filterIndex + 1; i < args.size(); i++) { |
66 | auto filter = args.at(i).split("="); | 66 | auto filter = args.at(i).split("="); |
67 | query += Sink::Query::PropertyFilter(filter.at(0).toLatin1(), filter.at(1)); | 67 | query.filter(filter.at(0).toLatin1(), QVariant::fromValue(filter.at(1))); |
68 | } | 68 | } |
69 | 69 | ||
70 | } | 70 | } |