KD Reports API Documentation  2.2
Public Member Functions | Public Attributes | List of all members
KDReports::TableLayout Class Reference

#include <KDReportsTableLayout_p.h>

Public Member Functions

 TableLayout ()
 
QSize decorationSize (const QVariant &cellDecoration) const
 
void ensureScalingFactorForHeight (qreal maxRowHeight)
 
void ensureScalingFactorForWidth (qreal scalingFactor)
 
qreal hHeaderHeight () const
 
QFont horizontalHeaderScaledFont () const
 
qreal rowHeight () const
 
qreal scaledCellPadding () const
 
QFont scaledFont () const
 
qreal scalingFactor () const
 
void setInitialFontScalingFactor (qreal fontScalingFactor)
 
void updateColumnWidths ()
 
QFont verticalHeaderScaledFont () const
 
qreal vHeaderWidth () const
 

Public Attributes

QFont m_cellFont
 
qreal m_cellPadding
 
QVector< qreal > m_columnWidths
 
qreal m_fixedRowHeight
 
QFont m_horizontalHeaderFont
 
bool m_horizontalHeaderVisible
 
QSize m_iconSize
 
QAbstractItemModel * m_model
 
QFont m_verticalHeaderFont
 
bool m_verticalHeaderVisible
 
QVector< QString > m_widestTextPerColumn
 

Detailed Description

Definition at line 24 of file KDReportsTableLayout_p.h.

Constructor & Destructor Documentation

◆ TableLayout()

TableLayout::TableLayout ( )

Definition at line 20 of file KDReportsTableLayout.cpp.

Member Function Documentation

◆ decorationSize()

QSize KDReports::TableLayout::decorationSize ( const QVariant &  cellDecoration) const

Definition at line 245 of file KDReportsTableLayout.cpp.

◆ ensureScalingFactorForHeight()

void TableLayout::ensureScalingFactorForHeight ( qreal  maxRowHeight)

◆ ensureScalingFactorForWidth()

void TableLayout::ensureScalingFactorForWidth ( qreal  scalingFactor)

◆ hHeaderHeight()

qreal KDReports::TableLayout::hHeaderHeight ( ) const
inline

Definition at line 44 of file KDReportsTableLayout_p.h.

◆ horizontalHeaderScaledFont()

QFont KDReports::TableLayout::horizontalHeaderScaledFont ( ) const
inline

Definition at line 55 of file KDReportsTableLayout_p.h.

References KDReports::FontScaler::font().

◆ rowHeight()

qreal KDReports::TableLayout::rowHeight ( ) const
inline

Definition at line 34 of file KDReportsTableLayout_p.h.

◆ scaledCellPadding()

qreal KDReports::TableLayout::scaledCellPadding ( ) const
inline

Definition at line 71 of file KDReportsTableLayout_p.h.

References m_cellPadding, and scalingFactor().

Referenced by ensureScalingFactorForHeight(), and updateColumnWidths().

◆ scaledFont()

QFont KDReports::TableLayout::scaledFont ( ) const
inline

Definition at line 51 of file KDReportsTableLayout_p.h.

References KDReports::FontScaler::font().

◆ scalingFactor()

qreal KDReports::TableLayout::scalingFactor ( ) const
inline

◆ setInitialFontScalingFactor()

void TableLayout::setInitialFontScalingFactor ( qreal  fontScalingFactor)

◆ updateColumnWidths()

void TableLayout::updateColumnWidths ( )

◆ verticalHeaderScaledFont()

QFont KDReports::TableLayout::verticalHeaderScaledFont ( ) const
inline

Definition at line 59 of file KDReportsTableLayout_p.h.

References KDReports::FontScaler::font().

◆ vHeaderWidth()

qreal KDReports::TableLayout::vHeaderWidth ( ) const
inline

Definition at line 39 of file KDReportsTableLayout_p.h.

Member Data Documentation

◆ m_cellFont

QFont KDReports::TableLayout::m_cellFont

Definition at line 80 of file KDReportsTableLayout_p.h.

Referenced by setInitialFontScalingFactor().

◆ m_cellPadding

qreal KDReports::TableLayout::m_cellPadding

Definition at line 88 of file KDReportsTableLayout_p.h.

Referenced by ensureScalingFactorForHeight(), and scaledCellPadding().

◆ m_columnWidths

QVector<qreal> KDReports::TableLayout::m_columnWidths

Definition at line 89 of file KDReportsTableLayout_p.h.

Referenced by updateColumnWidths().

◆ m_fixedRowHeight

qreal KDReports::TableLayout::m_fixedRowHeight

Definition at line 90 of file KDReportsTableLayout_p.h.

◆ m_horizontalHeaderFont

QFont KDReports::TableLayout::m_horizontalHeaderFont

Definition at line 81 of file KDReportsTableLayout_p.h.

Referenced by setInitialFontScalingFactor().

◆ m_horizontalHeaderVisible

bool KDReports::TableLayout::m_horizontalHeaderVisible

Definition at line 84 of file KDReportsTableLayout_p.h.

Referenced by setInitialFontScalingFactor(), and updateColumnWidths().

◆ m_iconSize

QSize KDReports::TableLayout::m_iconSize

Definition at line 94 of file KDReportsTableLayout_p.h.

◆ m_model

QAbstractItemModel* KDReports::TableLayout::m_model

Definition at line 78 of file KDReportsTableLayout_p.h.

Referenced by ensureScalingFactorForWidth(), and updateColumnWidths().

◆ m_verticalHeaderFont

QFont KDReports::TableLayout::m_verticalHeaderFont

Definition at line 82 of file KDReportsTableLayout_p.h.

Referenced by setInitialFontScalingFactor().

◆ m_verticalHeaderVisible

bool KDReports::TableLayout::m_verticalHeaderVisible

Definition at line 85 of file KDReportsTableLayout_p.h.

Referenced by setInitialFontScalingFactor(), and updateColumnWidths().

◆ m_widestTextPerColumn

QVector<QString> KDReports::TableLayout::m_widestTextPerColumn

Definition at line 92 of file KDReportsTableLayout_p.h.

Referenced by ensureScalingFactorForWidth(), and updateColumnWidths().


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

© Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/
https://www.kdab.com/development-resources/qt-tools/kd-reports/
Generated by doxygen 1.9.1