NavigationMenu Class

NavigationMenu is a base class for the menu in the application that contais navigation bar. It is used as an ancestor for classes NavigationBackstageMenu, NavigationMainMenu. More...

Header: #include <NavigationMenu>
Inherits: NavigationPane
Inherited By:

NavigationBackstageMenu and NavigationMainMenu

Public Functions

NavigationMenu(NavigationBar *navigationBar)
void beginUpdate()
void endUpdate()
NavigationMenuItem *itemByAction(QAction *action)

Reimplemented Protected Functions

virtual void actionEvent(QActionEvent *event) override
virtual void moveEvent(QMoveEvent *event) override
virtual void paintEvent(QPaintEvent *event) override
virtual void resizeEvent(QResizeEvent *event) override

Detailed Description

Member Function Documentation

Constructor of the class NavigationMenu. Parameter the navigationBar it is navigation bar that will be owner of the pane.

[override virtual protected] void NavigationMenu::actionEvent(QActionEvent *event)

Reimplements: QWidget::actionEvent(QActionEvent *event).

void NavigationMenu::beginUpdate()

Blocks any internal recalculations within the menu. Used to prevent unnecessary calls of menu layout recalculation when the menu is filled by items. This greatly accelerates the time of initialization. After beginUpdate() is necessary to call endUpdate() method.

void NavigationMenu::endUpdate()

Unblocks any internal recalculations within the menu. The method should be called after beginUpdate().

NavigationMenuItem *NavigationMenu::itemByAction(QAction *action)

Returns NavigationMenuItem by the given action.

[override virtual protected] void NavigationMenu::moveEvent(QMoveEvent *event)

Reimplements: QWidget::moveEvent(QMoveEvent *event).

[override virtual protected] void NavigationMenu::paintEvent(QPaintEvent *event)

Reimplements: MaterialWidget::paintEvent(QPaintEvent *event).

[override virtual protected] void NavigationMenu::resizeEvent(QResizeEvent *event)

Reimplements: MaterialWidget::resizeEvent(QResizeEvent *event).