diff options
author | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com> | 2010-07-20 12:26:06 (GMT) |
---|---|---|
committer | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com> | 2010-08-02 09:01:30 (GMT) |
commit | 7fb31670f080c224249279c35240a8eb95f8d877 (patch) | |
tree | 44eac011bf5e64d681a3ff7ef4eff634875ad0d7 /src/gui/text/qtextobject.h | |
parent | d4da5248006e4a9f4d6a454bf754407a34a09407 (diff) | |
download | Qt-7fb31670f080c224249279c35240a8eb95f8d877.zip Qt-7fb31670f080c224249279c35240a8eb95f8d877.tar.gz Qt-7fb31670f080c224249279c35240a8eb95f8d877.tar.bz2 |
Add QTextFragment::glyphs() accessor
Add a function to retrieve fonts, glyph indexes and positions needed to
visualize the text in a QTextFragment to allow converting the text of
a QTextDocument to QGlyphs objects.
Reviewed-by: Simon Hausmann
Diffstat (limited to 'src/gui/text/qtextobject.h')
-rw-r--r-- | src/gui/text/qtextobject.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/text/qtextobject.h b/src/gui/text/qtextobject.h index a573a26..332458d 100644 --- a/src/gui/text/qtextobject.h +++ b/src/gui/text/qtextobject.h @@ -44,6 +44,7 @@ #include <QtCore/qobject.h> #include <QtGui/qtextformat.h> +#include <QtGui/qglyphs.h> QT_BEGIN_HEADER @@ -315,6 +316,8 @@ public: int charFormatIndex() const; QString text() const; + QList<QGlyphs> glyphs() const; + private: const QTextDocumentPrivate *p; int n; |