NavigationBar Class

Class is used to add Microsoft like CRM navigation bar to the form. More...

Header: #include <NavigationBar>
Inherits: QWidget

Public Types

enum NavigationIcon { Shelf, Home, MRU, New, Delete, …, Help }

Public Functions

NavigationBar(QWidget *parent = Q_NULL)
NavigationToolButton *buttonByAction(QAction *action) const
NavigationBar::OverflowMode overflowMode() const
void setOverflowMode(NavigationBar::OverflowMode mode)

Reimplemented Protected Functions

virtual void actionEvent(QActionEvent *event) override
virtual void changeEvent(QEvent *event) override
virtual bool eventFilter(QObject *object, QEvent *event) override
virtual void moveEvent(QMoveEvent *event) override
virtual void paintEvent(QPaintEvent *event) override
virtual void resizeEvent(QResizeEvent *event) override
virtual void showEvent(QShowEvent *event) override

Detailed Description

Member Type Documentation

Enumerator NavigationIcon describes the set of standard icons that can be used to create navigation tool buttons.

ConstantValueDescription
NavigationBar::Shelf0Shelf icon
NavigationBar::Home1Home icon
NavigationBar::MRU2Most recently used icon
NavigationBar::New3New item icon
NavigationBar::Delete4Delete item icon
NavigationBar::Settings5Application settings icon
NavigationBar::Question6Question icon
NavigationBar::Help7Help icon

Member Function Documentation

Constructor of the class NavigationBar. The parameter parent is a widget which will be parent and owner for the navigation bar.

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

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

NavigationToolButton *NavigationBar::buttonByAction(QAction *action) const

Returns the navigation button by action.

See also buttonCount, buttonByIndex, and buttonByWidget.

[override virtual protected] void NavigationBar::changeEvent(QEvent *event)

Reimplements: QWidget::changeEvent(QEvent *event).

[override virtual protected] bool NavigationBar::eventFilter(QObject *object, QEvent *event)

Reimplements: QObject::eventFilter(QObject *watched, QEvent *event).

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

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

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

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

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

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

[override virtual protected] void NavigationBar::showEvent(QShowEvent *event)

Reimplements: QWidget::showEvent(QShowEvent *event).