diff options
author | Eskil Abrahamsen Blomfeldt <eblomfel@trolltech.com> | 2009-05-22 15:42:25 (GMT) |
---|---|---|
committer | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com> | 2010-01-14 12:46:58 (GMT) |
commit | c74c00b3a006491c4e7140fd7c5c2553d8abf45d (patch) | |
tree | 9803abf9f70d207dba1125bd51d0c453f83f7d7c /src/gui/text/qstatictext_p.h | |
parent | 1271197f70862fd1565039aff3b0e40665d3adde (diff) | |
download | Qt-c74c00b3a006491c4e7140fd7c5c2553d8abf45d.zip Qt-c74c00b3a006491c4e7140fd7c5c2553d8abf45d.tar.gz Qt-c74c00b3a006491c4e7140fd7c5c2553d8abf45d.tar.bz2 |
Add lazy initialization to QStaticText
People should be able to initialize the QStaticText lazily, or change
its data after instantiation. Each of the setters will recalculate the
layout to make sure it's always in sync.
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 b2f29f7..1e334d7 100644 --- a/src/gui/text/qstatictext_p.h +++ b/src/gui/text/qstatictext_p.h @@ -64,7 +64,7 @@ public: QStaticTextPrivate(); ~QStaticTextPrivate(); - void init(const QString &text, const QFont &font, const QSizeF &size); + void init(); QTextLayout *textLayout; QSizeF size; |