![]() |
VR-Forces Development_Version Class Documentation
|
This class will try and space out items such that they will wrap to multiple rows if buttons (or text) of actions are wider than the width of the widget. More...

Classes | |
| struct | Layout |
Public Member Functions | |
| DtToolButtonWrapperWidget (QWidget *parent, const Qt::WindowFlags &flags=0) | |
| virtual | ~DtToolButtonWrapperWidget () |
| virtual QToolButton * | addAction (QAction *) |
| Adds a new action into the dialog for sizing. | |
| virtual void | layoutButtons () |
| Reworks given the the new sizes. | |
| virtual void | setIconSize (const QSize &) |
| Sets the size of the icons (default is 20x20) | |
| const QSize & | iconSize () const |
| virtual void | setIconSpacing (int) |
| Sets the spacing between icons. Default is 2. | |
| int | iconSpacing () const |
| virtual void | clear () |
| Clears all items. | |
Protected Member Functions | |
| virtual void | resizeEvent (QResizeEvent *) |
| virtual void | showEvent (QShowEvent *) |
| virtual void | addToLayout (QToolButton *) |
Protected Attributes | |
| std::vector< Layout > | myLayouts |
| std::vector< QToolButton * > | myButtons |
| QSize | myIconSize |
| int | myIconSpacing |
| bool | myNeedsLayout |
This class will try and space out items such that they will wrap to multiple rows if buttons (or text) of actions are wider than the width of the widget.
Each row will be broken up into chunks of icon width wide items + spacing. If there is text it will take up that many columns on a line. If it is widget than a whole line it will be on it's own line, cut off at the maximum length
| makVrf::DtToolButtonWrapperWidget::DtToolButtonWrapperWidget | ( | QWidget * | parent, |
| const Qt::WindowFlags & | flags = 0 |
||
| ) |
|
virtual |
|
virtual |
Adds a new action into the dialog for sizing.
|
virtual |
Reworks given the the new sizes.
|
virtual |
Sets the size of the icons (default is 20x20)
|
inline |
|
virtual |
Sets the spacing between icons. Default is 2.
|
inline |
|
virtual |
Clears all items.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |