![]() |
Qt 4.8
|
#include <qsizepolicy.h>
Public Types | |
| enum | ControlType { DefaultType = 0x00000001, ButtonBox = 0x00000002, CheckBox = 0x00000004, ComboBox = 0x00000008, Frame = 0x00000010, GroupBox = 0x00000020, Label = 0x00000040, Line = 0x00000080, LineEdit = 0x00000100, PushButton = 0x00000200, RadioButton = 0x00000400, Slider = 0x00000800, SpinBox = 0x00001000, TabWidget = 0x00002000, ToolButton = 0x00004000 } |
| enum | Policy { Fixed = 0, Minimum = GrowFlag, Maximum = ShrinkFlag, Preferred = GrowFlag | ShrinkFlag, MinimumExpanding = GrowFlag | ExpandFlag, Expanding = GrowFlag | ShrinkFlag | ExpandFlag, Ignored = ShrinkFlag | GrowFlag | IgnoreFlag } |
| enum | PolicyFlag { GrowFlag = 1, ExpandFlag = 2, ShrinkFlag = 4, IgnoreFlag = 8 } |
Public Functions | |
| ControlType | controlType () const |
| Qt::Orientations | expandingDirections () const |
| bool | hasHeightForWidth () const |
| bool | hasWidthForHeight () const |
| Policy | horizontalPolicy () const |
| int | horizontalStretch () const |
| operator QVariant () const | |
| Returns a QVariant storing this QSizePolicy. More... | |
| bool | operator!= (const QSizePolicy &s) const |
| bool | operator== (const QSizePolicy &s) const |
| QSizePolicy () | |
| QSizePolicy (Policy horizontal, Policy vertical) | |
| QSizePolicy (Policy horizontal, Policy vertical, ControlType type) | |
| void | setControlType (ControlType type) |
| void | setHeightForWidth (bool b) |
| void | setHorizontalPolicy (Policy d) |
| void | setHorizontalStretch (uchar stretchFactor) |
| void | setVerticalPolicy (Policy d) |
| void | setVerticalStretch (uchar stretchFactor) |
| void | setWidthForHeight (bool b) |
| void | transpose () |
| Policy | verticalPolicy () const |
| int | verticalStretch () const |
Private Types | |
| enum | SizePolicyMasks { HSize = 4, HMask = 0x0f, VMask = HMask << HSize, CTShift = 9, CTSize = 5, CTMask = ((0x1 << CTSize) - 1) << CTShift, WFHShift = CTShift + CTSize, UnusedShift = WFHShift + 1, UnusedSize = 1 } |
Private Functions | |
| QSizePolicy (int i) | |
Properties | |
| quint32 | data |
Friends | |
| Q_GUI_EXPORT QDataStream & | operator<< (QDataStream &, const QSizePolicy &) |
| Writes the size policy to the data stream stream. More... | |
| Q_GUI_EXPORT QDataStream & | operator>> (QDataStream &, QSizePolicy &) |
| Reads the size policy from the data stream stream. More... | |
Definition at line 55 of file qsizepolicy.h.
| Enumerator | |
|---|---|
| DefaultType | |
| ButtonBox | |
| CheckBox | |
| ComboBox | |
| Frame | |
| GroupBox | |
| Label | |
| Line | |
| LineEdit | |
| PushButton | |
| RadioButton | |
| Slider | |
| SpinBox | |
| TabWidget | |
| ToolButton | |
Definition at line 91 of file qsizepolicy.h.
| enum QSizePolicy::Policy |
| Enumerator | |
|---|---|
| Fixed | |
| Minimum | |
| Maximum | |
| Preferred | |
| MinimumExpanding | |
| Expanding | |
| Ignored | |
Definition at line 81 of file qsizepolicy.h.
| Enumerator | |
|---|---|
| GrowFlag | |
| ExpandFlag | |
| ShrinkFlag | |
| IgnoreFlag | |
Definition at line 74 of file qsizepolicy.h.
|
private |
| Enumerator | |
|---|---|
| HSize | |
| HMask | |
| VMask | |
| CTShift | |
| CTSize | |
| CTMask | |
| WFHShift | |
| UnusedShift | |
| UnusedSize | |
Definition at line 61 of file qsizepolicy.h.
|
inline |
Definition at line 110 of file qsizepolicy.h.
Definition at line 113 of file qsizepolicy.h.
|
inline |
Definition at line 115 of file qsizepolicy.h.
|
inlineprivate |
Definition at line 202 of file qsizepolicy.h.
| QSizePolicy::ControlType QSizePolicy::controlType | ( | ) | const |
Definition at line 1670 of file qlayout.cpp.
Referenced by QLayoutItem::controlTypes(), QGridLayoutItem::controlTypes(), and QMacStyle::pixelMetric().
|
inline |
Definition at line 126 of file qsizepolicy.h.
|
inline |
Definition at line 136 of file qsizepolicy.h.
Referenced by QTabWidgetPrivate::hasHeightForWidth(), and QScrollAreaPrivate::updateScrollBars().
|
inline |
Definition at line 138 of file qsizepolicy.h.
|
inline |
Definition at line 118 of file qsizepolicy.h.
Referenced by pick(), qSmartMaxSize(), qSmartMinSize(), QToolBarAreaLayoutItem::realSizeHint(), QWidgetItem::setGeometry(), QStackedLayout::sizeHint(), QToolBarLayout::updateGeomArray(), and QAxServerBase::updateGeometry().
|
inline |
Definition at line 144 of file qsizepolicy.h.
Referenced by QSplitterPrivate::doResize(), QSplitterPrivate::findWidget(), QSplitterLayoutStruct::getWidgetSize(), QBoxLayoutItem::hStretch(), and QToolBarLayout::updateGeomArray().
| QSizePolicy::operator QVariant | ( | ) | const |
Returns a QVariant storing this QSizePolicy.
Definition at line 80 of file qlayoutitem.cpp.
|
inline |
Definition at line 141 of file qsizepolicy.h.
|
inline |
Definition at line 140 of file qsizepolicy.h.
| void QSizePolicy::setControlType | ( | ControlType | type | ) |
Definition at line 1644 of file qlayout.cpp.
|
inline |
Definition at line 135 of file qsizepolicy.h.
Referenced by QCommandLinkButtonPrivate::init(), QLabelPrivate::updateLabel(), and QMessageBoxPrivate::updateSize().
|
inline |
Definition at line 122 of file qsizepolicy.h.
Referenced by QAbstractScrollAreaScrollBarContainer::addWidget().
|
inline |
Definition at line 146 of file qsizepolicy.h.
Referenced by QSplitterPrivate::findWidget(), and QSplitter::setStretchFactor().
|
inline |
Definition at line 123 of file qsizepolicy.h.
Referenced by QAbstractScrollAreaScrollBarContainer::addWidget().
|
inline |
Definition at line 147 of file qsizepolicy.h.
Referenced by QSplitterPrivate::findWidget(), and QSplitter::setStretchFactor().
|
inline |
Definition at line 137 of file qsizepolicy.h.
|
inline |
Definition at line 229 of file qsizepolicy.h.
Referenced by QProgressBarPrivate::init(), QSliderPrivate::init(), QSplitterPrivate::init(), QScrollBarPrivate::init(), QDialogButtonBoxPrivate::initLayout(), QSplitter::setOrientation(), QProgressBar::setOrientation(), and QAbstractSlider::setOrientation().
|
inline |
Definition at line 119 of file qsizepolicy.h.
Referenced by pick(), qSmartMaxSize(), qSmartMinSize(), QToolBarAreaLayoutItem::realSizeHint(), QWidgetItem::setGeometry(), QWidget::show(), QStackedLayout::sizeHint(), and QAxServerBase::updateGeometry().
|
inline |
Definition at line 145 of file qsizepolicy.h.
Referenced by QSplitterPrivate::doResize(), QSplitterPrivate::findWidget(), QSplitterLayoutStruct::getWidgetSize(), QToolBarLayout::updateGeomArray(), QBoxLayoutItem::vStretch(), and QFormLayoutItem::vStretch().
|
friend |
Writes the size policy to the data stream stream.
Definition at line 1687 of file qlayout.cpp.
|
friend |
Reads the size policy from the data stream stream.
Definition at line 1703 of file qlayout.cpp.
|
private |
Definition at line 204 of file qsizepolicy.h.
Referenced by operator!=(), and operator==().