NavigationSidePane Class

NavigationSidePane provides navigation side pane. More...

Header: #include <NavigationSidePane>
Inherits: NavigationPane

Public Functions

NavigationSidePane(NavigationBar *navigationBar)
Qt::Alignment alignment() const
const QString &caption() const
void setAlignment(const Qt::Alignment &alignment)
void setCaption(const QString &caption)
void setWidget(QWidget *widget)
QWidget *widget() const

Reimplemented Public Functions

virtual QSize sizeHint() const override

Reimplemented Protected Functions

virtual void paintEvent(QPaintEvent *event) override
virtual void resizeEvent(QResizeEvent *event) override

Detailed Description

Member Function Documentation

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

Qt::Alignment NavigationSidePane::alignment() const

Returns the alignment for the side pane at the main window. By default it is Qt::AlignRight.

See also setAlignment().

const QString &NavigationSidePane::caption() const

Returns the caption for the side pane.

See also setCaption().

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

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

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

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

void NavigationSidePane::setAlignment(const Qt::Alignment &alignment)

Sets the alignment for the side pane at the main window.

See also alignment().

void NavigationSidePane::setCaption(const QString &caption)

Sets the given caption for the site pane.

See also caption().

void NavigationSidePane::setWidget(QWidget *widget)

Sets the given widget to be the side pane's content widget. Note: NavigationSidePane takes ownership of the widget pointer and deletes it at the appropriate time.

See also widget().

[override virtual] QSize NavigationSidePane::sizeHint() const

Reimplements an access function for property: QWidget::sizeHint.

QWidget *NavigationSidePane::widget() const

Returns the content widget for the side pane. This function returns zero if the widget has not been set.

See also setWidget().