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_remove.cpp | |
parent | 7b380e9677678c0e3bcec981a2466ccb04f4e590 (diff) | |
download | sink-67d664f6dc36e3bd85fac27d5008b84e4b1d5568.tar.gz sink-67d664f6dc36e3bd85fac27d5008b84e4b1d5568.zip |
resource automcompletion
Diffstat (limited to 'akonadish/syntax_modules/akonadi_remove.cpp')
-rw-r--r-- | akonadish/syntax_modules/akonadi_remove.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/akonadish/syntax_modules/akonadi_remove.cpp b/akonadish/syntax_modules/akonadi_remove.cpp index bf09e2e..9691d78 100644 --- a/akonadish/syntax_modules/akonadi_remove.cpp +++ b/akonadish/syntax_modules/akonadi_remove.cpp | |||
@@ -97,13 +97,12 @@ bool resource(const QStringList &args, State &state) | |||
97 | 97 | ||
98 | Syntax::List syntax() | 98 | Syntax::List syntax() |
99 | { | 99 | { |
100 | Syntax::List syntax; | ||
101 | |||
102 | Syntax remove("remove", QObject::tr("Remove items in a resource"), &AkonadiRemove::remove); | 100 | Syntax remove("remove", QObject::tr("Remove items in a resource"), &AkonadiRemove::remove); |
103 | remove.children << Syntax("resource", QObject::tr("Removes a resource"), &AkonadiRemove::resource);//, Syntax::EventDriven); | 101 | Syntax resource("resource", QObject::tr("Removes a resource"), &AkonadiRemove::resource);//, Syntax::EventDriven); |
102 | resource.completer = &AkonadishUtils::resourceCompleter; | ||
103 | remove.children << resource; | ||
104 | 104 | ||
105 | syntax << remove; | 105 | return Syntax::List() << remove; |
106 | return syntax; | ||
107 | } | 106 | } |
108 | 107 | ||
109 | REGISTER_SYNTAX(AkonadiRemove) | 108 | REGISTER_SYNTAX(AkonadiRemove) |