KD Reports API Documentation 2.2
Loading...
Searching...
No Matches
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 34 of file KDReportsElement.h.

Constructor & Destructor Documentation

◆ ~Element()

KDReports::Element::~Element ( )
virtual

Destroys this element.

Definition at line 38 of file KDReportsElement.cpp.

◆ Element() [1/2]

KDReports::Element::Element ( )
protected

Constructor - used by subclasses.

Definition at line 20 of file KDReportsElement.cpp.

◆ Element() [2/2]

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

Copy constructor - used by subclasses.

Definition at line 25 of file KDReportsElement.cpp.

Member Function Documentation

◆ background()

QBrush KDReports::Element::background ( ) const

Returns the background color for this element.

Definition at line 47 of file KDReportsElement.cpp.

◆ 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 42 of file KDReportsElement.cpp.


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

© 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 Wed Apr 24 2024 04:08:15 for KD Reports API Documentation by doxygen 1.9.8