Qt 4.8
|
#include <qlayoutitem.h>
Public Functions | |
int | heightForWidth (int width) const |
Reimplemented Function More... | |
QSize | maximumSize () const |
Reimplemented Function More... | |
QSize | minimumSize () const |
Reimplemented Function More... | |
QWidgetItemV2 (QWidget *widget) | |
QSize | sizeHint () const |
Reimplemented Function More... | |
~QWidgetItemV2 () | |
Public Functions inherited from QWidgetItem | |
Qt::Orientations | expandingDirections () const |
Reimplemented Function More... | |
QRect | geometry () const |
Reimplemented Function More... | |
bool | hasHeightForWidth () const |
Reimplemented Function More... | |
bool | isEmpty () const |
Returns true if the widget is hidden; otherwise returns false. More... | |
QWidgetItem (QWidget *w) | |
Creates an item containing the given widget. More... | |
void | setGeometry (const QRect &) |
Reimplemented Function More... | |
virtual QWidget * | widget () |
Returns the widget managed by this item. More... | |
Public Functions inherited from QLayoutItem | |
Qt::Alignment | alignment () const |
Returns the alignment of this item. More... | |
QSizePolicy::ControlTypes | controlTypes () const |
Returns the control type(s) for the layout item. More... | |
virtual void | invalidate () |
Invalidates any cached information in this layout item. More... | |
virtual QLayout * | layout () |
If this item is a QLayout, it is returned as a QLayout; otherwise 0 is returned. More... | |
virtual int | minimumHeightForWidth (int) const |
Returns the minimum height this widget needs for the given width, w. More... | |
QLayoutItem (Qt::Alignment alignment=0) | |
Constructs a layout item with an alignment. More... | |
void | setAlignment (Qt::Alignment a) |
Sets the alignment of this item to alignment. More... | |
virtual QSpacerItem * | spacerItem () |
If this item is a QSpacerItem, it is returned as a QSpacerItem; otherwise 0 is returned. More... | |
virtual | ~QLayoutItem () |
Destroys the QLayoutItem. More... | |
Private Types | |
enum | { Dirty = -123, HfwCacheMaxSize = 3 } |
Private Functions | |
void | invalidateSizeCache () |
void | updateCacheIfNecessary () const |
bool | useSizeCache () const |
Properties | |
void * | d |
QSize | q_cachedHfws [HfwCacheMaxSize] |
QSize | q_cachedMaximumSize |
QSize | q_cachedMinimumSize |
QSize | q_cachedSizeHint |
short | q_firstCachedHfw |
short | q_hfwCacheSize |
Friends | |
class | QWidgetPrivate |
Additional Inherited Members | |
Protected Variables inherited from QWidgetItem | |
QWidget * | wid |
Protected Variables inherited from QLayoutItem | |
Qt::Alignment | align |
Definition at line 144 of file qlayoutitem.h.
|
private |
Enumerator | |
---|---|
Dirty | |
HfwCacheMaxSize |
Definition at line 156 of file qlayoutitem.h.
|
explicit |
Definition at line 771 of file qlayoutitem.cpp.
QWidgetItemV2::~QWidgetItemV2 | ( | ) |
Definition at line 785 of file qlayoutitem.cpp.
|
virtual |
Reimplemented Function
Reimplemented from QWidgetItem.
Definition at line 848 of file qlayoutitem.cpp.
|
inlineprivate |
Definition at line 160 of file qlayoutitem.h.
|
virtual |
Reimplemented Function
Reimplemented from QWidgetItem.
Definition at line 820 of file qlayoutitem.cpp.
|
virtual |
Reimplemented Function
Reimplemented from QWidgetItem.
Definition at line 807 of file qlayoutitem.cpp.
|
virtual |
Reimplemented Function
Reimplemented from QWidgetItem.
Definition at line 794 of file qlayoutitem.cpp.
|
private |
Definition at line 733 of file qlayoutitem.cpp.
Referenced by maximumSize(), minimumSize(), and sizeHint().
|
inlineprivate |
Definition at line 728 of file qlayoutitem.cpp.
Referenced by maximumSize(), minimumSize(), and sizeHint().
|
friend |
Definition at line 173 of file qlayoutitem.h.
|
private |
Definition at line 171 of file qlayoutitem.h.
|
mutableprivate |
Definition at line 168 of file qlayoutitem.h.
Referenced by heightForWidth().
|
mutableprivate |
Definition at line 167 of file qlayoutitem.h.
Referenced by maximumSize().
|
mutableprivate |
Definition at line 165 of file qlayoutitem.h.
Referenced by minimumSize().
|
mutableprivate |
Definition at line 166 of file qlayoutitem.h.
Referenced by sizeHint().
|
mutableprivate |
Definition at line 169 of file qlayoutitem.h.
Referenced by heightForWidth().
|
mutableprivate |
Definition at line 170 of file qlayoutitem.h.
Referenced by heightForWidth().