diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-05-04 16:49:31 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-05-04 16:49:31 +0200 |
commit | e4fba677a9755a5aee1a0ea1513b6f737429d832 (patch) | |
tree | 956856d3635249a6d7af98934f7f14885f264818 /framework/actions/actionplugin.cpp | |
parent | 8cfe1ed71dd342bfb625a94319f7b3d42709c8b0 (diff) | |
download | kube-e4fba677a9755a5aee1a0ea1513b6f737429d832.tar.gz kube-e4fba677a9755a5aee1a0ea1513b6f737429d832.zip |
Unbreak action execution from qml
QML can't do with custom return types.
(we'd have to wrap it in a QVariant or use a property).
Diffstat (limited to 'framework/actions/actionplugin.cpp')
-rw-r--r-- | framework/actions/actionplugin.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/framework/actions/actionplugin.cpp b/framework/actions/actionplugin.cpp index 87bc4d7b..05852d2e 100644 --- a/framework/actions/actionplugin.cpp +++ b/framework/actions/actionplugin.cpp | |||
@@ -3,6 +3,7 @@ | |||
3 | #include "action.h" | 3 | #include "action.h" |
4 | #include "context.h" | 4 | #include "context.h" |
5 | #include "actionhandler.h" | 5 | #include "actionhandler.h" |
6 | #include "actionresult.h" | ||
6 | 7 | ||
7 | #include <QtQml> | 8 | #include <QtQml> |
8 | 9 | ||
@@ -12,4 +13,5 @@ void KubePlugin::registerTypes (const char *uri) | |||
12 | qmlRegisterType<Kube::Context>(uri, 1, 0, "Context"); | 13 | qmlRegisterType<Kube::Context>(uri, 1, 0, "Context"); |
13 | qmlRegisterType<Kube::Action>(uri, 1, 0, "Action"); | 14 | qmlRegisterType<Kube::Action>(uri, 1, 0, "Action"); |
14 | qmlRegisterType<Kube::ActionHandler>(uri, 1, 0, "ActionHandler"); | 15 | qmlRegisterType<Kube::ActionHandler>(uri, 1, 0, "ActionHandler"); |
16 | qmlRegisterType<Kube::ActionResult>(uri, 1, 0, "ActionResult"); | ||
15 | } | 17 | } |