summaryrefslogtreecommitdiffstats
path: root/akonadish/syntaxtree.h
diff options
context:
space:
mode:
authorAaron Seigo <aseigo@kde.org>2015-12-28 20:20:16 +0100
committerAaron Seigo <aseigo@kde.org>2015-12-28 20:20:16 +0100
commit7e48662cf11b5be7d062b082a9a1970419921a08 (patch)
tree26687262453b15285e963a06cb414faf30ef5f4e /akonadish/syntaxtree.h
parent949609b3f19b8a8823a7c62f23617eef05b796dd (diff)
downloadsink-7e48662cf11b5be7d062b082a9a1970419921a08.tar.gz
sink-7e48662cf11b5be7d062b082a9a1970419921a08.zip
pass the state object into the completer
allows completion to use an eventloop e.g.
Diffstat (limited to 'akonadish/syntaxtree.h')
-rw-r--r--akonadish/syntaxtree.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/akonadish/syntaxtree.h b/akonadish/syntaxtree.h
index ee06d28..468aad3 100644
--- a/akonadish/syntaxtree.h
+++ b/akonadish/syntaxtree.h
@@ -47,7 +47,7 @@ public:
47 QString help; 47 QString help;
48 Interactivity interactivity; 48 Interactivity interactivity;
49 std::function<bool(const QStringList &, State &)> lambda; 49 std::function<bool(const QStringList &, State &)> lambda;
50 std::function<QStringList(const QStringList &, const QString &)> completer; 50 std::function<QStringList(const QStringList &, const QString &, State &state)> completer;
51 51
52 QVector<Syntax> children; 52 QVector<Syntax> children;
53}; 53};