KD Reports  1.9
Public Member Functions | Protected Member Functions | List of all members
KDReports::Element Class Referenceabstract

#include <KDReportsElement.h>

Inheritance diagram for KDReports::Element:
Inheritance graph
[legend]

Public Member Functions

virtual ~Element ()
 
void setBackground (const QBrush &brush)
 
QBrush background () const
 

Protected Member Functions

 Element ()
 
 Element (const Element &other)
 
Elementoperator= (const Element &other)
 

Detailed Description

The KDReports::Element class is the base for all elements.

An element defines what is to be added to the report. Calling Report::addElement or Report::addInlineElement leads to new content in the report. The report doesn't store the element, though. For this reason, any changes to the element after insertion will have no effect on the report. Set all settings in the element before calling addElement.

Constructor & Destructor Documentation

virtual KDReports::Element::~Element ( )
virtual

Destroys this element.

KDReports::Element::Element ( )
protected

Constructor - used by subclasses.

KDReports::Element::Element ( const Element other)
protected

Copy constructor - used by subclasses.

Member Function Documentation

QBrush KDReports::Element::background ( ) const

Returns the background color for this element.

Element& KDReports::Element::operator= ( const Element other)
protected

Assignment operator - used by subclasses.

void KDReports::Element::setBackground ( const QBrush &  brush)

Sets the background color for this element.


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/