summaryrefslogtreecommitdiffstats
path: root/src/gui/text/qtextlayout.h
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>2011-05-09 09:07:02 +0200
committerEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>2011-05-23 13:38:22 +0200
commit5feefb0c039dae04290d1fca7c2f24276b6f7582 (patch)
treeafdf2f260f2a150ec048809313d8207f0e04612c /src/gui/text/qtextlayout.h
parent6e99936502345eab6ef7862e2cb3740bcc1caef2 (diff)
Enablers for TextInput
In order to use the scene graph text node in TextInput, we need enablers. Most of this is to enable selections, which in turn means we need to be able to extract a certain set of glyphs from a QTextLine.
Diffstat (limited to 'src/gui/text/qtextlayout.h')
-rw-r--r--src/gui/text/qtextlayout.h10
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;