KD Reports  1.9
Public Member Functions | List of all members
KDReports::Cell Class Reference

#include <KDReportsCell.h>

Inheritance diagram for KDReports::Cell:
Inheritance graph
[legend]
Collaboration diagram for KDReports::Cell:
Collaboration graph
[legend]

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)
 
Elementoperator= (const Element &other)
 

Detailed Description

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.

Member Function Documentation

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.

See also
KDReportsHeader::addVariable
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.


The documentation for this class was generated from the following file:

Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/

https://www.kdab.com/development-resources/qt-tools/kd-reports/