diff options
Diffstat (limited to 'src/gui/text/qstatictext.h')
-rw-r--r-- | src/gui/text/qstatictext.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/gui/text/qstatictext.h b/src/gui/text/qstatictext.h index fc10712..a666a7e 100644 --- a/src/gui/text/qstatictext.h +++ b/src/gui/text/qstatictext.h @@ -56,9 +56,23 @@ class Q_GUI_EXPORT QStaticText { Q_DECLARE_PRIVATE(QStaticText); public: - QStaticText(const QString &text, const QFont &font, const QSizeF &maximumSize = QSizeF()); + QStaticText(); + QStaticText(const QString &text); + QStaticText(const QString &text, const QFont &font = QFont(), const QSizeF &maximumSize = QSizeF()); ~QStaticText(); + void isValid() const; + + void setText(const QString &text); + QString text() const; + + void setFont(const QFont &font); + QFont font() const; + + void setMaximumSize(const QSizeF &maximumSize); + QSizeF maximumSize() const; + + private: QStaticTextPrivate *d_ptr; }; |