diff options
author | Aaron Seigo <aseigo@kde.org> | 2015-12-28 20:26:44 +0100 |
---|---|---|
committer | Aaron Seigo <aseigo@kde.org> | 2015-12-28 20:26:44 +0100 |
commit | 67d664f6dc36e3bd85fac27d5008b84e4b1d5568 (patch) | |
tree | 4531552f185e7a563ca302d0d4c462c215a0f94a /akonadish/syntax_modules/akonadi_count.cpp | |
parent | 7b380e9677678c0e3bcec981a2466ccb04f4e590 (diff) | |
download | sink-67d664f6dc36e3bd85fac27d5008b84e4b1d5568.tar.gz sink-67d664f6dc36e3bd85fac27d5008b84e4b1d5568.zip |
resource automcompletion
Diffstat (limited to 'akonadish/syntax_modules/akonadi_count.cpp')
-rw-r--r-- | akonadish/syntax_modules/akonadi_count.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/akonadish/syntax_modules/akonadi_count.cpp b/akonadish/syntax_modules/akonadi_count.cpp index cda7235..fa3f1fb 100644 --- a/akonadish/syntax_modules/akonadi_count.cpp +++ b/akonadish/syntax_modules/akonadi_count.cpp | |||
@@ -74,10 +74,10 @@ bool count(const QStringList &args, State &state) | |||
74 | 74 | ||
75 | Syntax::List syntax() | 75 | Syntax::List syntax() |
76 | { | 76 | { |
77 | Syntax::List syntax; | 77 | Syntax count("count", QObject::tr("Returns the number of items of a given type in a resource. Usage: count <type> <resource>"), &AkonadiCount::count, Syntax::EventDriven); |
78 | syntax << Syntax("count", QObject::tr("Returns the number of items of a given type in a resource. Usage: count <type> <resource>"), &AkonadiCount::count, Syntax::EventDriven); | 78 | count.completer = &AkonadishUtils::resourceCompleter; |
79 | 79 | ||
80 | return syntax; | 80 | return Syntax::List() << count; |
81 | } | 81 | } |
82 | 82 | ||
83 | REGISTER_SYNTAX(AkonadiCount) | 83 | REGISTER_SYNTAX(AkonadiCount) |