KD Reports API Documentation
2.0
|
#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 30 of file KDReportsTableLayout_p.h.
TableLayout::TableLayout | ( | ) |
Definition at line 26 of file KDReportsTableLayout.cpp.
QSize KDReports::TableLayout::decorationSize | ( | const QVariant & | cellDecoration | ) | const |
Definition at line 251 of file KDReportsTableLayout.cpp.
void TableLayout::ensureScalingFactorForHeight | ( | qreal | maxRowHeight | ) |
Definition at line 195 of file KDReportsTableLayout.cpp.
References KDReports::FontScaler::applyAdditionalScalingFactor(), KDReports::FontScaler::fontMetrics(), m_cellPadding, scaledCellPadding(), scalingFactor(), KDReports::FontScaler::scalingFactor(), and KDReports::FontScaler::setFactorForHeight().
void TableLayout::ensureScalingFactorForWidth | ( | qreal | scalingFactor | ) |
Definition at line 168 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 49 of file KDReportsTableLayout_p.h.
References KDReports::FontScaler::font().
|
inline |
Definition at line 40 of file KDReportsTableLayout_p.h.
|
inline |
Definition at line 56 of file KDReportsTableLayout_p.h.
References m_cellPadding, and scalingFactor().
Referenced by ensureScalingFactorForHeight(), and updateColumnWidths().
|
inline |
Definition at line 48 of file KDReportsTableLayout_p.h.
References KDReports::FontScaler::font().
|
inline |
Definition at line 53 of file KDReportsTableLayout_p.h.
References KDReports::FontScaler::scalingFactor().
Referenced by ensureScalingFactorForHeight(), and scaledCellPadding().
void TableLayout::setInitialFontScalingFactor | ( | qreal | fontScalingFactor | ) |
Definition at line 45 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 79 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 50 of file KDReportsTableLayout_p.h.
References KDReports::FontScaler::font().
|
inline |
Definition at line 42 of file KDReportsTableLayout_p.h.
QFont KDReports::TableLayout::m_cellFont |
Definition at line 62 of file KDReportsTableLayout_p.h.
Referenced by setInitialFontScalingFactor().
qreal KDReports::TableLayout::m_cellPadding |
Definition at line 70 of file KDReportsTableLayout_p.h.
Referenced by ensureScalingFactorForHeight(), and scaledCellPadding().
QVector<qreal> KDReports::TableLayout::m_columnWidths |
Definition at line 71 of file KDReportsTableLayout_p.h.
Referenced by updateColumnWidths().
qreal KDReports::TableLayout::m_fixedRowHeight |
Definition at line 72 of file KDReportsTableLayout_p.h.
QFont KDReports::TableLayout::m_horizontalHeaderFont |
Definition at line 63 of file KDReportsTableLayout_p.h.
Referenced by setInitialFontScalingFactor().
bool KDReports::TableLayout::m_horizontalHeaderVisible |
Definition at line 66 of file KDReportsTableLayout_p.h.
Referenced by setInitialFontScalingFactor(), and updateColumnWidths().
QSize KDReports::TableLayout::m_iconSize |
Definition at line 76 of file KDReportsTableLayout_p.h.
QAbstractItemModel* KDReports::TableLayout::m_model |
Definition at line 60 of file KDReportsTableLayout_p.h.
Referenced by ensureScalingFactorForWidth(), and updateColumnWidths().
QFont KDReports::TableLayout::m_verticalHeaderFont |
Definition at line 64 of file KDReportsTableLayout_p.h.
Referenced by setInitialFontScalingFactor().
bool KDReports::TableLayout::m_verticalHeaderVisible |
Definition at line 67 of file KDReportsTableLayout_p.h.
Referenced by setInitialFontScalingFactor(), and updateColumnWidths().
QVector<QString> KDReports::TableLayout::m_widestTextPerColumn |
Definition at line 74 of file KDReportsTableLayout_p.h.
Referenced by ensureScalingFactorForWidth(), and updateColumnWidths().