summaryrefslogtreecommitdiffstats
path: root/src/gui/text/qstatictext.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/text/qstatictext.h')
-rw-r--r--src/gui/text/qstatictext.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/text/qstatictext.h b/src/gui/text/qstatictext.h
index 7247bf7..9830b32 100644
--- a/src/gui/text/qstatictext.h
+++ b/src/gui/text/qstatictext.h
@@ -57,7 +57,7 @@ class Q_GUI_EXPORT QStaticText
{
public:
QStaticText();
- QStaticText(const QString &text, const QFont &font = QFont());
+ QStaticText(const QString &text, const QFont &font = QFont(), const QSizeF &maximumSize = QSizeF());
QStaticText(const QStaticText &other);
~QStaticText();
@@ -67,6 +67,9 @@ public:
void setFont(const QFont &font);
QFont font() const;
+ void setMaximumSize(const QSizeF &maximumSize);
+ QSizeF maximumSize() const;
+
QStaticText &operator=(const QStaticText &);
bool operator==(const QStaticText &) const;
bool operator!=(const QStaticText &) const;