summaryrefslogtreecommitdiffstats
path: root/src/gui/text/qtextobject.h
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>2010-07-20 12:26:06 (GMT)
committerEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>2010-08-02 09:01:30 (GMT)
commit7fb31670f080c224249279c35240a8eb95f8d877 (patch)
tree44eac011bf5e64d681a3ff7ef4eff634875ad0d7 /src/gui/text/qtextobject.h
parentd4da5248006e4a9f4d6a454bf754407a34a09407 (diff)
downloadQt-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.h3
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;