diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-01-04 23:24:43 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-01-05 13:41:40 +0100 |
commit | 021dde561b5ce86820013c681ff554b07590b052 (patch) | |
tree | b9d0b3b08efff6bd011544ef124c00ddec10012c /framework/actions/actionplugin.cpp | |
parent | dd09ca9ef4bb9780b953d6dd2999dbefe50bd1ff (diff) | |
download | kube-021dde561b5ce86820013c681ff554b07590b052.tar.gz kube-021dde561b5ce86820013c681ff554b07590b052.zip |
Prototype of the action system
Diffstat (limited to 'framework/actions/actionplugin.cpp')
-rw-r--r-- | framework/actions/actionplugin.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/framework/actions/actionplugin.cpp b/framework/actions/actionplugin.cpp new file mode 100644 index 00000000..710ba08a --- /dev/null +++ b/framework/actions/actionplugin.cpp | |||
@@ -0,0 +1,15 @@ | |||
1 | #include "actionplugin.h" | ||
2 | |||
3 | #include "action.h" | ||
4 | #include "context.h" | ||
5 | #include "actionhandler.h" | ||
6 | |||
7 | #include <QtQml> | ||
8 | |||
9 | void KubePlugin::registerTypes (const char *uri) | ||
10 | { | ||
11 | Q_ASSERT(uri == QLatin1String("org.kde.kube.actions")); | ||
12 | qmlRegisterType<Kube::Context>(uri, 1, 0, "Context"); | ||
13 | qmlRegisterType<Kube::Action>(uri, 1, 0, "Action"); | ||
14 | qmlRegisterType<Kube::ActionHandler>(uri, 1, 0, "ActionHandler"); | ||
15 | } | ||