From e4fba677a9755a5aee1a0ea1513b6f737429d832 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Wed, 4 May 2016 16:49:31 +0200 Subject: 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). --- framework/actions/actionplugin.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'framework/actions/actionplugin.cpp') 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 @@ #include "action.h" #include "context.h" #include "actionhandler.h" +#include "actionresult.h" #include @@ -12,4 +13,5 @@ void KubePlugin::registerTypes (const char *uri) qmlRegisterType(uri, 1, 0, "Context"); qmlRegisterType(uri, 1, 0, "Action"); qmlRegisterType(uri, 1, 0, "ActionHandler"); + qmlRegisterType(uri, 1, 0, "ActionResult"); } -- cgit v1.2.3