diff options
author | Eskil Abrahamsen Blomfeldt <eblomfel@trolltech.com> | 2009-05-19 16:09:04 (GMT) |
---|---|---|
committer | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com> | 2010-01-14 12:46:16 (GMT) |
commit | a25dd3694d752cdf104f0a9064f47f001082edad (patch) | |
tree | 582daca71a5c10ec6472819349b3f8bd948bc7b7 /src/gui/text/qstatictext_p.h | |
parent | e8271e69e1bddc2d5d251ebf34909a53fd711d0e (diff) | |
download | Qt-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_p.h')
-rw-r--r-- | src/gui/text/qstatictext_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/text/qstatictext_p.h b/src/gui/text/qstatictext_p.h index c9abee3..d0e0c2a 100644 --- a/src/gui/text/qstatictext_p.h +++ b/src/gui/text/qstatictext_p.h @@ -10,7 +10,7 @@ class QStaticTextPrivate { public: QStaticTextPrivate(); - void init(const QString &text, const QFont &font); + void init(const QString &text, const QFont &font, qreal width); QTextLayout *textLayout; |