From 24eec910e0098151f5c36f88c4337b4ebbca2c0b Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Wed, 24 Feb 2016 13:18:57 +0100 Subject: Send mail from the composer --- framework/actions/action.cpp | 8 ++++++++ framework/actions/action.h | 1 + 2 files changed, 9 insertions(+) (limited to 'framework/actions') 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) { } +Action::Action(const QByteArray &actionId, Context &context, QObject *parent) + : QObject(parent), + mContext(&context), + mActionId(actionId) +{ + +} + void Action::setContext(Context *context) { //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 public: Action(QObject *parent = 0); + Action(const QByteArray &actionId, Context &context, QObject *parent = 0); void setContext(Context *); Context *context() const; -- cgit v1.2.3