![]() |
KD Reports API Documentation
2.1
|
#include <KDReportsCell.h>


Public Member Functions | |
| Cell (const Cell &other) | |
| ~Cell () override | |
| void | addElement (const Element &element, Qt::AlignmentFlag horizontalAlignment=Qt::AlignLeft) |
| void | addInlineElement (const Element &element) |
| void | addVariable (VariableType variable) |
| void | build (ReportBuilder &builder) const override |
| Element * | clone () const override |
| int | columnSpan () const |
| Cell & | operator= (const Cell &other) |
| int | rowSpan () const |
| void | setColumnSpan (int columnSpan) |
| void | setRowSpan (int rowSpan) |
Public Member Functions inherited from KDReports::Element | |
| virtual | ~Element () |
| QBrush | background () const |
| void | setBackground (const QBrush &brush) |
Additional Inherited Members | |
Protected Member Functions inherited from KDReports::Element | |
| Element () | |
| Element (const Element &other) | |
| Element & | operator= (const Element &other) |
This class presents a cell in a table. To add an element to a cell, first get hold of the right cell using Table::cell(), then add elements to it.
Definition at line 39 of file KDReportsCell.h.
|
override |
Definition at line 50 of file KDReportsCell.cpp.
| KDReports::Cell::Cell | ( | const Cell & | other | ) |
| void KDReports::Cell::addElement | ( | const Element & | element, |
| Qt::AlignmentFlag | horizontalAlignment = Qt::AlignLeft |
||
| ) |
Adds an element to the cell, creating a new paragraph for it. You can specify the alignment of that paragraph.
Definition at line 79 of file KDReportsCell.cpp.
References KDReports::Element::clone().
| void KDReports::Cell::addInlineElement | ( | const Element & | element | ) |
Adds an element to the cell, next to the previous element, in the same paragraph.
Definition at line 74 of file KDReportsCell.cpp.
References KDReports::Element::clone().
| void KDReports::Cell::addVariable | ( | VariableType | variable | ) |
Adds an variable in the text of the current paragraph.
Definition at line 84 of file KDReportsCell.cpp.
|
overridevirtual |
Implements KDReports::Element.
Definition at line 89 of file KDReportsCell.cpp.
References KDReports::ReportBuilder::addBlockElement(), KDReports::ReportBuilder::addInlineElement(), KDReports::ReportBuilder::addVariable(), KDReports::ElementData::Block, KDReports::ElementData::Inline, KDReports::ElementData::m_align, KDReports::ElementData::m_element, KDReports::ElementData::m_type, KDReports::ElementData::m_variableType, and KDReports::ElementData::Variable.
Referenced by KDReports::TableElement::build().
|
inlineoverridevirtual |
Implements KDReports::Element.
Definition at line 88 of file KDReportsCell.h.
| int KDReports::Cell::columnSpan | ( | ) | const |
Returns the number of columns that this cell will span.
Definition at line 59 of file KDReportsCell.cpp.
Referenced by KDReports::TableElement::build().
| KDReports::Cell & KDReports::Cell::operator= | ( | const Cell & | other | ) |
Definition at line 41 of file KDReportsCell.cpp.
References KDReports::Element::operator=().
| int KDReports::Cell::rowSpan | ( | ) | const |
Returns the number of rows that this cell will span.
Definition at line 69 of file KDReportsCell.cpp.
Referenced by KDReports::TableElement::build().
| void KDReports::Cell::setColumnSpan | ( | int | columnSpan | ) |
Set the number of columns that this cell will span. The default is 1.
Definition at line 54 of file KDReportsCell.cpp.
| void KDReports::Cell::setRowSpan | ( | int | rowSpan | ) |
Set the number of rows that this cell will span. The default is 1.
Definition at line 64 of file KDReportsCell.cpp.
© 2007-2021 Klarälvdalens Datakonsult AB (KDAB)
https://www.kdab.com/development-resources/qt-tools/kd-reports/