diff options
author | Aaron Seigo <aseigo@kde.org> | 2015-12-28 22:00:19 +0100 |
---|---|---|
committer | Aaron Seigo <aseigo@kde.org> | 2015-12-28 22:00:19 +0100 |
commit | cc5363fe4b0cd4ea95ac98d9d37f2028fe226145 (patch) | |
tree | 8b6fdc29bb478d6c10daca12706386c01f36e76b /akonadish/syntax_modules/akonadi_list.cpp | |
parent | d456572c4178390a1f539e4923023ec331d2cde3 (diff) | |
download | sink-cc5363fe4b0cd4ea95ac98d9d37f2028fe226145.tar.gz sink-cc5363fe4b0cd4ea95ac98d9d37f2028fe226145.zip |
typeCompleter and resourceOrTypeCompleter
Diffstat (limited to 'akonadish/syntax_modules/akonadi_list.cpp')
-rw-r--r-- | akonadish/syntax_modules/akonadi_list.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/akonadish/syntax_modules/akonadi_list.cpp b/akonadish/syntax_modules/akonadi_list.cpp index 18f15e7..82f13b5 100644 --- a/akonadish/syntax_modules/akonadi_list.cpp +++ b/akonadish/syntax_modules/akonadi_list.cpp | |||
@@ -106,10 +106,9 @@ bool list(const QStringList &args, State &state) | |||
106 | 106 | ||
107 | Syntax::List syntax() | 107 | Syntax::List syntax() |
108 | { | 108 | { |
109 | Syntax::List syntax; | 109 | Syntax list("list", QObject::tr("List all resources, or the contents of one or more resources"), &AkonadiList::list, Syntax::EventDriven); |
110 | syntax << Syntax("list", QObject::tr("List all resources, or the contents of one or more resources"), &AkonadiList::list, Syntax::EventDriven); | 110 | list.completer = &AkonadishUtils::resourceOrTypeCompleter; |
111 | 111 | return Syntax::List() << list; | |
112 | return syntax; | ||
113 | } | 112 | } |
114 | 113 | ||
115 | REGISTER_SYNTAX(AkonadiList) | 114 | REGISTER_SYNTAX(AkonadiList) |