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/action.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/action.cpp')
-rw-r--r-- | framework/actions/action.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/framework/actions/action.cpp b/framework/actions/action.cpp index 28dd5e2a..4bda033e 100644 --- a/framework/actions/action.cpp +++ b/framework/actions/action.cpp | |||
@@ -85,7 +85,12 @@ bool Action::ready() const | |||
85 | return ActionBroker::instance().isActionReady(mActionId, mContext); | 85 | return ActionBroker::instance().isActionReady(mActionId, mContext); |
86 | } | 86 | } |
87 | 87 | ||
88 | ActionResult Action::execute() | 88 | void Action::execute() |
89 | { | ||
90 | ActionBroker::instance().executeAction(mActionId, mContext); | ||
91 | } | ||
92 | |||
93 | ActionResult Action::executeWithResult() | ||
89 | { | 94 | { |
90 | return ActionBroker::instance().executeAction(mActionId, mContext); | 95 | return ActionBroker::instance().executeAction(mActionId, mContext); |
91 | } | 96 | } |