16 class KDReports::CellPrivate
22 Qt::AlignmentFlag m_verticalAlignment = Qt::AlignmentFlag(0);
33 , d(new CellPrivate(*other.d))
52 d->m_columnSpan = columnSpan;
57 return d->m_columnSpan;
62 d->m_rowSpan = rowSpan;
92 d->m_verticalAlignment = verticalAlignment;
97 return d->m_verticalAlignment;
102 d->m_cellFormatFunc = func;
107 return d->m_cellFormatFunc;
Cell & operator=(const Cell &other)
void addVerticalSpacing(qreal space)
void addElement(const Element &element, Qt::AlignmentFlag horizontalAlignment=Qt::AlignLeft)
void setVerticalAlignment(Qt::AlignmentFlag verticalAlignment)
Set the vertical alignment of the cell contents.
void addInlineElement(const Element &element)
void setColumnSpan(int columnSpan)
void setRowSpan(int rowSpan)
void build(ReportBuilder &builder) const override
void addVariable(VariableType variable)
void setCellFormatFunction(const CellFormatFunc &func)
Sets the function to call in order to customize the format of the cell.
Qt::AlignmentFlag verticalAlignment() const
Returns the vertical alignment of the cell contents.
CellFormatFunc cellFormatFunction() const
Returns the function passed to setCellFormatFunction()
std::function< void(int, int, QTextTableCellFormat &)> CellFormatFunc
virtual Element * clone() const =0
Element & operator=(const Element &other)
virtual void addVerticalSpacing(qreal space)
virtual void addBlockElement(const Element &element, Qt::AlignmentFlag horizontalAlignment, const QColor &backgroundColor=QColor())
virtual void addVariable(KDReports::VariableType variable)
virtual void addInlineElement(const Element &element)
Qt::AlignmentFlag m_align
KDReports::VariableType m_variableType