![]() |
KD Reports API Documentation
2.2
|
#include <KDReportsHLineElement.h>
Public Member Functions | |
| HLineElement () | |
| HLineElement (const HLineElement &other) | |
| ~HLineElement () override | |
| void | build (ReportBuilder &builder) const override |
| Element * | clone () const override |
| QColor | color () const |
| int | margin () const |
| HLineElement & | operator= (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) | |
| Element & | operator= (const Element &other) |
The KDReports::HLineElement class represents an horizontal line in the report.
Definition at line 30 of file KDReportsHLineElement.h.
| KDReports::HLineElement::HLineElement | ( | ) |
Creates a hline element.
Definition at line 27 of file KDReportsHLineElement.cpp.
|
override |
Destroys this hline element.
Definition at line 51 of file KDReportsHLineElement.cpp.
| KDReports::HLineElement::HLineElement | ( | const HLineElement & | other | ) |
Copies a hline element. The settings are copied over.
Definition at line 36 of file KDReportsHLineElement.cpp.
|
overridevirtual |
Implements KDReports::Element.
Definition at line 85 of file KDReportsHLineElement.cpp.
References KDReports::HLineTextObject::Color, KDReports::ReportBuilder::cursor(), KDReports::HLineTextObject::HLineTextFormat, KDReports::HLineTextObject::Margin, KDReports::mmToPixels(), and KDReports::HLineTextObject::Thickness.
|
overridevirtual |
Implements KDReports::Element.
Definition at line 100 of file KDReportsHLineElement.cpp.
| QColor KDReports::HLineElement::color | ( | ) | const |
Returns the hline color
Definition at line 60 of file KDReportsHLineElement.cpp.
| 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.
| 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=().
| void KDReports::HLineElement::setColor | ( | const QColor & | color | ) |
Set the line color.
Definition at line 55 of file KDReportsHLineElement.cpp.
| 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.
| void KDReports::HLineElement::setThickness | ( | qreal | t | ) |
Sets the line thickness
Definition at line 65 of file KDReportsHLineElement.cpp.
| qreal KDReports::HLineElement::thickness | ( | ) | const |
Returns the hline thickness
Definition at line 70 of file KDReportsHLineElement.cpp.