Qt 4.8
|
#include <qgridlayoutengine_p.h>
Public Functions | |
Qt::Alignment | alignment () const |
QGridLayoutBox | box (Qt::Orientation orientation, qreal constraint=-1.0) const |
int | columnSpan () const |
int | columnSpan (Qt::Orientation orientation) const |
QSizePolicy::ControlTypes | controlTypes (LayoutSide side) const |
void | dump (int indent=0) const |
Qt::Orientation | dynamicConstraintOrientation () const |
QSizeF | effectiveMaxSize (const QSizeF &constraint) const |
int | firstColumn () const |
int | firstColumn (Qt::Orientation orientation) const |
int | firstRow () const |
int | firstRow (Qt::Orientation orientation) const |
QRectF | geometryWithin (qreal x, qreal y, qreal width, qreal height, qreal rowDescent) const |
bool | hasDynamicConstraint () const |
void | insertOrRemoveRows (int row, int delta, Qt::Orientation orientation=Qt::Vertical) |
int | lastColumn () const |
int | lastColumn (Qt::Orientation orientation) const |
int | lastRow () const |
int | lastRow (Qt::Orientation orientation) const |
QGraphicsLayoutItem * | layoutItem () const |
QGridLayoutItem (QGridLayoutEngine *engine, QGraphicsLayoutItem *layoutItem, int row, int column, int rowSpan=1, int columnSpan=1, Qt::Alignment alignment=0, int itemAtIndex=-1) | |
int | rowSpan () const |
int | rowSpan (Qt::Orientation orientation) const |
void | setAlignment (Qt::Alignment alignment) |
void | setFirstRow (int row, Qt::Orientation orientation=Qt::Vertical) |
void | setGeometry (const QRectF &rect) |
void | setRowSpan (int rowSpan, Qt::Orientation orientation=Qt::Vertical) |
void | setStretchFactor (int stretch, Qt::Orientation orientation) |
QSizeF | sizeHint (Qt::SizeHint which, const QSizeF &constraint=QSizeF()) const |
QSizePolicy::Policy | sizePolicy (Qt::Orientation orientation) const |
int | stretchFactor (Qt::Orientation orientation) const |
void | transpose () |
Properties | |
Qt::Alignment | q_alignment |
QGridLayoutEngine * | q_engine |
int | q_firstRows [NOrientations] |
QGraphicsLayoutItem * | q_layoutItem |
int | q_rowSpans [NOrientations] |
int | q_stretches [NOrientations] |
Definition at line 254 of file qgridlayoutengine_p.h.
QGridLayoutItem::QGridLayoutItem | ( | QGridLayoutEngine * | engine, |
QGraphicsLayoutItem * | layoutItem, | ||
int | row, | ||
int | column, | ||
int | rowSpan = 1 , |
||
int | columnSpan = 1 , |
||
Qt::Alignment | alignment = 0 , |
||
int | itemAtIndex = -1 |
||
) |
Definition at line 487 of file qgridlayoutengine.cpp.
|
inline |
Definition at line 280 of file qgridlayoutengine_p.h.
Referenced by QGridLayoutEngine::effectiveAlignment(), and QGridLayoutEngine::setRowAlignment().
QGridLayoutBox QGridLayoutItem::box | ( | Qt::Orientation | orientation, |
qreal | constraint = -1.0 |
||
) | const |
Definition at line 600 of file qgridlayoutengine.cpp.
Referenced by QGridLayoutEngine::fillRowData(), and geometryWithin().
|
inline |
Definition at line 264 of file qgridlayoutengine_p.h.
Referenced by dump(), QGridLayoutEngine::fillRowData(), lastColumn(), QGridLayoutItem(), and QGridLayoutEngine::setGeometries().
int QGridLayoutItem::columnSpan | ( | Qt::Orientation | orientation | ) | const |
Definition at line 527 of file qgridlayoutengine.cpp.
QSizePolicy::ControlTypes QGridLayoutItem::controlTypes | ( | LayoutSide | side | ) | const |
Definition at line 590 of file qgridlayoutengine.cpp.
Referenced by QGridLayoutEngine::fillRowData().
void QGridLayoutItem::dump | ( | int | indent = 0 | ) | const |
Definition at line 754 of file qgridlayoutengine.cpp.
Qt::Orientation QGridLayoutItem::dynamicConstraintOrientation | ( | ) | const |
Definition at line 582 of file qgridlayoutengine.cpp.
Referenced by QGridLayoutEngine::ensureDynamicConstraint(), QGridLayoutEngine::fillRowData(), and geometryWithin().
Definition at line 730 of file qgridlayoutengine.cpp.
Referenced by geometryWithin().
|
inline |
Definition at line 262 of file qgridlayoutengine_p.h.
Referenced by dump(), QGridLayoutEngine::effectiveAlignment(), QGridLayoutEngine::fillRowData(), QGridLayoutEngine::insertItem(), lastColumn(), QGridLayoutEngine::regenerateGrid(), QGridLayoutEngine::removeItem(), and QGridLayoutEngine::setGeometries().
int QGridLayoutItem::firstColumn | ( | Qt::Orientation | orientation | ) | const |
Definition at line 507 of file qgridlayoutengine.cpp.
|
inline |
Definition at line 261 of file qgridlayoutengine_p.h.
Referenced by dump(), QGridLayoutEngine::effectiveAlignment(), QGridLayoutEngine::ensureEffectiveFirstAndLastRows(), QGridLayoutEngine::fillRowData(), QGridLayoutEngine::insertItem(), insertOrRemoveRows(), lastRow(), QGridLayoutEngine::regenerateGrid(), QGraphicsLinearLayoutPrivate::removeGridItem(), QGridLayoutEngine::removeItem(), and QGridLayoutEngine::setGeometries().
int QGridLayoutItem::firstRow | ( | Qt::Orientation | orientation | ) | const |
Definition at line 502 of file qgridlayoutengine.cpp.
QRectF QGridLayoutItem::geometryWithin | ( | qreal | x, |
qreal | y, | ||
qreal | width, | ||
qreal | height, | ||
qreal | rowDescent | ||
) | const |
Definition at line 648 of file qgridlayoutengine.cpp.
Referenced by QGridLayoutEngine::fillRowData(), and QGridLayoutEngine::setGeometries().
bool QGridLayoutItem::hasDynamicConstraint | ( | ) | const |
Definition at line 576 of file qgridlayoutengine.cpp.
Referenced by QGridLayoutEngine::ensureDynamicConstraint(), QGridLayoutEngine::fillRowData(), geometryWithin(), and QGridLayoutEngine::sizeHint().
void QGridLayoutItem::insertOrRemoveRows | ( | int | row, |
int | delta, | ||
Qt::Orientation | orientation = Qt::Vertical |
||
) |
Definition at line 713 of file qgridlayoutengine.cpp.
|
inline |
Definition at line 266 of file qgridlayoutengine_p.h.
Referenced by QGridLayoutEngine::cellRect(), QGridLayoutEngine::fillRowData(), QGridLayoutEngine::insertItem(), QGridLayoutEngine::regenerateGrid(), QGridLayoutEngine::removeItem(), and QGridLayoutEngine::setGeometries().
int QGridLayoutItem::lastColumn | ( | Qt::Orientation | orientation | ) | const |
Definition at line 517 of file qgridlayoutengine.cpp.
|
inline |
Definition at line 265 of file qgridlayoutengine_p.h.
Referenced by QGridLayoutEngine::cellRect(), QGridLayoutEngine::ensureEffectiveFirstAndLastRows(), QGridLayoutEngine::insertItem(), insertOrRemoveRows(), QGridLayoutEngine::regenerateGrid(), QGridLayoutEngine::removeItem(), and QGridLayoutEngine::setGeometries().
int QGridLayoutItem::lastRow | ( | Qt::Orientation | orientation | ) | const |
Definition at line 512 of file qgridlayoutengine.cpp.
|
inline |
Definition at line 293 of file qgridlayoutengine_p.h.
Referenced by effectiveMaxSize(), and QGridLayoutEngine::findLayoutItem().
|
inline |
Definition at line 263 of file qgridlayoutengine_p.h.
Referenced by dump(), QGridLayoutEngine::fillRowData(), insertOrRemoveRows(), lastRow(), QGridLayoutItem(), QGridLayoutEngine::setGeometries(), and setRowSpan().
int QGridLayoutItem::rowSpan | ( | Qt::Orientation | orientation | ) | const |
Definition at line 522 of file qgridlayoutengine.cpp.
|
inline |
Definition at line 281 of file qgridlayoutengine_p.h.
void QGridLayoutItem::setFirstRow | ( | int | row, |
Qt::Orientation | orientation = Qt::Vertical |
||
) |
Definition at line 532 of file qgridlayoutengine.cpp.
Referenced by insertOrRemoveRows().
void QGridLayoutItem::setGeometry | ( | const QRectF & | rect | ) |
Definition at line 701 of file qgridlayoutengine.cpp.
Referenced by QGridLayoutEngine::setGeometries().
void QGridLayoutItem::setRowSpan | ( | int | rowSpan, |
Qt::Orientation | orientation = Qt::Vertical |
||
) |
Definition at line 537 of file qgridlayoutengine.cpp.
Referenced by insertOrRemoveRows().
void QGridLayoutItem::setStretchFactor | ( | int | stretch, |
Qt::Orientation | orientation | ||
) |
Definition at line 559 of file qgridlayoutengine.cpp.
QSizeF QGridLayoutItem::sizeHint | ( | Qt::SizeHint | which, |
const QSizeF & | constraint = QSizeF() |
||
) | const |
Definition at line 595 of file qgridlayoutengine.cpp.
Referenced by box().
QSizePolicy::Policy QGridLayoutItem::sizePolicy | ( | Qt::Orientation | orientation | ) | const |
Definition at line 565 of file qgridlayoutengine.cpp.
Referenced by box(), dump(), effectiveMaxSize(), QGridLayoutEngine::fillRowData(), and stretchFactor().
int QGridLayoutItem::stretchFactor | ( | Qt::Orientation | orientation | ) | const |
Definition at line 542 of file qgridlayoutengine.cpp.
Referenced by QGridLayoutEngine::fillRowData().
void QGridLayoutItem::transpose | ( | ) |
Definition at line 706 of file qgridlayoutengine.cpp.
|
private |
Definition at line 310 of file qgridlayoutengine_p.h.
Referenced by dump().
|
private |
Definition at line 305 of file qgridlayoutengine_p.h.
Referenced by geometryWithin(), and QGridLayoutItem().
|
private |
Definition at line 307 of file qgridlayoutengine_p.h.
Referenced by firstColumn(), firstRow(), QGridLayoutItem(), setFirstRow(), and transpose().
|
private |
Definition at line 306 of file qgridlayoutengine_p.h.
Referenced by controlTypes(), dump(), dynamicConstraintOrientation(), hasDynamicConstraint(), setGeometry(), sizeHint(), and sizePolicy().
|
private |
Definition at line 308 of file qgridlayoutengine_p.h.
Referenced by columnSpan(), QGridLayoutItem(), rowSpan(), setRowSpan(), and transpose().
|
private |
Definition at line 309 of file qgridlayoutengine_p.h.
Referenced by dump(), QGridLayoutItem(), setStretchFactor(), stretchFactor(), and transpose().