EventAction
Qualified name: mv::gui::EventAction
-
class EventAction : public mv::gui::VerticalGroupAction
Event action class.
For emitting generic events
- Author
Thomas Kroes
Public Functions
-
Q_INVOKABLE EventAction(QObject *parent, const QString &title)
Constructor.
- Parameters:
parent – Pointer to parent object
title – Title of the action
-
void triggerEvent(const QString &eventType, const QVariant &eventData)
Triggers an event of
eventTypewitheventData.- Parameters:
eventType – The type of event
eventData – Event data
-
void eventTriggered(const QString &eventType, const QVariant &eventData)
Signals that an event of
eventTypewitheventDatahas been triggered.- Parameters:
eventType – The type of event
eventData – Event data
Protected Functions
-
virtual void connectToPublicAction(WidgetAction *publicAction, bool recursive) override
Connect this action to a public action.
- Parameters:
publicAction – Pointer to public action to connect to
recursive – Whether to also connect descendant child actions
-
virtual void disconnectFromPublicAction(bool recursive) override
Disconnect this action from its public action.
- Parameters:
recursive – Whether to also disconnect descendant child actions