summaryrefslogtreecommitdiffstats
path: root/src/gui/text/qstatictext_p.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_p.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_p.h')
-rw-r--r--src/gui/text/qstatictext_p.h2
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;