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

#include <KDReportsElement.h>

Inheritance diagram for KDReports::Element:
Inheritance graph

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 ( )

Destroys this element.

KDReports::Element::Element ( )

Constructor - used by subclasses.

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

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)

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)
Qt-related services and products