KD Reports  1.9
Public Member Functions | List of all members
KDReports::HtmlElement Class Reference

#include <KDReportsHtmlElement.h>

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

Public Member Functions

 HtmlElement (const QString &html=QString())
 
 ~HtmlElement () override
 
 HtmlElement (const HtmlElement &other)
 
HtmlElementoperator= (const HtmlElement &other)
 
void setHtml (const QString &html)
 
QString html () const
 
HtmlElementoperator<< (const QString &)
 
void setId (const QString &id)
 
QString id () const
 
- Public Member Functions inherited from KDReports::Element
virtual ~Element ()
 
void setBackground (const QBrush &brush)
 
QBrush background () const
 

Additional Inherited Members

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

Detailed Description

The KDReports::HtmlElement class represents any part of the report that can be expressed in HTML. This is one way to insert rich text into the report (the other way is with TextElement). This can be used to create bullet-point lists and numbered lists.

Constructor & Destructor Documentation

KDReports::HtmlElement::HtmlElement ( const QString &  html = QString())
explicit

Creates an HTML report element.

KDReports::HtmlElement::~HtmlElement ( )
override

Destroys this element.

KDReports::HtmlElement::HtmlElement ( const HtmlElement other)

Copies an HTML element. The HTML and settings are copied over.

Member Function Documentation

QString KDReports::HtmlElement::html ( ) const
Returns
the full HTML text in this element.
Since
1.4
QString KDReports::HtmlElement::id ( ) const
Returns
the ID associated with this text element.
Since
1.2
HtmlElement& KDReports::HtmlElement::operator<< ( const QString &  )

Adds more text to the HTML in this element.

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

Copies the HTML and settings from another HTML element.

void KDReports::HtmlElement::setHtml ( const QString &  html)

Sets the full HTML text in this element.

void KDReports::HtmlElement::setId ( const QString &  id)

Set the ID associated with this text element.

Since
1.2

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

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/