Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QTextTableData Class Reference
+ Inheritance diagram for QTextTableData:
+ Collaboration diagram for QTextTableData:

Public Member Functions

QFixed cellWidth (int column, int colspan) const
 
void calcRowPosition (int row)
 
QRectF cellRect (const QTextTableCell &cell) const
 
QFixed paddingProperty (const QTextFormat &format, QTextFormat::Property property) const
 
QFixed cellBorderWidth (QTextTable *table, const QTextTableCell &cell, QCss::Edge edge) const
 
QFixed topPadding (QTextTable *table, const QTextTableCell &cell) const
 
QFixed bottomPadding (QTextTable *table, const QTextTableCell &cell) const
 
QFixed leftPadding (QTextTable *table, const QTextTableCell &cell) const
 
QFixed rightPadding (QTextTable *table, const QTextTableCell &cell) const
 
QFixedPoint cellPosition (QTextTable *table, const QTextTableCell &cell) const
 
void updateTableSize ()
 
- Public Member Functions inherited from QTextFrameData
 QTextFrameData ()
 
- Public Member Functions inherited from QTextFrameLayoutData
virtual ~QTextFrameLayoutData ()
 

Public Attributes

QFixed cellSpacing
 
QFixed cellPadding
 
qreal deviceScale
 
QList< QFixedminWidths
 
QList< QFixedmaxWidths
 
QList< QFixedwidths
 
QList< QFixedheights
 
QList< QFixedcolumnPositions
 
QList< QFixedrowPositions
 
QList< QFixedcellVerticalOffsets
 
QFixed effectiveLeftBorder
 
QFixed effectiveTopBorder
 
QFixed effectiveRightBorder
 
QFixed effectiveBottomBorder
 
QFixed headerHeight
 
QFixed borderCell
 
bool borderCollapse
 
bool drawGrid
 
QMultiHash< int, QTextFrame * > childFrameMap
 
- Public Attributes inherited from QTextFrameData
QFixedPoint position
 
QFixedSize size
 
QFixed topMargin
 
QFixed bottomMargin
 
QFixed leftMargin
 
QFixed rightMargin
 
QFixed border
 
QFixed padding
 
QFixed contentsWidth
 
QFixed contentsHeight
 
QFixed oldContentsWidth
 
QFixed effectiveTopMargin
 
QFixed effectiveBottomMargin
 
QFixed minimumWidth
 
QFixed maximumWidth
 
QTextLayoutStructcurrentLayoutStruct
 
bool sizeDirty
 
bool layoutDirty
 
QList< QPointer< QTextFrame > > floats
 

Detailed Description

Definition at line 169 of file qtextdocumentlayout.cpp.

Member Function Documentation

◆ bottomPadding()

QFixed QTextTableData::bottomPadding ( QTextTable * table,
const QTextTableCell & cell ) const
inline

Definition at line 245 of file qtextdocumentlayout.cpp.

References QCss::BottomEdge, cellBorderWidth(), QTextTableCell::format(), paddingProperty(), Q_UNUSED, and QTextFormat::TableCellBottomPadding.

Referenced by QTextDocumentLayoutPrivate::layoutCell(), and QTextDocumentLayoutPrivate::layoutTable().

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

◆ calcRowPosition()

void QTextTableData::calcRowPosition ( int row)
inline

Definition at line 204 of file qtextdocumentlayout.cpp.

References QList< T >::at(), borderCell, cellSpacing, heights, and rowPositions.

Referenced by QTextDocumentLayoutPrivate::layoutTable().

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

◆ cellBorderWidth()

QFixed QTextTableData::cellBorderWidth ( QTextTable * table,
const QTextTableCell & cell,
QCss::Edge edge ) const
inline

Definition at line 224 of file qtextdocumentlayout.cpp.

References axisEdgeData(), borderCollapse, deviceScale, and QFixed::fromReal().

Referenced by bottomPadding(), leftPadding(), rightPadding(), and topPadding().

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

◆ cellPosition()

QFixedPoint QTextTableData::cellPosition ( QTextTable * table,
const QTextTableCell & cell ) const
inline

Definition at line 281 of file qtextdocumentlayout.cpp.

References cellPosition(), QTextTableCell::column(), leftPadding(), QTextTableCell::row(), and topPadding().

Referenced by cellPosition(), and QTextDocumentLayoutPrivate::hitTest().

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

◆ cellRect()

QRectF QTextTableData::cellRect ( const QTextTableCell & cell) const

Definition at line 329 of file qtextdocumentlayout.cpp.

References QList< T >::at(), QTextTableCell::column(), columnPositions, QTextTableCell::columnSpan(), heights, QTextTableCell::row(), rowPositions, QTextTableCell::rowSpan(), QFixed::toReal(), and widths.

