10 #ifndef QWT_TEXT_LABEL_H 11 #define QWT_TEXT_LABEL_H 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 &,
44 QwtText::TextFormat textFormat = QwtText::AutoText );
45 virtual
void setText( const QwtText & );
50 const QwtText &text() const;
53 void setIndent(
int );
56 void setMargin(
int );
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 Widget which displays a QwtText.
A class representing a text.
void clear(lua_State *L, int table_index)