#include <KDReportsTextElement.h>
Public Member Functions | |
TextElement (const QString &string=QString()) | |
virtual | ~TextElement () |
TextElement (const TextElement &other) | |
TextElement & | operator= (const TextElement &other) |
void | setText (const QString &text) |
TextElement & | operator<< (const QString &) |
void | setFontFamily (const QString &family) |
Set font attribute: family. | |
void | setBold (bool bold) |
Set font attribute: bold. | |
void | setItalic (bool italic) |
Set font attribute: italic. | |
void | setUnderline (bool underline) |
Set font attribute: underline. | |
void | setStrikeOut (bool strikeout) |
Set font attribute: strike out. | |
void | setPointSize (qreal size) |
Set font attribute: size in points. Can be integer or decimal. | |
void | setFont (const QFont &) |
Set all font attributes with one call. | |
void | setTextColor (const QColor &color) |
void | setId (const QString &id) |
QString | id () const |
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] |
Creates a text element.
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.
QString KDReports::TextElement::id | ( | ) | const |
TextElement& KDReports::TextElement::operator<< | ( | const QString & | ) |
Adds more text to the text in this element.
TextElement& KDReports::TextElement::operator= | ( | const TextElement & | other ) |
Copies the text and settings from another text element.
void KDReports::TextElement::setId | ( | const QString & | id ) |
Set the ID associated with this text element.
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.