From dc860e2e0807ebd43938c8efdc3a282d0098e33e Mon Sep 17 00:00:00 2001 From: Marcel Krems Date: Thu, 10 Oct 2013 15:30:05 +0200 Subject: Doc: Fix typos and add missing words. Change-Id: I40e4780bcabbca29425945a69d8a0781cd5c0e9f Reviewed-by: Jerome Pasion --- src/corelib/tools/qalgorithms.qdoc | 2 +- src/corelib/tools/qstring.cpp | 4 ++-- src/gui/text/qtextlayout.cpp | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/corelib/tools/qalgorithms.qdoc b/src/corelib/tools/qalgorithms.qdoc index 4eb7a170dc..cd389470a4 100644 --- a/src/corelib/tools/qalgorithms.qdoc +++ b/src/corelib/tools/qalgorithms.qdoc @@ -764,7 +764,7 @@ \relates \since 5.2 - Returns the number of bits set in \a v. This number also called + Returns the number of bits set in \a v. This number is also called the Hamming Weight of \a v. */ diff --git a/src/corelib/tools/qstring.cpp b/src/corelib/tools/qstring.cpp index 8519eaa17a..0e99a5839c 100644 --- a/src/corelib/tools/qstring.cpp +++ b/src/corelib/tools/qstring.cpp @@ -9799,8 +9799,8 @@ QString QString::toHtmlEscaped() const if (attribute.name() == QLatin1String("http-contents-length")) //... \endcode - \note There some restrictions when using the MSVC 2010 or 2012 compilers. The example snippets provided here - fail to compile with them. + \note There are some restrictions when using the MSVC 2010 or 2012 compilers. The example snippets + provided here fail to compile with them. \list \li Concatenated string literals cannot be used with QStringLiteral. \code 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(). -- cgit v1.2.3