LibrePCB Developers Documentation
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
 
void addActionGroup (std::unique_ptr< QActionGroup > group) noexcept
 
QAction * addLabel (const QString &text, int indent=0) noexcept
 
QAction * addWidget (std::unique_ptr< QWidget > widget, int indent=0) noexcept
 
QAction * addSeparator () noexcept
 
void removeAction (QAction *action) noexcept
 
bool startTabFocusCycle (QWidget &returnFocusWidget)
 
ToolBarProxyoperator= (const ToolBarProxy &rhs)=delete
 

Private Attributes

QToolBar * mToolBar
 
QList< QAction * > mActions
 
QList< QActionGroup * > mActionGroups
 

Detailed Description

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

Constructor & Destructor Documentation

◆ ToolBarProxy() [1/2]

ToolBarProxy ( QObject *  parent = nullptr)
noexcept

◆ ToolBarProxy() [2/2]

ToolBarProxy ( const ToolBarProxy other)
delete

◆ ~ToolBarProxy()

~ToolBarProxy ( )
noexcept
+ Here is the call graph for this function:

Member Function Documentation

◆ setToolBar()

void setToolBar ( QToolBar *  toolbar)
noexcept

◆ setEnabled()

void setEnabled ( bool  enabled)
noexcept

◆ clear()

void clear ( )
noexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addAction()

QAction * addAction ( std::unique_ptr< QAction >  action)
noexcept
+ Here is the caller graph for this function:

◆ addActionGroup()

void addActionGroup ( std::unique_ptr< QActionGroup >  group)
noexcept
+ Here is the caller graph for this function:

◆ addLabel()

QAction * addLabel ( const QString &  text,
int  indent = 0 
)
noexcept
+ Here is the caller graph for this function:

◆ addWidget()

QAction * addWidget ( std::unique_ptr< QWidget >  widget,
int  indent = 0 
)
noexcept
+ Here is the caller graph for this function:

◆ addSeparator()

QAction * addSeparator ( )
noexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ removeAction()

void removeAction ( QAction *  action)
noexcept
+ Here is the caller graph for this function:

◆ startTabFocusCycle()

bool startTabFocusCycle ( QWidget &  returnFocusWidget)
+ Here is the call graph for this function:

◆ operator=()

ToolBarProxy & operator= ( const ToolBarProxy rhs)
delete

Member Data Documentation

◆ mToolBar

QToolBar* mToolBar
private

◆ mActions

QList<QAction*> mActions
private

◆ mActionGroups

QList<QActionGroup*> mActionGroups
private

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