|
|
Alternative Layout manager widget. Here is an example of using this class:
enum |
|
Constructs a KContainerLayout as child of parent
Parameters:
~ |
[virtual]
The destructor
int |
[const]
Returns the number of widgets inside this container
int |
Pack one widget to the start of the container after the previously packed on start widgets
Parameters:
int |
Pack one widget to the end of the container after the previously packed on end widgets
Parameters:
void |
Sets the orientation of the container, one of KContainerLayout::Horizontal or KContainer::Vertical
void |
Sets the container to use the same size to each widget he contains (TRUE) or not (FALSE) When homogeneous is true all widgets will be packed as if they had the Expand set to TRUE
See also: packStart, KContainer#packEnd
void |
void |
Sets the starting offset for this container
void |
Sets the ending offset for this container
const int |
[const]
Returns the current orientation of the container
const bool |
[const]
Returns the current homogeneous state of the container
const int |
[const]
Returns the current spacing of the container
const int |
[const]
Returns the starting offset for this container
const int |
[const]
Returns the ending offset for this container
void |
Resizes the container to be as small as necessary to display all widgets
[protected]
This class represents one widget inside the one KContainerLayout.
void |
[protected]
Calculates the size necessary to display all widgets
QSize |
[protected]
Returns the size necessary for the widget represented by this KContainerLayoutItem
void |
[protected]
Reposition all widgets on the container.
int |
[protected]
Returns the number of widgets that share the extra space on the container.
void |
[protected]
Calculate our size hint based on the sizeHint() of all out widgets, on our properties - expand and homogeneous, and on the KContainerLayoutItem properties.
See also: KContainerLayoutItem, packStart, packEnd
QSize |
[protected]
Return the size necessary by the largest widget on the container.
QSize |
[protected]
Returns the ideal size for the widget represented by this KContainerLayoutItem.
const bool |
[protected const]
Return TRUE if this is an horizontal container.
void |
[protected virtual]
Resizes the widget and repositions all widgets.
bool |
[protected virtual]
Used to filter resize events from our parent if it isn't a KContainerLayout.
QSize |
[protected const virtual]
Returns our size hint. The size necessary to display this container.
int |
[protected]
Keeps the orientation of the container one of KContainerLayout::Horizontal or KContainer::Vertical
bool |
[protected]
Should we split our size in equal parts by all the widgets?
int |
[protected]
Space to be used between widgets and between the first/last widget and the container borders.
int |
[protected]
Space between the starting border and the first widget
int |
[protected]
Space between the last widget and ending border
QList |
[protected]
The list of all widgets packed on the start
QList |
[protected]
The list of all widgets packed at the end
int |
[protected]
width or height we have for each widget
QSize |
[protected]
our sizeHint that we will return on our implementation of sizeHint()