kchart
KDChartTextPiece Class Reference
List of all members.Detailed Description
Definition at line 44 of file KDChartTextPiece.h.
Public Slots | |
virtual int | width () const |
virtual int | height () const |
virtual int | fontLeading () const |
virtual QRect | rect (QPainter *p, const QRect &clipRect) const |
virtual void | draw (QPainter *p, int x, int y, const QRect &clipRect, const QColor &color, const QBrush *paper=0) const |
virtual void | draw (QPainter *p, int x, int y, const QRegion &clipRegion, const QColor &color, const QBrush *paper=0) const |
QString | text () const |
QFont | font () const |
bool | isRichText () const |
Public Member Functions | |
KDChartTextPiece () | |
KDChartTextPiece (const QString &text, const QFont &font) | |
KDChartTextPiece (QPainter *painter, const QString &text, const QFont &font) | |
virtual | ~KDChartTextPiece () |
void | deepCopy (const KDChartTextPiece *source) |
const KDChartTextPiece * | clone () const |
Protected Attributes | |
bool | _isRichText |
QSimpleRichText * | _richText |
QString | _text |
QFont | _font |
QFontMetrics * | _metrics |
bool | _dirtyMetrics |
Member Function Documentation
const KDChartTextPiece * KDChartTextPiece::clone | ( | ) | const |
Create a new text piece on the heap, copy the settings stored by this text piece into the newly created text piece and return the pointer to the new text piece.
- Note:
- Use this method instead of using the copy constructor.
- See also:
- deepCopy
Definition at line 133 of file KDChartTextPiece.cpp.
void KDChartTextPiece::deepCopy | ( | const KDChartTextPiece * | source | ) |
Copy the settings of text piece source
into this box.
- Note:
- Use this method instead of using the assignment operator.
- See also:
- clone
Definition at line 110 of file KDChartTextPiece.cpp.
The documentation for this class was generated from the following files: