![]() |
Qt 6.x
The Qt SDK
|
Definition at line 55 of file qboxlayout.cpp.
|
inline |
Definition at line 59 of file qboxlayout.cpp.
QBoxLayoutPrivate::~QBoxLayoutPrivate | ( | ) |
Definition at line 94 of file qboxlayout.cpp.
void QBoxLayoutPrivate::calcHfw | ( | int | w | ) |
Definition at line 365 of file qboxlayout.cpp.
References QList< T >::at(), dir, geomArray, hfwHeight, hfwMinHeight, hfwWidth, horz(), i, list, Q_ASSERT, qGeomCalc(), qMax(), QList< T >::size(), and spacing.
|
inline |
Definition at line 84 of file qboxlayout.cpp.
References QList< T >::isEmpty(), list, and QList< T >::takeFirst().
void QBoxLayoutPrivate::effectiveMargins | ( | int * | left, |
int * | top, | ||
int * | right, | ||
int * | bottom | ||
) | const |
The purpose of this function is to make sure that widgets are not laid out outside its layout. E.g. the layoutItemRect margins are only meant to take of the surrounding margins/spacings. However, if the margin is 0, it can easily cover the area of a widget above it.
Definition at line 108 of file qboxlayout.cpp.
References QList< T >::at(), QRect::bottom(), bottomMargin, QBoxLayout::BottomToTop, QList< T >::count(), dir, QLayoutItem::geometry(), horz(), i, QBoxLayoutItem::item, QGuiApplication::layoutDirection, QWidget::layoutDirection, QRect::left(), leftMargin, list, QWidget::parentWidget(), qMax(), qSwap(), QRect::right(), rightMargin, Qt::RightToLeft, QBoxLayout::RightToLeft, QRect::top(), topMargin, QList< T >::value(), and QLayoutItem::widget().
Referenced by setupGeom().
|
overridevirtual |
Reimplemented from QLayoutPrivate.
Definition at line 396 of file qboxlayout.cpp.
References item, list, and QList< T >::value().
|
inline |
Definition at line 62 of file qboxlayout.cpp.
References QList< T >::clear(), dirty, geomArray, hfwHeight, and hfwWidth.
void QBoxLayoutPrivate::setupGeom | ( | ) |
Definition at line 218 of file qboxlayout.cpp.
References QList< T >::at(), bottomMargin, QBoxLayout::BottomToTop, QSize::boundedTo(), QList< T >::clear(), QStyle::combinedLayoutSpacing(), dir, dirty, effectiveMargins(), QSize::expandedTo(), expanding, geomArray, QLayoutItem::geometry(), QWidget::geometry, hasHfw, QSize::height(), hint(), Qt::Horizontal, horz(), i, QBoxLayoutItem::item, leftMargin, list, maxSize, minSize, QWidget::parentWidget(), QLAYOUTSIZE_MAX, qMax(), qMaxExpCalc(), qSwap(), rightMargin, QBoxLayout::RightToLeft, QList< T >::size(), sizeHint, spacing, QRect::top(), topMargin, QBoxLayout::TopToBottom, Qt::Vertical, QLayoutItem::widget(), and QSize::width().
int QBoxLayoutPrivate::validateIndex | ( | int | index | ) | const |
Definition at line 411 of file qboxlayout.cpp.
References list, Q_ASSERT_X, and QList< T >::size().
int QBoxLayoutPrivate::bottomMargin |
Definition at line 77 of file qboxlayout.cpp.
Referenced by effectiveMargins(), and setupGeom().
QBoxLayout::Direction QBoxLayoutPrivate::dir |
Definition at line 81 of file qboxlayout.cpp.
Referenced by calcHfw(), effectiveMargins(), and setupGeom().
uint QBoxLayoutPrivate::dirty |
Definition at line 80 of file qboxlayout.cpp.
Referenced by setDirty(), and setupGeom().
Qt::Orientations QBoxLayoutPrivate::expanding |
Definition at line 78 of file qboxlayout.cpp.
Referenced by setupGeom().
QList<QLayoutStruct> QBoxLayoutPrivate::geomArray |
Definition at line 70 of file qboxlayout.cpp.
Referenced by calcHfw(), setDirty(), and setupGeom().
uint QBoxLayoutPrivate::hasHfw |
Definition at line 79 of file qboxlayout.cpp.
Referenced by setupGeom().
int QBoxLayoutPrivate::hfwHeight |
Definition at line 72 of file qboxlayout.cpp.
Referenced by calcHfw(), and setDirty().
int QBoxLayoutPrivate::hfwMinHeight |
Definition at line 73 of file qboxlayout.cpp.
Referenced by calcHfw().
int QBoxLayoutPrivate::hfwWidth |
Definition at line 71 of file qboxlayout.cpp.
Referenced by calcHfw(), and setDirty().
int QBoxLayoutPrivate::leftMargin |
Definition at line 77 of file qboxlayout.cpp.
Referenced by effectiveMargins(), and setupGeom().
QList<QBoxLayoutItem *> QBoxLayoutPrivate::list |
Definition at line 69 of file qboxlayout.cpp.
Referenced by calcHfw(), deleteAll(), effectiveMargins(), replaceAt(), setupGeom(), and validateIndex().
QSize QBoxLayoutPrivate::maxSize |
Definition at line 76 of file qboxlayout.cpp.
Referenced by setupGeom().
QSize QBoxLayoutPrivate::minSize |
Definition at line 75 of file qboxlayout.cpp.
Referenced by setupGeom().
int QBoxLayoutPrivate::rightMargin |
Definition at line 77 of file qboxlayout.cpp.
Referenced by effectiveMargins(), and setupGeom().
QSize QBoxLayoutPrivate::sizeHint |
Definition at line 74 of file qboxlayout.cpp.
Referenced by setupGeom().
int QBoxLayoutPrivate::spacing |
Definition at line 82 of file qboxlayout.cpp.
Referenced by calcHfw(), and setupGeom().
int QBoxLayoutPrivate::topMargin |
Definition at line 77 of file qboxlayout.cpp.
Referenced by effectiveMargins(), and setupGeom().