|
Krita Source Code Documentation
|
#include <KoVBox.h>
Inheritance diagram for KoVBox:Public Member Functions | |
| KoVBox (QWidget *parent=0) | |
| QSize | minimumSizeHint () const override |
| void | setMargin (int margin) |
| void | setSpacing (int space) |
| void | setStretchFactor (QWidget *widget, int stretch) |
| QSize | sizeHint () const override |
| ~KoVBox () override | |
Protected Member Functions | |
| void | childEvent (QChildEvent *ev) override |
Private Attributes | |
| Private *const | d |
Friends | |
| class | Private |
A container widget which arranges its children vertically.
When using a KoVBox you don't need to create a layout nor to add the child widgets to it.
Both margin and spacing are initialized to 0. Use QHBoxLayout if you need standard layout margins.
|
explicit |
Creates a new hbox.
Definition at line 13 of file KoVBox.cpp.
|
override |
|
overrideprotected |
Definition at line 26 of file KoVBox.cpp.
References childEvent().
|
override |
Calculate the recommended minimum size for this hbox.
Definition at line 61 of file KoVBox.cpp.
| void KoVBox::setMargin | ( | int | margin | ) |
Sets the margin of the hbox.
Definition at line 79 of file KoVBox.cpp.
| void KoVBox::setSpacing | ( | int | space | ) |
Sets the spacing between the child widgets to space.
To get the default layout spacing, set space to -1.
Definition at line 69 of file KoVBox.cpp.
| void KoVBox::setStretchFactor | ( | QWidget * | widget, |
| int | stretch ) |
Sets the stretch factor of widget to stretch.
Definition at line 74 of file KoVBox.cpp.
References setStretchFactor().
|
override |
Calculate the recommended size for this hbox.
Definition at line 53 of file KoVBox.cpp.