Referenced by QTextDocumentLayoutPrivate::drawFrame(), QTextDocumentLayoutPrivate::drawTableCellBorder(), QTextDocumentLayoutPrivate::hitTest(), and QTextDocumentLayout::tableCellBoundingRect().

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

◆ cellWidth()

QFixed QTextTableData::cellWidth ( int column,
int colspan ) const
inline

Definition at line 200 of file qtextdocumentlayout.cpp.

References QList< T >::at(), columnPositions, and widths.

Referenced by QTextDocumentLayoutPrivate::layoutTable().

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

◆ leftPadding()

QFixed QTextTableData::leftPadding ( QTextTable * table,
const QTextTableCell & cell ) const
inline

Definition at line 257 of file qtextdocumentlayout.cpp.

References cellBorderWidth(), QTextTableCell::format(), QCss::LeftEdge, paddingProperty(), Q_UNUSED, and QTextFormat::TableCellLeftPadding.

Referenced by cellPosition(), QTextDocumentLayoutPrivate::drawTableCell(), and QTextDocumentLayoutPrivate::layoutTable().

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

◆ paddingProperty()

QFixed QTextTableData::paddingProperty ( const QTextFormat & format,
QTextFormat::Property property ) const
inline

Definition at line 212 of file qtextdocumentlayout.cpp.

References cellPadding, deviceScale, QFixed::fromReal(), property, and Q_ASSERT.

Referenced by bottomPadding(), QTextDocumentLayoutPrivate::layoutCell(), leftPadding(), rightPadding(), and topPadding().

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

◆ rightPadding()

QFixed QTextTableData::rightPadding ( QTextTable * table,
const QTextTableCell & cell ) const
inline

Definition at line 269 of file qtextdocumentlayout.cpp.

References cellBorderWidth(), QTextTableCell::format(), paddingProperty(), Q_UNUSED, QCss::RightEdge, and QTextFormat::TableCellRightPadding.

Referenced by QTextDocumentLayoutPrivate::layoutTable().

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

◆ topPadding()

QFixed QTextTableData::topPadding ( QTextTable * table,
const QTextTableCell & cell ) const
inline

Definition at line 233 of file qtextdocumentlayout.cpp.

References cellBorderWidth(), QTextTableCell::format(), paddingProperty(), Q_UNUSED, QTextFormat::TableCellTopPadding, and QCss::TopEdge.

Referenced by cellPosition(), QTextDocumentLayoutPrivate::drawTableCell(), QTextDocumentLayoutPrivate::layoutCell(), and QTextDocumentLayoutPrivate::layoutTable().

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

◆ updateTableSize()

void QTextTableData::updateTableSize ( )

Definition at line 317 of file qtextdocumentlayout.cpp.

References QTextFrameData::bottomMargin, cellSpacing, QList< T >::constLast(), QTextFrameData::contentsHeight, QTextFrameData::contentsWidth, effectiveBottomBorder, QTextFrameData::effectiveBottomMargin, effectiveLeftBorder, effectiveRightBorder, effectiveTopBorder, QTextFrameData::effectiveTopMargin, heights, QTextFrameData::leftMargin, QTextFrameData::padding, QTextFrameData::rightMargin, rowPositions, and QTextFrameData::topMargin.

Referenced by QTextDocumentLayoutPrivate::layoutTable().

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

Member Data Documentation

◆ borderCell

QFixed QTextTableData::borderCell

◆ borderCollapse

◆ cellPadding

◆ cellSpacing

◆ cellVerticalOffsets

QList<QFixed> QTextTableData::cellVerticalOffsets

◆ childFrameMap

◆ columnPositions

QList<QFixed> QTextTableData::columnPositions

◆ deviceScale

qreal QTextTableData::deviceScale

◆ drawGrid

bool QTextTableData::drawGrid

◆ effectiveBottomBorder

QFixed QTextTableData::effectiveBottomBorder

◆ effectiveLeftBorder

QFixed QTextTableData::effectiveLeftBorder

◆ effectiveRightBorder

QFixed QTextTableData::effectiveRightBorder

◆ effectiveTopBorder

QFixed QTextTableData::effectiveTopBorder

◆ headerHeight

◆ heights

QList<QFixed> QTextTableData::heights

◆ maxWidths

QList<QFixed> QTextTableData::maxWidths

Definition at line 175 of file qtextdocumentlayout.cpp.

Referenced by QTextDocumentLayoutPrivate::layoutTable().

◆ minWidths

QList<QFixed> QTextTableData::minWidths

Definition at line 174 of file qtextdocumentlayout.cpp.

Referenced by QTextDocumentLayoutPrivate::layoutTable().

◆ rowPositions

◆ widths

QList<QFixed> QTextTableData::widths

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