DockToolBar Class

DockToolBar class provides a movable panel that contains a set of actions or widgets. More...

Header: #include <DockToolBar>
Inherits: DockBarBase

Properties

Public Functions

DockToolBar(const QString &caption, QWidget *parent = Q_NULL)
DockToolBar(QWidget *parent = Q_NULL)
QSize iconSize() const
Qt::ToolButtonStyle toolButtonStyle() const

Reimplemented Public Functions

virtual void setVisible(bool visible) override

Public Slots

void setIconSize(const QSize &iconSize)
void setToolButtonStyle(Qt::ToolButtonStyle toolButtonStyle)

Signals

void iconSizeChanged(const QSize &iconSize)
void toolButtonStyleChanged(Qt::ToolButtonStyle toolButtonStyle)

Detailed Description

Property Documentation

caption : const QString

The property contains the caption for the toolbar. When floating, the caption is displayed on the title bar of the window. By default it is a title of the main window. The caption can be initialized empty string.

iconSize : QSize

The property contains the default size the icon at the tool buttons. By default it is equals to QStyle::PM_ToolBarIconSize metric.

Access functions:

QSize iconSize() const
void setIconSize(const QSize &iconSize)

Notifier signal:

void iconSizeChanged(const QSize &iconSize)

toolButtonStyle : Qt::ToolButtonStyle

The property contains the default style for the tool buttons. By default it is Qt::ToolButtonIconOnly.

Access functions:

Qt::ToolButtonStyle toolButtonStyle() const
void setToolButtonStyle(Qt::ToolButtonStyle toolButtonStyle)

Notifier signal:

void toolButtonStyleChanged(Qt::ToolButtonStyle toolButtonStyle)

Member Function Documentation

[explicit] DockToolBar::DockToolBar(const QString &caption, QWidget *parent = Q_NULL)

Constructs the toolbar with the given caption and parent.

[explicit] DockToolBar::DockToolBar(QWidget *parent = Q_NULL)

Constructs the toolbar with the given parent.

[override virtual] void DockToolBar::setVisible(bool visible)