KD Reports API Documentation
2.2
|
#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 |
Definition at line 24 of file KDReportsTableLayout_p.h.
TableLayout::TableLayout | ( | ) |
Definition at line 20 of file KDReportsTableLayout.cpp.
QSize KDReports::TableLayout::decorationSize | ( | const QVariant & | cellDecoration | ) | const |
Definition at line 245 of file KDReportsTableLayout.cpp.
void TableLayout::ensureScalingFactorForHeight | ( | qreal | maxRowHeight | ) |
Definition at line 189 of file KDReportsTableLayout.cpp.
References KDReports::FontScaler::applyAdditionalScalingFactor(), KDReports::FontScaler::fontMetrics(), m_cellPadding, scaledCellPadding(), KDReports::FontScaler::scalingFactor(), scalingFactor(), and KDReports::FontScaler::setFactorForHeight().
void TableLayout::ensureScalingFactorForWidth | ( | qreal | scalingFactor | ) |
Definition at line 162 of file KDReportsTableLayout.cpp.
References m_model, m_widestTextPerColumn, and KDReports::FontScaler::setFactorForWidth().
|
inline |
Definition at line 44 of file KDReportsTableLayout_p.h.
|
inline |
Definition at line 55 of file KDReportsTableLayout_p.h.
References KDReports::FontScaler::font().
|
inline |
Definition at line 34 of file KDReportsTableLayout_p.h.
|
inline |
Definition at line 71 of file KDReportsTableLayout_p.h.
References m_cellPadding, and scalingFactor().
Referenced by ensureScalingFactorForHeight(), and updateColumnWidths().
|
inline |
Definition at line 51 of file KDReportsTableLayout_p.h.
References KDReports::FontScaler::font().
|
inline |
Definition at line 65 of file KDReportsTableLayout_p.h.
References KDReports::FontScaler::scalingFactor().
Referenced by ensureScalingFactorForHeight(), and scaledCellPadding().
void TableLayout::setInitialFontScalingFactor | ( | qreal | fontScalingFactor | ) |
Definition at line 39 of file KDReportsTableLayout.cpp.
References m_cellFont, m_horizontalHeaderFont, m_horizontalHeaderVisible, m_verticalHeaderFont, m_verticalHeaderVisible, and KDReports::FontScaler::setFontAndScalingFactor().
void TableLayout::updateColumnWidths | ( | ) |
Definition at line 73 of file KDReportsTableLayout.cpp.
References KDReports::FontScaler::fontMetrics(), m_columnWidths, m_horizontalHeaderVisible, m_model, m_verticalHeaderVisible, m_widestTextPerColumn, KDReports::mmToPixels(), scaledCellPadding(), and KDReports::FontScaler::textWidth().
|
inline |
Definition at line 59 of file KDReportsTableLayout_p.h.
References KDReports::FontScaler::font().
|
inline |
Definition at line 39 of file KDReportsTableLayout_p.h.
QFont KDReports::TableLayout::m_cellFont |
Definition at line 80 of file KDReportsTableLayout_p.h.
Referenced by setInitialFontScalingFactor().
qreal KDReports::TableLayout::m_cellPadding |
Definition at line 88 of file KDReportsTableLayout_p.h.
Referenced by ensureScalingFactorForHeight(), and scaledCellPadding().
QVector<qreal> KDReports::TableLayout::m_columnWidths |
Definition at line 89 of file KDReportsTableLayout_p.h.
Referenced by updateColumnWidths().
qreal KDReports::TableLayout::m_fixedRowHeight |
Definition at line 90 of file KDReportsTableLayout_p.h.
QFont KDReports::TableLayout::m_horizontalHeaderFont |
Definition at line 81 of file KDReportsTableLayout_p.h.
Referenced by setInitialFontScalingFactor().
bool KDReports::TableLayout::m_horizontalHeaderVisible |
Definition at line 84 of file KDReportsTableLayout_p.h.
Referenced by setInitialFontScalingFactor(), and updateColumnWidths().
QSize KDReports::TableLayout::m_iconSize |
Definition at line 94 of file KDReportsTableLayout_p.h.
QAbstractItemModel* KDReports::TableLayout::m_model |
Definition at line 78 of file KDReportsTableLayout_p.h.
Referenced by ensureScalingFactorForWidth(), and updateColumnWidths().
QFont KDReports::TableLayout::m_verticalHeaderFont |
Definition at line 82 of file KDReportsTableLayout_p.h.
Referenced by setInitialFontScalingFactor().
bool KDReports::TableLayout::m_verticalHeaderVisible |
Definition at line 85 of file KDReportsTableLayout_p.h.
Referenced by setInitialFontScalingFactor(), and updateColumnWidths().
QVector<QString> KDReports::TableLayout::m_widestTextPerColumn |
Definition at line 92 of file KDReportsTableLayout_p.h.
Referenced by ensureScalingFactorForWidth(), and updateColumnWidths().