KD Reports API Documentation  2.1
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 ()
 
QBrush background () const
 
virtual void build (ReportBuilder &) const =0
 
virtual Elementclone () const =0
 
void setBackground (const QBrush &brush)
 

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.

Definition at line 40 of file KDReportsElement.h.

Constructor & Destructor Documentation

◆ ~Element()

KDReports::Element::~Element ( )
virtual

Destroys this element.

Definition at line 44 of file KDReportsElement.cpp.

◆ Element() [1/2]

KDReports::Element::Element ( )
protected

Constructor - used by subclasses.

Definition at line 26 of file KDReportsElement.cpp.

◆ Element() [2/2]

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

Copy constructor - used by subclasses.

Definition at line 31 of file KDReportsElement.cpp.

Member Function Documentation

◆ background()

QBrush KDReports::Element::background ( ) const

Returns the background color for this element.

Definition at line 53 of file KDReportsElement.cpp.

Referenced by KDReports::TableElement::build().

◆ build()

virtual void KDReports::Element::build ( ReportBuilder ) const
pure virtual

◆ clone()

virtual Element* KDReports::Element::clone ( ) const
pure virtual

◆ operator=()

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

◆ setBackground()

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

Sets the background color for this element.

Definition at line 48 of file KDReportsElement.cpp.


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

© 2007-2021 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/
Generated on Fri Jul 15 2022 13:09:07 for KD Reports API Documentation by doxygen 1.8.20