NDEVR
API Documentation

Class which displays progress and the current action being performed. More...

Public Member Functions

 Toolbar (QWidget *parent=nullptr)
 Constructs a Toolbar widget.
virtual void addWidget (const QPointer< QWidget > &widget)
 Adds a widget to the toolbar layout.
virtual void clear ()
 Removes all widgets from the toolbar.
virtual void removeWidget (const QPointer< QWidget > &widget)
 Removes a widget from the toolbar layout.

Protected Member Functions

QSize minimumSizeHint () const override
 Returns the minimum recommended size for the toolbar.
QSize sizeHint () const override
 Returns the recommended size for the toolbar.

Detailed Description

Class which displays progress and the current action being performed.


Typically shown at the bottom of a view, or at the top with the ribbon.

Definition at line 14 of file Toolbar.h.

Constructor & Destructor Documentation

◆ Toolbar()

Toolbar::Toolbar ( QWidget * parent = nullptr)

Constructs a Toolbar widget.

Parameters
[in]parentThe optional parent widget.

Member Function Documentation

◆ addWidget()

virtual void Toolbar::addWidget ( const QPointer< QWidget > & widget)
virtual

Adds a widget to the toolbar layout.

Parameters
[in]widgetThe widget to add.

◆ minimumSizeHint()

QSize Toolbar::minimumSizeHint ( ) const
overrideprotected

Returns the minimum recommended size for the toolbar.

Returns
The minimum QSize.

◆ removeWidget()

virtual void Toolbar::removeWidget ( const QPointer< QWidget > & widget)
virtual

Removes a widget from the toolbar layout.

Parameters
[in]widgetThe widget to remove.

◆ sizeHint()

QSize Toolbar::sizeHint ( ) const
overrideprotected

Returns the recommended size for the toolbar.

Returns
The preferred QSize.

The documentation for this class was generated from the following file: