![]() |
Qt 6.x
The Qt SDK
|
#include <qgridlayoutengine_p.h>
Inheritance diagram for QGridLayoutItem:
Collaboration diagram for QGridLayoutItem:Public Member Functions | |
| QGridLayoutItem (int row, int column, int rowSpan=1, int columnSpan=1, Qt::Alignment alignment={ }) | |
| virtual | ~QGridLayoutItem () |
| int | firstRow () const |
| int | firstColumn () const |
| int | rowSpan () const |
| int | columnSpan () const |
| int | lastRow () const |
| int | lastColumn () const |
| int | firstRow (Qt::Orientation orientation) const |
| int | firstColumn (Qt::Orientation orientation) const |
| int | lastRow (Qt::Orientation orientation) const |
| int | lastColumn (Qt::Orientation orientation) const |
| int | rowSpan (Qt::Orientation orientation) const |
| int | columnSpan (Qt::Orientation orientation) const |
| void | setFirstRow (int row, Qt::Orientation orientation=Qt::Vertical) |
| void | setRowSpan (int rowSpan, Qt::Orientation orientation=Qt::Vertical) |
| int | stretchFactor (Qt::Orientation orientation) const |
| void | setStretchFactor (int stretch, Qt::Orientation orientation) |
| Qt::Alignment | alignment () const |
| void | setAlignment (Qt::Alignment alignment) |
| virtual QLayoutPolicy::Policy | sizePolicy (Qt::Orientation orientation) const =0 |
| virtual QSizeF | sizeHint (Qt::SizeHint which, const QSizeF &constraint) const =0 |
| virtual bool | isEmpty () const |
| virtual void | setGeometry (const QRectF &rect)=0 |
| virtual bool | hasDynamicConstraint () const |
| virtual Qt::Orientation | dynamicConstraintOrientation () const |
| virtual QLayoutPolicy::ControlTypes | controlTypes (LayoutSide side) const |
| QRectF | geometryWithin (qreal x, qreal y, qreal width, qreal height, qreal rowDescent, Qt::Alignment align, bool snapToPixelGrid) const |
| QGridLayoutBox | box (Qt::Orientation orientation, bool snapToPixelGrid, qreal constraint=-1.0) const |
| void | transpose () |
| void | insertOrRemoveRows (int row, int delta, Qt::Orientation orientation=Qt::Vertical) |
| QSizeF | effectiveMaxSize (const QSizeF &constraint) const |
Definition at line 242 of file qgridlayoutengine_p.h.
| QGridLayoutItem::QGridLayoutItem | ( | int | row, |
| int | column, | ||
| int | rowSpan = 1, |
||
| int | columnSpan = 1, |
||
| Qt::Alignment | alignment = { } |
||
| ) |
Definition at line 474 of file qgridlayoutengine.cpp.
|
inlinevirtual |
Definition at line 247 of file qgridlayoutengine_p.h.
|
inline |
Definition at line 268 of file qgridlayoutengine_p.h.
Referenced by box().
Here is the caller graph for this function:| QGridLayoutBox QGridLayoutItem::box | ( | Qt::Orientation | orientation, |
| bool | snapToPixelGrid, | ||
| qreal | constraint = -1.0 |
||
| ) | const |
Definition at line 551 of file qgridlayoutengine.cpp.
References Qt::AlignBaseline, alignment(), QLayoutPolicy::ExpandFlag, QLayoutPolicy::GrowFlag, QSizeF::height(), Qt::Horizontal, QLayoutPolicy::IgnoreFlag, Qt::MaximumSize, Qt::MinimumDescent, Qt::MinimumSize, policy, Qt::PreferredSize, qCeil(), QLayoutPolicy::ShrinkFlag, sizeHint(), sizePolicy(), and QSizeF::width().
Here is the call graph for this function:
|
inline |
Definition at line 252 of file qgridlayoutengine_p.h.
References Qt::Horizontal.
Referenced by lastColumn().
Here is the caller graph for this function:| int QGridLayoutItem::columnSpan | ( | Qt::Orientation | orientation | ) | const |
Definition at line 508 of file qgridlayoutengine.cpp.
References QHVContainer< T >::transposed().
Here is the call graph for this function:
|
virtual |
Reimplemented in QGraphicsGridLayoutEngineItem.
Definition at line 546 of file qgridlayoutengine.cpp.
References QLayoutPolicy::DefaultType.
|
inlinevirtual |
Reimplemented in QGraphicsGridLayoutEngineItem.
Definition at line 281 of file qgridlayoutengine_p.h.
References Qt::Horizontal.
Referenced by geometryWithin().
Here is the caller graph for this function:returns the effective maximumSize, will take the sizepolicy into consideration. (i.e. if sizepolicy does not have QLayoutPolicy::Grow, then maxSizeHint will be the preferredSize) Note that effectiveSizeHint does not take sizePolicy into consideration, (since it only evaluates the hints, as the name implies)
Definition at line 683 of file qgridlayoutengine.cpp.
References QLayoutPolicy::GrowFlag, QSizeF::height(), Qt::Horizontal, Qt::MaximumSize, Qt::PreferredSize, sizeHint(), sizePolicy(), Qt::Vertical, and QSizeF::width().
Referenced by geometryWithin().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 250 of file qgridlayoutengine_p.h.
References Qt::Horizontal.
Referenced by lastColumn().
Here is the caller graph for this function:| int QGridLayoutItem::firstColumn | ( | Qt::Orientation | orientation | ) | const |
Definition at line 488 of file qgridlayoutengine.cpp.
References QHVContainer< T >::transposed().
Here is the call graph for this function:
|
inline |
Definition at line 249 of file qgridlayoutengine_p.h.
References Qt::Vertical.
Referenced by insertOrRemoveRows(), lastRow(), and QGraphicsLinearLayoutPrivate::removeGridItem().
Here is the caller graph for this function:| int QGridLayoutItem::firstRow | ( | Qt::Orientation | orientation | ) | const |
Definition at line 483 of file qgridlayoutengine.cpp.
| QRectF QGridLayoutItem::geometryWithin | ( | qreal | x, |
| qreal | y, | ||
| qreal | width, | ||
| qreal | height, | ||
| qreal | rowDescent, | ||
| Qt::Alignment | align, | ||
| bool | snapToPixelGrid | ||
| ) | const |
Definition at line 608 of file qgridlayoutengine.cpp.
References Qt::AlignBaseline, Qt::AlignBottom, Qt::AlignHCenter, Qt::AlignHorizontal_Mask, Qt::AlignRight, Qt::AlignVCenter, Qt::AlignVertical_Mask, dynamicConstraintOrientation(), effectiveMaxSize(), hasDynamicConstraint(), QGridLayoutBox::q_minimumDescent, QGridLayoutBox::q_minimumSize, qMin(), and Qt::Vertical.
Here is the call graph for this function:
|
inlinevirtual |
Reimplemented in QGraphicsGridLayoutEngineItem.
Definition at line 280 of file qgridlayoutengine_p.h.
Referenced by geometryWithin().
Here is the caller graph for this function:| void QGridLayoutItem::insertOrRemoveRows | ( | int | row, |
| int | delta, | ||
| Qt::Orientation | orientation = Qt::Vertical |
||
| ) |
Definition at line 666 of file qgridlayoutengine.cpp.
References firstRow(), lastRow(), rowSpan(), setFirstRow(), and setRowSpan().
Here is the call graph for this function:
|
inlinevirtual |
Reimplemented in QGraphicsGridLayoutEngineItem.
Definition at line 273 of file qgridlayoutengine_p.h.
|
inline |
Definition at line 254 of file qgridlayoutengine_p.h.
| int QGridLayoutItem::lastColumn | ( | Qt::Orientation | orientation | ) | const |
Definition at line 498 of file qgridlayoutengine.cpp.
References columnSpan(), and firstColumn().
Here is the call graph for this function:
|
inline |
Definition at line 253 of file qgridlayoutengine_p.h.
Referenced by insertOrRemoveRows().
Here is the caller graph for this function:| int QGridLayoutItem::lastRow | ( | Qt::Orientation | orientation | ) | const |
Definition at line 493 of file qgridlayoutengine.cpp.
References firstRow(), and rowSpan().
Here is the call graph for this function:
|
inline |
Definition at line 251 of file qgridlayoutengine_p.h.
References Qt::Vertical.
Referenced by insertOrRemoveRows(), lastRow(), and setRowSpan().
Here is the caller graph for this function:| int QGridLayoutItem::rowSpan | ( | Qt::Orientation | orientation | ) | const |
Definition at line 503 of file qgridlayoutengine.cpp.
|
inline |
Definition at line 269 of file qgridlayoutengine_p.h.
References alignment.
| void QGridLayoutItem::setFirstRow | ( | int | row, |
| Qt::Orientation | orientation = Qt::Vertical |
||
| ) |
Definition at line 513 of file qgridlayoutengine.cpp.
Referenced by insertOrRemoveRows().
Here is the caller graph for this function:Implemented in QGraphicsGridLayoutEngineItem, and QQuickGridLayoutItem.
| void QGridLayoutItem::setRowSpan | ( | int | rowSpan, |
| Qt::Orientation | orientation = Qt::Vertical |
||
| ) |
Definition at line 518 of file qgridlayoutengine.cpp.
References rowSpan().
Referenced by insertOrRemoveRows().
Here is the call graph for this function:
Here is the caller graph for this function:| void QGridLayoutItem::setStretchFactor | ( | int | stretch, |
| Qt::Orientation | orientation | ||
| ) |
Definition at line 540 of file qgridlayoutengine.cpp.
References Q_ASSERT.
|
pure virtual |
Implemented in QGraphicsGridLayoutEngineItem, and QQuickGridLayoutItem.
Referenced by box(), and effectiveMaxSize().
Here is the caller graph for this function:
|
pure virtual |
Implemented in QGraphicsGridLayoutEngineItem, and QQuickGridLayoutItem.
Referenced by box(), effectiveMaxSize(), and stretchFactor().
Here is the caller graph for this function:| int QGridLayoutItem::stretchFactor | ( | Qt::Orientation | orientation | ) | const |
Definition at line 523 of file qgridlayoutengine.cpp.
References QLayoutPolicy::ExpandFlag, QLayoutPolicy::GrowFlag, policy, and sizePolicy().
Here is the call graph for this function:| void QGridLayoutItem::transpose | ( | ) |
Definition at line 659 of file qgridlayoutengine.cpp.
References QHVContainer< T >::transpose().
Referenced by QGridLayoutEngine::transpose().
Here is the call graph for this function:
Here is the caller graph for this function: