11 #ifndef KDREPORTSAUTOTABLEELEMENT_H
12 #define KDREPORTSAUTOTABLEELEMENT_H
15 #include <QtCore/QSize>
19 class QAbstractItemModel;
22 class QTextTableCellFormat;
26 class AutoTableElementPrivate;
71 QAbstractItemModel *tableModel()
const;
77 void setTableModel(QAbstractItemModel *tableModel);
83 void setModelKey(
const QString &modelKey);
90 void setVerticalHeaderVisible(
bool visible);
96 void setHorizontalHeaderVisible(
bool visible);
102 bool isVerticalHeaderVisible()
const;
108 bool isHorizontalHeaderVisible()
const;
116 void setHeaderBackground(
const QBrush &brush);
122 QBrush headerBackground()
const;
132 void setHorizontalHeaderFormatFunction(
const CellFormatFunc &func);
150 void setIconSize(QSize iconSize);
156 QSize iconSize()
const;
167 Element *clone()
const override;
171 DecorationAlignmentRole = 0x2D535FB1,
172 NonBreakableLinesRole = 0x2D535FB2
176 std::unique_ptr<AutoTableElementPrivate> d;
std::function< void(int, QTextTableCellFormat &)> CellFormatFunc