diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-02-24 13:18:57 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-02-24 13:18:57 +0100 |
commit | 24eec910e0098151f5c36f88c4337b4ebbca2c0b (patch) | |
tree | bcd3a8891a90420019eb2d6e651830396a75a832 /framework/actions | |
parent | e569a96e2c68954e9eacbe84ecc7963e462d1f0f (diff) | |
download | kube-24eec910e0098151f5c36f88c4337b4ebbca2c0b.tar.gz kube-24eec910e0098151f5c36f88c4337b4ebbca2c0b.zip |
Send mail from the composer
Diffstat (limited to 'framework/actions')
-rw-r--r-- | framework/actions/action.cpp | 8 | ||||
-rw-r--r-- | framework/actions/action.h | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/framework/actions/action.cpp b/framework/actions/action.cpp index 1f94ae81..905f6f57 100644 --- a/framework/actions/action.cpp +++ b/framework/actions/action.cpp | |||
@@ -35,6 +35,14 @@ Action::Action(QObject *parent) | |||
35 | { | 35 | { |
36 | } | 36 | } |
37 | 37 | ||
38 | Action::Action(const QByteArray &actionId, Context &context, QObject *parent) | ||
39 | : QObject(parent), | ||
40 | mContext(&context), | ||
41 | mActionId(actionId) | ||
42 | { | ||
43 | |||
44 | } | ||
45 | |||
38 | void Action::setContext(Context *context) | 46 | void Action::setContext(Context *context) |
39 | { | 47 | { |
40 | //Get notified when any property changes | 48 | //Get notified when any property changes |
diff --git a/framework/actions/action.h b/framework/actions/action.h index 067c3c37..b820955e 100644 --- a/framework/actions/action.h +++ b/framework/actions/action.h | |||
@@ -33,6 +33,7 @@ class Action : public QObject | |||
33 | 33 | ||
34 | public: | 34 | public: |
35 | Action(QObject *parent = 0); | 35 | Action(QObject *parent = 0); |
36 | Action(const QByteArray &actionId, Context &context, QObject *parent = 0); | ||
36 | 37 | ||
37 | void setContext(Context *); | 38 | void setContext(Context *); |
38 | Context *context() const; | 39 | Context *context() const; |