KD Reports
1.8
|
#include <KDReportsCell.h>
Public Member Functions | |
void | setColumnSpan (int columnSpan) |
int | columnSpan () const |
void | setRowSpan (int rowSpan) |
int | rowSpan () const |
void | addInlineElement (const Element &element) |
void | addElement (const Element &element, Qt::AlignmentFlag horizontalAlignment=Qt::AlignLeft) |
void | addVariable (VariableType variable) |
Public Member Functions inherited from KDReports::Element | |
virtual | ~Element () |
void | setBackground (const QBrush &brush) |
QBrush | background () const |
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.
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.
void KDReports::Cell::addInlineElement | ( | const Element & | element | ) |
Adds an element to the cell, next to the previous element, in the same paragraph.
void KDReports::Cell::addVariable | ( | VariableType | variable | ) |
Adds an variable in the text of the current paragraph.
int KDReports::Cell::columnSpan | ( | ) | const |
Returns the number of columns that this cell will span.
int KDReports::Cell::rowSpan | ( | ) | const |
Returns the number of rows that this cell will span.
void KDReports::Cell::setColumnSpan | ( | int | columnSpan | ) |
Set the number of columns that this cell will span. The default is 1.
void KDReports::Cell::setRowSpan | ( | int | rowSpan | ) |
Set the number of rows that this cell will span. The default is 1.