summaryrefslogtreecommitdiffstats
path: root/src/gui/text/qfontmetrics.cpp
diff options
context:
space:
mode:
authorJerome Pasion <jerome.pasion@digia.com>2013-10-02 16:51:05 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-10-08 00:46:27 +0200
commit4533cc994484a2308297e64e99af005fb4dca065 (patch)
treebc66283d11cdad100a1aec03f4e1d86bedc9a79e /src/gui/text/qfontmetrics.cpp
parent50dd0232b61d8ea3fb9aab18972c6e19678656e6 (diff)
Doc: Adding mark-up to boolean default values.
Default values should have mark-up to denote that they are code. This commit changes: -"property is true" to "property is \c true". -"Returns true" to "Returns \c true". -"property is false" to "property is \c false". -"returns true" to "returns \c true". -"returns false" to "returns \c false". src/3rdparty and non-documentation instances were ignored. Task-number: QTBUG-33360 Change-Id: Ie87eaa57af947caa1230602b61c5c46292a4cf4e Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com> Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
Diffstat (limited to 'src/gui/text/qfontmetrics.cpp')
-rw-r--r--src/gui/text/qfontmetrics.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/gui/text/qfontmetrics.cpp b/src/gui/text/qfontmetrics.cpp
index 1d0a1c1078..58c9addec1 100644
--- a/src/gui/text/qfontmetrics.cpp
+++ b/src/gui/text/qfontmetrics.cpp
@@ -229,8 +229,8 @@ QFontMetrics &QFontMetrics::operator=(const QFontMetrics &fm)
*/
/*!
- Returns true if \a other is equal to this object; otherwise
- returns false.
+ Returns \c true if \a other is equal to this object; otherwise
+ returns \c false.
Two font metrics are considered equal if they were constructed
from the same QFont and the paint devices they were constructed
@@ -246,7 +246,7 @@ bool QFontMetrics::operator ==(const QFontMetrics &other) const
/*!
\fn bool QFontMetrics::operator !=(const QFontMetrics &other) const
- Returns true if \a other is not equal to this object; otherwise returns false.
+ Returns \c true if \a other is not equal to this object; otherwise returns \c false.
Two font metrics are considered equal if they were constructed
from the same QFont and the paint devices they were constructed
@@ -405,8 +405,8 @@ int QFontMetrics::averageCharWidth() const
}
/*!
- Returns true if character \a ch is a valid character in the font;
- otherwise returns false.
+ Returns \c true if character \a ch is a valid character in the font;
+ otherwise returns \c false.
*/
bool QFontMetrics::inFont(QChar ch) const
{
@@ -419,8 +419,8 @@ bool QFontMetrics::inFont(QChar ch) const
}
/*!
- Returns true if the character \a ucs4 encoded in UCS-4/UTF-32 is a valid
- character in the font; otherwise returns false.
+ Returns \c true if the character \a ucs4 encoded in UCS-4/UTF-32 is a valid
+ character in the font; otherwise returns \c false.
*/
bool QFontMetrics::inFontUcs4(uint ucs4) const
{
@@ -1097,8 +1097,8 @@ QFontMetricsF &QFontMetricsF::operator=(const QFontMetricsF &fm)
}
/*!
- Returns true if the font metrics are equal to the \a other font
- metrics; otherwise returns false.
+ Returns \c true if the font metrics are equal to the \a other font
+ metrics; otherwise returns \c false.
Two font metrics are considered equal if they were constructed from the
same QFont and the paint devices they were constructed for are
@@ -1113,8 +1113,8 @@ bool QFontMetricsF::operator ==(const QFontMetricsF &other) const
\fn bool QFontMetricsF::operator !=(const QFontMetricsF &other) const
\overload
- Returns true if the font metrics are not equal to the \a other font
- metrics; otherwise returns false.
+ Returns \c true if the font metrics are not equal to the \a other font
+ metrics; otherwise returns \c false.
\sa operator==()
*/
@@ -1271,8 +1271,8 @@ qreal QFontMetricsF::averageCharWidth() const
}
/*!
- Returns true if character \a ch is a valid character in the font;
- otherwise returns false.
+ Returns \c true if character \a ch is a valid character in the font;
+ otherwise returns \c false.
*/
bool QFontMetricsF::inFont(QChar ch) const
{
@@ -1287,8 +1287,8 @@ bool QFontMetricsF::inFont(QChar ch) const
/*!
\fn bool QFontMetricsF::inFontUcs4(uint ch) const
- Returns true if the character given by \a ch, encoded in UCS-4/UTF-32,
- is a valid character in the font; otherwise returns false.
+ Returns \c true if the character given by \a ch, encoded in UCS-4/UTF-32,
+ is a valid character in the font; otherwise returns \c false.
*/
bool QFontMetricsF::inFontUcs4(uint ucs4) const
{