10 #ifndef QWT_TEXT_LABEL_H 11 #define QWT_TEXT_LABEL_H 29 Q_PROPERTY(
int indent READ indent WRITE setIndent )
30 Q_PROPERTY(
int margin READ margin WRITE setMargin )
31 Q_PROPERTY( QString plainText READ plainText WRITE setPlainText )
38 void setPlainText( const QString & );
39 QString plainText() const;
42 void setText( const QString &,
43 QwtText::TextFormat textFormat = QwtText::AutoText );
44 virtual
void setText( const QwtText & );
49 const QwtText &text() const;
52 void setIndent(
int );
55 void setMargin(
int );
57 virtual QSize sizeHint() const;
58 virtual QSize minimumSizeHint() const;
59 virtual
int heightForWidth(
int ) const;
61 QRect textRect() const;
63 virtual
void drawText( QPainter *, const QRectF & );
66 virtual
void paintEvent( QPaintEvent *e );
67 virtual
void drawContents( QPainter * );
71 int defaultIndent() const;
A Widget which displays a QwtText.
A class representing a text.