NavigationAction
Qualified name: mv::gui::NavigationAction
-
class NavigationAction : public mv::gui::HorizontalToolbarAction
Navigation action class.
Provides actions for navigating in a renderer (the business logic should be handled elsewhere depending on the renderer).
Note: This action is developed for internal use only
- Author
Thomas Kroes
Public Functions
-
Q_INVOKABLE NavigationAction(QObject *parent, const QString &title)
Construct with pointer to
parentobject andtitle.- Parameters:
parent – Pointer to parent object
title – Title of the action
-
void setShortcutsEnabled(bool shortcutsEnabled)
Set whether shortcuts are enabled.
- Parameters:
shortcutsEnabled – Boolean determining whether shortcuts are enabled
-
virtual void fromVariantMap(const QVariantMap &variantMap) override
Load navigation action from variant map.
- Parameters:
variantMap – Variant map representation of the navigation action
-
virtual QVariantMap toVariantMap() const override
Save widget action to variant map.
- Returns:
Variant map representation of the widget action