11 #ifndef KDREPORTSTEXTELEMENT_H
12 #define KDREPORTSTEXTELEMENT_H
15 #include <QTextCharFormat>
16 #include <QtCore/QString>
24 class TextElementPrivate;
36 explicit TextElement(
const QString &
string = QString());
55 void setText(
const QString &text);
63 void setFontFamily(
const QString &family);
65 void setBold(
bool bold);
67 void setItalic(
bool italic);
69 void setUnderline(
bool underline);
71 void setStrikeOut(
bool strikeout);
73 void setPointSize(qreal size);
82 void setFont(
const QFont &);
94 void setTextColor(
const QColor &color);
100 QColor textColor()
const;
106 void setId(
const QString &
id);
118 QString text()
const;
129 Element *clone()
const override;
133 void setCharFormat(
const QTextCharFormat &format);
135 std::unique_ptr<TextElementPrivate> d;
QDebug operator<<(QDebug &dbg, QTextOption::Tab tab)