Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QGridLayoutRowData Class Reference

#include <qgridlayoutengine_p.h>

+ Collaboration diagram for QGridLayoutRowData:

Public Member Functions

void reset (int count)
 
void distributeMultiCells (const QGridLayoutRowInfo &rowInfo, bool snapToPixelGrid)
 
void calculateGeometries (int start, int end, qreal targetSize, qreal *positions, qreal *sizes, qreal *descents, const QGridLayoutBox &totalBox, const QGridLayoutRowInfo &rowInfo, bool snapToPixelGrid)
 
QGridLayoutBox totalBox (int start, int end) const
 
void stealBox (int start, int end, int which, qreal *positions, qreal *sizes)
 

Public Attributes

QBitArray ignore
 
QList< QGridLayoutBoxboxes
 
MultiCellMap multiCellMap
 
QList< int > stretches
 
QList< qrealspacings
 
bool hasIgnoreFlag
 

Detailed Description

Definition at line 200 of file qgridlayoutengine_p.h.

Member Function Documentation

◆ calculateGeometries()

void QGridLayoutRowData::calculateGeometries ( int  start,
int  end,
qreal  targetSize,
qreal positions,
qreal sizes,
qreal descents,
const QGridLayoutBox totalBox,
const QGridLayoutRowInfo rowInfo,
bool  snapToPixelGrid 
)

Definition at line 170 of file qgridlayoutengine.cpp.

References QList< T >::at(), boxes, QGridLayoutRowInfo::boxes, fixedDescent(), growthFactorBelowPreferredSize(), hasIgnoreFlag, i, ignore, MaximumSize, MinimumSize, positions, PreferredSize, Q_ASSERT, QGridLayoutBox::q_maximumSize, QGridLayoutBox::q_minimumSize, QGridLayoutBox::q_preferredSize, qMax(), qMin(), stealBox(), stretches, QBitArray::testBit(), totalBox(), and QList< T >::value().

Referenced by distributeMultiCells(), and QGridLayoutEngine::sizeHint().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ distributeMultiCells()

void QGridLayoutRowData::distributeMultiCells ( const QGridLayoutRowInfo rowInfo,
bool  snapToPixelGrid 
)

Definition at line 127 of file qgridlayoutengine.cpp.

References boxes, calculateGeometries(), QMap< Key, T >::clear(), compare(), QMap< Key, T >::constBegin(), QMap< Key, T >::constEnd(), QVarLengthArray< T, Prealloc >::data(), i, j, multiCellMap, NSizes, qMax(), stretches, and totalBox().

+ Here is the call graph for this function:

◆ reset()

void QGridLayoutRowData::reset ( int  count)

Definition at line 117 of file qgridlayoutengine.cpp.

References boxes, QMap< Key, T >::clear(), QBitArray::fill(), QList< T >::fill(), hasIgnoreFlag, ignore, multiCellMap, spacings, and stretches.

+ Here is the call graph for this function:

◆ stealBox()

void QGridLayoutRowData::stealBox ( int  start,
int  end,
int  which,
qreal positions,
qreal sizes 
)

Definition at line 431 of file qgridlayoutengine.cpp.

References QList< T >::at(), boxes, i, ignore, positions, QGridLayoutBox::q_sizes(), spacings, and QBitArray::testBit().

Referenced by calculateGeometries().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ totalBox()

QGridLayoutBox QGridLayoutRowData::totalBox ( int  start,
int  end 
) const

Definition at line 415 of file qgridlayoutengine.cpp.

References QList< T >::at(), boxes, i, ignore, spacings, stretches, and QBitArray::testBit().

Referenced by calculateGeometries(), and distributeMultiCells().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ boxes

QList<QGridLayoutBox> QGridLayoutRowData::boxes

◆ hasIgnoreFlag

bool QGridLayoutRowData::hasIgnoreFlag

Definition at line 220 of file qgridlayoutengine_p.h.

Referenced by calculateGeometries(), and reset().

◆ ignore

QBitArray QGridLayoutRowData::ignore

Definition at line 215 of file qgridlayoutengine_p.h.

Referenced by calculateGeometries(), reset(), stealBox(), and totalBox().

◆ multiCellMap

MultiCellMap QGridLayoutRowData::multiCellMap

Definition at line 217 of file qgridlayoutengine_p.h.

Referenced by distributeMultiCells(), and reset().

◆ spacings

QList<qreal> QGridLayoutRowData::spacings

Definition at line 219 of file qgridlayoutengine_p.h.

Referenced by reset(), stealBox(), and totalBox().

◆ stretches

QList<int> QGridLayoutRowData::stretches

Definition at line 218 of file qgridlayoutengine_p.h.

Referenced by calculateGeometries(), distributeMultiCells(), reset(), and totalBox().


The documentation for this class was generated from the following files: