summaryrefslogtreecommitdiffstats
path: root/src/gui/text/qtextlayout.cpp
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>2012-08-24 10:36:43 +0200
committerQt by Nokia <qt-info@nokia.com>2012-08-25 19:04:56 +0200
commitc008420eb5ad02b8f23a144d0e977f09d27b8ed1 (patch)
treef24d1b097af2f01c526c1cc65cc02f0fc18a078e /src/gui/text/qtextlayout.cpp
parent1349299f458f41fdc9e7ac4a0592eaa358d2b033 (diff)
doc: Fix doc warnings for qtextlayout.cpp
\Auml for a with umlaut doesn't seem to work with qdoc anymore, so replace this with the unicode value instead. Also, add reference to arguments in glyphRuns() function. Change-Id: I31861b384b822d1fbdcafbeeac07ea68a0e5fd07 Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
Diffstat (limited to 'src/gui/text/qtextlayout.cpp')
-rw-r--r--src/gui/text/qtextlayout.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/gui/text/qtextlayout.cpp b/src/gui/text/qtextlayout.cpp
index c269eb2afd..a49b4112d4 100644
--- a/src/gui/text/qtextlayout.cpp
+++ b/src/gui/text/qtextlayout.cpp
@@ -781,7 +781,7 @@ int QTextLayout::leftCursorPosition(int oldPos) const
A grapheme cluster is a sequence of two or more Unicode characters
that form one indivisible entity on the screen. For example the
- latin character `\Auml' can be represented in Unicode by two
+ latin character `\unicode{0xC4}' can be represented in Unicode by two
characters, `A' (0x41), and the combining diaresis (0x308). A text
cursor can only validly be positioned before or after these two
characters, never between them since that wouldn't make sense. In
@@ -1009,8 +1009,12 @@ static inline QRectF clipIfValid(const QRectF &rect, const QRectF &clip)
/*!
- Returns the glyph indexes and positions for all glyphs in this QTextLayout. This is an
- expensive function, and should not be called in a time sensitive context.
+ Returns the glyph indexes and positions for all glyphs corresponding to the \a length characters
+ starting at the position \a from in this QTextLayout. This is an expensive function, and should
+ not be called in a time sensitive context.
+
+ If \a from is less than zero, then the glyph run will begin at the first character in the
+ layout. If \a length is less than zero, it will span the entire string from the start position.
\since 4.8