#include <KDReportsTableElement.h>
The KDReports::TableElement class represents a table in the report. Use cell() to provide the contents for each cell of the table.
Use AutoTableElement instead if you have the data in a QAbstractItemModel.
KDReports::TableElement::TableElement |
( |
| ) |
|
Creates an empty table. Text and other content can be added to the table cells using the cell() method. This must be done before the table is added to the report.
KDReports::TableElement::~TableElement |
( |
| ) |
|
Destructor. Deletes internal data.
KDReports::TableElement::TableElement |
( |
const TableElement & |
other | ) |
|
Copies a table element. Settings and cell elements are copied over.
Cell& KDReports::TableElement::cell |
( |
int |
row, |
|
|
int |
column |
|
) |
| |
Returns the reference to a cell in the table.
- Parameters
-
row | number, starting from 0 |
column | number, starting from 0 |
int KDReports::TableElement::headerColumnCount |
( |
| ) |
const |
- Returns
- table header columns count.
- Since
- 1.4
int KDReports::TableElement::headerRowCount |
( |
| ) |
const |
- Returns
- table header rows count.
- Since
- 1.4
Copies the settings and cell elements from another table element.
void KDReports::TableElement::setHeaderColumnCount |
( |
int |
count | ) |
|
Declares the first count
columns of the table as table header. The table header columns get repeated when a table is broken into multiple pages horizontally (see Report::setTableBreakingEnabled). The default number of header rows is 0.
- Since
- 1.1
void KDReports::TableElement::setHeaderRowCount |
( |
int |
count | ) |
|
Declares the first count
rows of the table as table header. The table header rows get repeated when a table is broken across a page boundary. The default number of header rows is 0.
The documentation for this class was generated from the following file: