ActionsHierarchyModel
Qualified name: mv::ActionsHierarchyModel
-
class ActionsHierarchyModel : public mv::AbstractActionsModel
Actions hierarchy model class.
Hierarchical actions model class
- Author
Thomas Kroes
Public Functions
-
ActionsHierarchyModel(QObject *parent, gui::WidgetAction *rootAction = nullptr)
Construct with
parentobject androotAction.- Parameters:
parent – Pointer to parent object
rootAction – When set, only list the root action and its descendants
-
virtual void initialize() override
Initializes the model from the current state of the actions manager.
Protected Functions
-
virtual void actionAddedToManager(gui::WidgetAction *action) override
Invoked when
actionis added to the actions manager.- Parameters:
action – Pointer to action that was added
-
virtual void actionAboutToBeRemovedFromManager(gui::WidgetAction *action) override
Invoked when
actionis about to be removed from the actions manager.- Parameters:
action – Pointer to action that was removed
-
virtual void publicActionAddedToManager(gui::WidgetAction *publicAction) override
Invoked when
publicActionis added to the actions manager.- Parameters:
publicAction – Pointer to public action that was added
-
virtual void publicActionAboutToBeRemovedFromManager(gui::WidgetAction *publicAction) override
Invoked when
publicActionis about to be removed from the actions manager.- Parameters:
publicAction – Pointer to public action to remove