diff options
Diffstat (limited to 'src/gui/text/qtextlayout.h')
-rw-r--r-- | src/gui/text/qtextlayout.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gui/text/qtextlayout.h b/src/gui/text/qtextlayout.h index 89fbfb2072..9840a37eec 100644 --- a/src/gui/text/qtextlayout.h +++ b/src/gui/text/qtextlayout.h @@ -174,7 +174,7 @@ public: qreal maximumWidth() const; #if !defined(QT_NO_RAWFONT) - QList<QGlyphRun> glyphRuns() const; + QList<QGlyphRun> glyphRuns(int from = -1, int length = -1) const; #endif QTextEngine *engine() const { return d; } @@ -244,14 +244,14 @@ public: void draw(QPainter *p, const QPointF &point, const QTextLayout::FormatRange *selection = 0) const; +#if !defined(QT_NO_RAWFONT) + QList<QGlyphRun> glyphRuns(int from = -1, int length = -1) const; +#endif + private: QTextLine(int line, QTextEngine *e) : i(line), eng(e) {} void layout_helper(int numGlyphs); -#if !defined(QT_NO_RAWFONT) - QList<QGlyphRun> glyphs(int from, int length) const; -#endif - friend class QTextLayout; friend class QTextFragment; int i; |