LibrePCB Developers Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ToolBarProxy Class Referencefinal

The ToolBarProxy class allows to map a list of QAction's to one QToolBar. More...

#include <toolbarproxy.h>

Inherits QObject.

+ Collaboration diagram for ToolBarProxy:

Public Member Functions

 ToolBarProxy (QObject *parent=nullptr) noexcept
 
 ToolBarProxy (const ToolBarProxy &other)=delete
 
 ~ToolBarProxy () noexcept
 
void setToolBar (QToolBar *toolbar) noexcept
 
void setEnabled (bool enabled) noexcept
 
void clear () noexcept
 
QAction * addAction (std::unique_ptr< QAction > action) noexcept
 
QAction * addLabel (const QString &text, int indent=0) noexcept
 
QAction * addWidget (std::unique_ptr< QWidget > widget) noexcept
 
QAction * addSeparator () noexcept
 
void removeAction (QAction *action) noexcept
 
ToolBarProxyoperator= (const ToolBarProxy &rhs)=delete
 

Private Attributes

QToolBar * mToolBar
 
QList< QAction * > mActions
 

Detailed Description

The ToolBarProxy class allows to map a list of QAction's to one QToolBar.

Author
ubruhin
Date
2017-08-13

Constructor & Destructor Documentation

ToolBarProxy ( QObject *  parent = nullptr)
noexcept
ToolBarProxy ( const ToolBarProxy other)
delete
~ToolBarProxy ( )
noexcept

+ Here is the call graph for this function:

Member Function Documentation

void setToolBar ( QToolBar *  toolbar)
noexcept
void setEnabled ( bool  enabled)
noexcept
void clear ( )
noexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

QAction * addAction ( std::unique_ptr< QAction >  action)
noexcept

+ Here is the caller graph for this function:

QAction * addLabel ( const QString &  text,
int  indent = 0 
)
noexcept

+ Here is the caller graph for this function:

QAction * addWidget ( std::unique_ptr< QWidget >  widget)
noexcept

+ Here is the caller graph for this function:

QAction * addSeparator ( )
noexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void removeAction ( QAction *  action)
noexcept

+ Here is the caller graph for this function:

ToolBarProxy& operator= ( const ToolBarProxy rhs)
delete

Member Data Documentation

QToolBar* mToolBar
private
QList<QAction*> mActions
private

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