summaryrefslogtreecommitdiffstats
path: root/src/gui/text/qstatictext.h
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eblomfel@trolltech.com>2009-05-19 16:09:04 (GMT)
committerEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>2010-01-14 12:46:16 (GMT)
commita25dd3694d752cdf104f0a9064f47f001082edad (patch)
tree582daca71a5c10ec6472819349b3f8bd948bc7b7 /src/gui/text/qstatictext.h
parente8271e69e1bddc2d5d251ebf34909a53fd711d0e (diff)
downloadQt-a25dd3694d752cdf104f0a9064f47f001082edad.zip
Qt-a25dd3694d752cdf104f0a9064f47f001082edad.tar.gz
Qt-a25dd3694d752cdf104f0a9064f47f001082edad.tar.bz2
Start support for formatting text within a bounding rect
Support to mirror drawText(QRectF, QString). Instead of a rect you give the text a static size and then paint it to an arbitrary point later on.
Diffstat (limited to 'src/gui/text/qstatictext.h')
-rw-r--r--src/gui/text/qstatictext.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/text/qstatictext.h b/src/gui/text/qstatictext.h
index 4d39e23..1855114 100644
--- a/src/gui/text/qstatictext.h
+++ b/src/gui/text/qstatictext.h
@@ -56,7 +56,7 @@ class Q_GUI_EXPORT QStaticText
{
Q_DECLARE_PRIVATE(QStaticText);
public:
- QStaticText(const QString &text, const QFont &font);
+ QStaticText(const QString &text, const QFont &font, const QSizeF &maximumSize = QSizeF());
private:
QStaticTextPrivate *d_ptr;