30 Q_PROPERTY(
int indent READ indent WRITE setIndent )
31 Q_PROPERTY(
int margin READ margin WRITE setMargin )
32 Q_PROPERTY( QString plainText READ plainText WRITE setPlainText )
39 void setPlainText(
const QString& );
40 QString plainText()
const;
43 void setText(
const QString&,
45 virtual void setText(
const QwtText& );
53 void setIndent(
int );
56 void setMargin(
int );
58 virtual QSize sizeHint()
const QWT_OVERRIDE;
59 virtual QSize minimumSizeHint()
const QWT_OVERRIDE;
60 virtual int heightForWidth(
int )
const QWT_OVERRIDE;
62 QRect textRect()
const;
64 virtual void drawText( QPainter*,
const QRectF& );
67 virtual void paintEvent( QPaintEvent* ) QWT_OVERRIDE;
68 virtual void drawContents( QPainter* );
72 int defaultIndent()
const;
A class representing a text.
A Widget which displays a QwtText.