summaryrefslogtreecommitdiffstats
path: root/src/gui/text/qtextlayout.cpp
diff options
context:
space:
mode:
authorMarcel Krems <m.krems@software-vision.eu>2013-10-10 15:30:05 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-10-12 01:43:24 +0200
commitdc860e2e0807ebd43938c8efdc3a282d0098e33e (patch)
tree9bbaabda053a7b3af4c0db1167fa9f9245decf18 /src/gui/text/qtextlayout.cpp
parent3fe242781e88224d121ebca730db5ebe4fb98ec6 (diff)
Doc: Fix typos and add missing words.
Change-Id: I40e4780bcabbca29425945a69d8a0781cd5c0e9f Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
Diffstat (limited to 'src/gui/text/qtextlayout.cpp')
-rw-r--r--src/gui/text/qtextlayout.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/text/qtextlayout.cpp b/src/gui/text/qtextlayout.cpp
index dc8ae06868..54d337ecc5 100644
--- a/src/gui/text/qtextlayout.cpp
+++ b/src/gui/text/qtextlayout.cpp
@@ -207,7 +207,7 @@ void QTextInlineObject::setAscent(qreal a)
}
/*!
- Sets the inline object's decent to \a d.
+ Sets the inline object's descent to \a d.
\sa descent(), setAscent(), width(), rect()
*/
@@ -1288,7 +1288,7 @@ void QTextLayout::drawCursor(QPainter *p, const QPointF &pos, int cursorPosition
After being created, the line can be filled using the setLineWidth()
or setNumColumns() functions. A line has a number of attributes including the
rectangle it occupies, rect(), its coordinates, x() and y(), its
- textLength(), width() and naturalTextWidth(), and its ascent() and decent()
+ textLength(), width() and naturalTextWidth(), and its ascent() and descent()
relative to the text. The position of the cursor in terms of the
line is available from cursorToX() and its inverse from
xToCursor(). A line can be moved with setPosition().