diff options
author | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com> | 2010-02-14 18:50:51 (GMT) |
---|---|---|
committer | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com> | 2010-02-14 18:50:51 (GMT) |
commit | 9f387357a7e171636c97a7ef13afca60c01a9e3b (patch) | |
tree | 80d99a746f81358196a75058a5276493fb8a71de /src/gui/text/qstatictext.h | |
parent | 02e9f3f25bdcc1b13ecf9ffaf43716c8f7053e88 (diff) | |
download | Qt-9f387357a7e171636c97a7ef13afca60c01a9e3b.zip Qt-9f387357a7e171636c97a7ef13afca60c01a9e3b.tar.gz Qt-9f387357a7e171636c97a7ef13afca60c01a9e3b.tar.bz2 |
Add API for rich text and getting actual size of QStaticText
Required for several use cases, support for some html tags to change
font, color and do advanced text layouts, as well as getting the
bounds of the text when drawn.
Diffstat (limited to 'src/gui/text/qstatictext.h')
-rw-r--r-- | src/gui/text/qstatictext.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/text/qstatictext.h b/src/gui/text/qstatictext.h index 11a4249..7498ad4 100644 --- a/src/gui/text/qstatictext.h +++ b/src/gui/text/qstatictext.h @@ -65,12 +65,14 @@ public: QStaticText(const QStaticText &other); ~QStaticText(); - void setText(const QString &text); + void setText(const QString &text, Qt::TextFormat textFormat = Qt::AutoText); QString text() const; void setMaximumSize(const QSizeF &maximumSize); QSizeF maximumSize() const; + QSizeF size() const; + void prepare(const QTransform &matrix, const QFont &font); void setUseBackendOptimizations(bool on); |