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

#include <KDReportsHLineElement.h>

Inheritance diagram for KDReports::HLineElement:
Inheritance graph
[legend]
Collaboration diagram for KDReports::HLineElement:
Collaboration graph
[legend]

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 36 of file KDReportsHLineElement.h.

Constructor & Destructor Documentation

◆ HLineElement() [1/2]

KDReports::HLineElement::HLineElement ( )

Creates a hline element.

Definition at line 33 of file KDReportsHLineElement.cpp.

◆ ~HLineElement()

KDReports::HLineElement::~HLineElement ( )
override

Destroys this hline element.

Definition at line 57 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 42 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 107 of file KDReportsHLineElement.cpp.

◆ color()

QColor KDReports::HLineElement::color ( ) const

Returns the hline color

Definition at line 67 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 87 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 48 of file KDReportsHLineElement.cpp.

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

◆ setColor()

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

Set the line color.

Definition at line 62 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 82 of file KDReportsHLineElement.cpp.

◆ setThickness()

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

Sets the line thickness

Definition at line 72 of file KDReportsHLineElement.cpp.

◆ thickness()

qreal KDReports::HLineElement::thickness ( ) const

Returns the hline thickness

Definition at line 77 of file KDReportsHLineElement.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 Sat Jan 8 2022 02:38:32 for KD Reports API Documentation by doxygen 1.8.17