KD Reports API Documentation  2.2
Public Member Functions | List of all members
KDReports::HLineElement Class Reference

#include <KDReportsHLineElement.h>

Inheritance diagram for KDReports::HLineElement:
KDReports::Element

Public Member Functions

 HLineElement ()
 
 HLineElement (const HLineElement &other)
 
 ~HLineElement () override
 
void build (ReportBuilder &builder) const override
 
Elementclone () const override
 
QColor color () const
 
int margin () const
 
HLineElementoperator= (const HLineElement &other)
 
void setColor (const QColor &color)
 
void setMargin (int m)
 
void setThickness (qreal t)
 
qreal thickness () const
 
- Public Member Functions inherited from KDReports::Element
virtual ~Element ()
 
QBrush background () const
 
void setBackground (const QBrush &brush)
 

Additional Inherited Members

- Protected Member Functions inherited from KDReports::Element
 Element ()
 
 Element (const Element &other)
 
Elementoperator= (const Element &other)
 

Detailed Description

The KDReports::HLineElement class represents an horizontal line in the report.

Since
1.3

Definition at line 30 of file KDReportsHLineElement.h.

Constructor & Destructor Documentation

◆ HLineElement() [1/2]

KDReports::HLineElement::HLineElement ( )

Creates a hline element.

Definition at line 27 of file KDReportsHLineElement.cpp.

◆ ~HLineElement()

KDReports::HLineElement::~HLineElement ( )
override

Destroys this hline element.

Definition at line 51 of file KDReportsHLineElement.cpp.

◆ HLineElement() [2/2]

KDReports::HLineElement::HLineElement ( const HLineElement other)

Copies a hline element. The settings are copied over.

Definition at line 36 of file KDReportsHLineElement.cpp.

Member Function Documentation

◆ build()

void KDReports::HLineElement::build ( ReportBuilder builder) const
overridevirtual

◆ clone()

KDReports::Element * KDReports::HLineElement::clone ( ) const
overridevirtual

Implements KDReports::Element.

Definition at line 100 of file KDReportsHLineElement.cpp.

◆ color()

QColor KDReports::HLineElement::color ( ) const

Returns the hline color

Definition at line 60 of file KDReportsHLineElement.cpp.

◆ margin()

int KDReports::HLineElement::margin ( ) const

Returns the margin (empty space) used above and below the line, in mm.

Definition at line 80 of file KDReportsHLineElement.cpp.

◆ operator=()

KDReports::HLineElement & KDReports::HLineElement::operator= ( const HLineElement other)

Copies the hline and settings from another hline element.

Definition at line 42 of file KDReportsHLineElement.cpp.

References KDReports::Element::operator=().

◆ setColor()

void KDReports::HLineElement::setColor ( const QColor &  color)

Set the line color.

Definition at line 55 of file KDReportsHLineElement.cpp.

◆ setMargin()

void KDReports::HLineElement::setMargin ( int  m)

Sets the margin (empty space) used above and below the line, in mm.

Definition at line 75 of file KDReportsHLineElement.cpp.

◆ setThickness()

void KDReports::HLineElement::setThickness ( qreal  t)

Sets the line thickness

Definition at line 65 of file KDReportsHLineElement.cpp.

◆ thickness()

qreal KDReports::HLineElement::thickness ( ) const

Returns the hline thickness

Definition at line 70 of file KDReportsHLineElement.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 by doxygen 1.9.1