#include <KDReportsTextElement.h>
The KDReports::TextElement class represents text in the report. This is one way to insert rich text into the report (the other way is with HtmlElement).
KDReports::TextElement::TextElement |
( |
const QString & |
string = QString() | ) |
|
|
explicit |
virtual KDReports::TextElement::~TextElement |
( |
| ) |
|
|
virtual |
Destroys this text element.
KDReports::TextElement::TextElement |
( |
const TextElement & |
other | ) |
|
Copies a text element. The text and settings are copied over.
QFont KDReports::TextElement::font |
( |
| ) |
const |
- Returns
- all font attribute
- Since
- 1.4
QString KDReports::TextElement::id |
( |
| ) |
const |
- Returns
- the ID associated with this text element.
- Since
- 1.2
TextElement& KDReports::TextElement::operator<< |
( |
const QString & |
| ) |
|
Adds more text to the text in this element.
Copies the text and settings from another text element.
void KDReports::TextElement::setId |
( |
const QString & |
id | ) |
|
Set the ID associated with this text element.
- Since
- 1.2
void KDReports::TextElement::setText |
( |
const QString & |
text | ) |
|
Sets the full text in this element.
void KDReports::TextElement::setTextColor |
( |
const QColor & |
color | ) |
|
Set the text color.
- Since
- 1.1
QString KDReports::TextElement::text |
( |
| ) |
const |
- Returns
- the text associated with this text element.
- Since
- 1.4
QColor KDReports::TextElement::textColor |
( |
| ) |
const |
- Returns
- the text color.
- Since
- 1.4
The documentation for this class was generated from the following file: