![]() |
KD Reports API Documentation
2.1
|
#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.
Definition at line 251 of file KDReportsTableLayout.cpp.
References QImage::isNull(), QPixmap::isNull(), QPixmap::size(), and QImage::size().
| void TableLayout::ensureScalingFactorForHeight | ( | qreal | maxRowHeight | ) |
Definition at line 195 of file KDReportsTableLayout.cpp.
References KDReports::FontScaler::applyAdditionalScalingFactor(), KDReports::FontScaler::fontMetrics(), QFontMetricsF::height(), m_cellPadding, scaledCellPadding(), KDReports::FontScaler::scalingFactor(), scalingFactor(), and KDReports::FontScaler::setFactorForHeight().
| void TableLayout::ensureScalingFactorForWidth | ( | qreal | scalingFactor | ) |
Definition at line 168 of file KDReportsTableLayout.cpp.
References QAbstractItemModel::columnCount(), QString::length(), 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 QAbstractItemModel::columnCount(), QAbstractItemModel::data(), Qt::DecorationRole, Qt::DisplayRole, KDReports::FontScaler::fontMetrics(), QAbstractItemModel::headerData(), QFontMetricsF::height(), Qt::Horizontal, QAbstractItemModel::index(), QSizeF::isValid(), m_columnWidths, m_horizontalHeaderVisible, m_model, m_verticalHeaderVisible, m_widestTextPerColumn, KDReports::mmToPixels(), QVector::resize(), QAbstractItemModel::rowCount(), scaledCellPadding(), QFontMetricsF::size(), Qt::SizeHintRole, QAbstractItemModel::span(), KDReports::FontScaler::textWidth(), QVariant::toSizeF(), QVariant::toString(), Qt::Vertical, QSizeF::width(), and QSize::width().
|
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().
Definition at line 74 of file KDReportsTableLayout_p.h.
Referenced by ensureScalingFactorForWidth(), and updateColumnWidths().
© 2007-2021 Klarälvdalens Datakonsult AB (KDAB)
https://www.kdab.com/development-resources/qt-tools/kd-reports/