KD Reports API Documentation  2.0
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 30 of file KDReportsTableLayout_p.h.

Constructor & Destructor Documentation

◆ TableLayout()

TableLayout::TableLayout ( )

Definition at line 26 of file KDReportsTableLayout.cpp.

Member Function Documentation

◆ decorationSize()

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

Definition at line 251 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 49 of file KDReportsTableLayout_p.h.

References KDReports::FontScaler::font().

◆ rowHeight()

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

Definition at line 40 of file KDReportsTableLayout_p.h.

◆ scaledCellPadding()

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

Definition at line 56 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 48 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 50 of file KDReportsTableLayout_p.h.

References KDReports::FontScaler::font().

◆ vHeaderWidth()

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

Definition at line 42 of file KDReportsTableLayout_p.h.

Member Data Documentation

◆ m_cellFont

QFont KDReports::TableLayout::m_cellFont

Definition at line 62 of file KDReportsTableLayout_p.h.

Referenced by setInitialFontScalingFactor().

◆ m_cellPadding

qreal KDReports::TableLayout::m_cellPadding

Definition at line 70 of file KDReportsTableLayout_p.h.

Referenced by ensureScalingFactorForHeight(), and scaledCellPadding().

◆ m_columnWidths

QVector<qreal> KDReports::TableLayout::m_columnWidths

Definition at line 71 of file KDReportsTableLayout_p.h.

Referenced by updateColumnWidths().

◆ m_fixedRowHeight

qreal KDReports::TableLayout::m_fixedRowHeight

Definition at line 72 of file KDReportsTableLayout_p.h.

◆ m_horizontalHeaderFont

QFont KDReports::TableLayout::m_horizontalHeaderFont

Definition at line 63 of file KDReportsTableLayout_p.h.

Referenced by setInitialFontScalingFactor().

◆ m_horizontalHeaderVisible

bool KDReports::TableLayout::m_horizontalHeaderVisible

Definition at line 66 of file KDReportsTableLayout_p.h.

Referenced by setInitialFontScalingFactor(), and updateColumnWidths().

◆ m_iconSize

QSize KDReports::TableLayout::m_iconSize

Definition at line 76 of file KDReportsTableLayout_p.h.

◆ m_model

QAbstractItemModel* KDReports::TableLayout::m_model

Definition at line 60 of file KDReportsTableLayout_p.h.

Referenced by ensureScalingFactorForWidth(), and updateColumnWidths().

◆ m_verticalHeaderFont

QFont KDReports::TableLayout::m_verticalHeaderFont

Definition at line 64 of file KDReportsTableLayout_p.h.

Referenced by setInitialFontScalingFactor().

◆ m_verticalHeaderVisible

bool KDReports::TableLayout::m_verticalHeaderVisible

Definition at line 67 of file KDReportsTableLayout_p.h.

Referenced by setInitialFontScalingFactor(), and updateColumnWidths().

◆ m_widestTextPerColumn

QVector<QString> KDReports::TableLayout::m_widestTextPerColumn

Definition at line 74 of file KDReportsTableLayout_p.h.

Referenced by ensureScalingFactorForWidth(), and updateColumnWidths().


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

© 2007-2021 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 on Sat Jan 8 2022 02:38:32 for KD Reports API Documentation by doxygen 1.8.17