summaryrefslogtreecommitdiffstats
path: root/src/gui/text
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/text')
-rw-r--r--src/gui/text/qcssparser.cpp2
-rw-r--r--src/gui/text/qfont.cpp44
-rw-r--r--src/gui/text/qfontdatabase.cpp38
-rw-r--r--src/gui/text/qfontmetrics.cpp30
-rw-r--r--src/gui/text/qglyphrun.cpp18
-rw-r--r--src/gui/text/qplatformfontdatabase.cpp4
-rw-r--r--src/gui/text/qrawfont.cpp10
-rw-r--r--src/gui/text/qstatictext.cpp6
-rw-r--r--src/gui/text/qtextcursor.cpp56
-rw-r--r--src/gui/text/qtextdocument.cpp14
-rw-r--r--src/gui/text/qtextdocumentfragment.cpp2
-rw-r--r--src/gui/text/qtextdocumentwriter.cpp6
-rw-r--r--src/gui/text/qtextformat.cpp92
-rw-r--r--src/gui/text/qtextlayout.cpp14
-rw-r--r--src/gui/text/qtextlist.cpp2
-rw-r--r--src/gui/text/qtextobject.cpp44
-rw-r--r--src/gui/text/qtextoption.cpp16
-rw-r--r--src/gui/text/qtexttable.cpp10
-rw-r--r--src/gui/text/qzip.cpp8
19 files changed, 208 insertions, 208 deletions
diff --git a/src/gui/text/qcssparser.cpp b/src/gui/text/qcssparser.cpp
index 9c7a57df3d..edf10169b1 100644
--- a/src/gui/text/qcssparser.cpp
+++ b/src/gui/text/qcssparser.cpp
@@ -1141,7 +1141,7 @@ static bool setFontWeightFromValue(const QCss::Value &value, QFont *font)
/** \internal
* parse the font family from the values (starting from index \a start)
* and set it the \a font
- * The function returns true if a family was extracted.
+ * The function returns \c true if a family was extracted.
*/
static bool setFontFamilyFromValues(const QVector<QCss::Value> &values, QFont *font, int start = 0)
{
diff --git a/src/gui/text/qfont.cpp b/src/gui/text/qfont.cpp
index 2a9cac352d..a410004c06 100644
--- a/src/gui/text/qfont.cpp
+++ b/src/gui/text/qfont.cpp
@@ -355,7 +355,7 @@ QFontEngineData::~QFontEngineData()
attributes, or if no matching font exists, Qt will use the closest
matching installed font. The attributes of the font that is
actually used are retrievable from a QFontInfo object. If the
- window system provides an exact match exactMatch() returns true.
+ window system provides an exact match exactMatch() returns \c true.
Use QFontMetrics to get measurements, e.g. the pixel length of a
string using QFontMetrics::width().
@@ -1049,7 +1049,7 @@ int QFont::pixelSize() const
/*!
\fn bool QFont::italic() const
- Returns true if the style() of the font is not QFont::StyleNormal
+ Returns \c true if the style() of the font is not QFont::StyleNormal
\sa setItalic(), style()
*/
@@ -1139,8 +1139,8 @@ void QFont::setWeight(int weight)
/*!
\fn bool QFont::bold() const
- Returns true if weight() is a value greater than
- \l{Weight}{QFont::Normal}; otherwise returns false.
+ Returns \c true if weight() is a value greater than
+ \l{Weight}{QFont::Normal}; otherwise returns \c false.
\sa weight(), setBold(), QFontInfo::bold()
*/
@@ -1158,7 +1158,7 @@ void QFont::setWeight(int weight)
*/
/*!
- Returns true if underline has been set; otherwise returns false.
+ Returns \c true if underline has been set; otherwise returns \c false.
\sa setUnderline()
*/
@@ -1185,7 +1185,7 @@ void QFont::setUnderline(bool enable)
}
/*!
- Returns true if overline has been set; otherwise returns false.
+ Returns \c true if overline has been set; otherwise returns \c false.
\sa setOverline()
*/
@@ -1211,7 +1211,7 @@ void QFont::setOverline(bool enable)
}
/*!
- Returns true if strikeout has been set; otherwise returns false.
+ Returns \c true if strikeout has been set; otherwise returns \c false.
\sa setStrikeOut()
*/
@@ -1238,7 +1238,7 @@ void QFont::setStrikeOut(bool enable)
}
/*!
- Returns true if fixed pitch has been set; otherwise returns false.
+ Returns \c true if fixed pitch has been set; otherwise returns \c false.
\sa setFixedPitch(), QFontInfo::fixedPitch()
*/
@@ -1266,7 +1266,7 @@ void QFont::setFixedPitch(bool enable)
}
/*!
- Returns true if kerning should be used when drawing text with this font.
+ Returns \c true if kerning should be used when drawing text with this font.
\sa setKerning()
*/
@@ -1671,7 +1671,7 @@ void QFont::setRawMode(bool enable)
}
/*!
- Returns true if a window system font exactly matching the settings
+ Returns \c true if a window system font exactly matching the settings
of this font is available.
\sa QFontInfo
@@ -1686,7 +1686,7 @@ bool QFont::exactMatch() const
}
/*!
- Returns true if this font is equal to \a f; otherwise returns
+ Returns \c true if this font is equal to \a f; otherwise returns
false.
Two QFonts are considered equal if their font attributes are
@@ -1714,7 +1714,7 @@ bool QFont::operator==(const QFont &f) const
/*!
Provides an arbitrary comparison of this font and font \a f.
- All that is guaranteed is that the operator returns false if both
+ All that is guaranteed is that the operator returns \c false if both
fonts are equal and that (f1 \< f2) == !(f2 \< f1) if the fonts
are not equal.
@@ -1750,8 +1750,8 @@ bool QFont::operator<(const QFont &f) const
/*!
- Returns true if this font is different from \a f; otherwise
- returns false.
+ Returns \c true if this font is different from \a f; otherwise
+ returns \c false.
Two QFonts are considered to be different if their font attributes
are different. If rawMode() is enabled for both fonts, only the
@@ -1773,7 +1773,7 @@ QFont::operator QVariant() const
}
/*!
- Returns true if this font and \a f are copies of each other, i.e.
+ Returns \c true if this font and \a f are copies of each other, i.e.
one of them was created as a copy of the other and neither has
been modified since. This is much stricter than equality.
@@ -1785,8 +1785,8 @@ bool QFont::isCopyOf(const QFont & f) const
}
/*!
- Returns true if raw mode is used for font name matching; otherwise
- returns false.
+ Returns \c true if raw mode is used for font name matching; otherwise
+ returns \c false.
\sa setRawMode(), rawName()
*/
@@ -2470,8 +2470,8 @@ int QFontInfo::weight() const
/*!
\fn bool QFontInfo::bold() const
- Returns true if weight() would return a value greater than
- QFont::Normal; otherwise returns false.
+ Returns \c true if weight() would return a value greater than
+ QFont::Normal; otherwise returns \c false.
\sa weight(), QFont::bold()
*/
@@ -2556,7 +2556,7 @@ QFont::StyleHint QFontInfo::styleHint() const
}
/*!
- Returns true if the font is a raw mode font; otherwise returns
+ Returns \c true if the font is a raw mode font; otherwise returns
false.
If it is a raw mode font, all other functions in QFontInfo will
@@ -2571,8 +2571,8 @@ bool QFontInfo::rawMode() const
}
/*!
- Returns true if the matched window system font is exactly the same
- as the one specified by the font; otherwise returns false.
+ Returns \c true if the matched window system font is exactly the same
+ as the one specified by the font; otherwise returns \c false.
\sa QFont::exactMatch()
*/
diff --git a/src/gui/text/qfontdatabase.cpp b/src/gui/text/qfontdatabase.cpp
index 6703f66e29..ff050d1758 100644
--- a/src/gui/text/qfontdatabase.cpp
+++ b/src/gui/text/qfontdatabase.cpp
@@ -1238,8 +1238,8 @@ QStringList QFontDatabase::styles(const QString &family) const
}
/*!
- Returns true if the font that has family \a family and style \a
- style is fixed pitch; otherwise returns false.
+ Returns \c true if the font that has family \a family and style \a
+ style is fixed pitch; otherwise returns \c false.
*/
bool QFontDatabase::isFixedPitch(const QString &family,
@@ -1259,8 +1259,8 @@ bool QFontDatabase::isFixedPitch(const QString &family,
}
/*!
- Returns true if the font that has family \a family and style \a
- style is a scalable bitmap font; otherwise returns false. Scaling
+ Returns \c true if the font that has family \a family and style \a
+ style is a scalable bitmap font; otherwise returns \c false. Scaling
a bitmap font usually produces an unattractive hardly readable
result, because the pixels of the font are scaled. If you need to
scale a bitmap font it is better to scale it to one of the fixed
@@ -1303,9 +1303,9 @@ bool QFontDatabase::isBitmapScalable(const QString &family,
/*!
- Returns true if the font that has family \a family and style \a
- style is smoothly scalable; otherwise returns false. If this
- function returns true, it's safe to scale this font to any size,
+ Returns \c true if the font that has family \a family and style \a
+ style is smoothly scalable; otherwise returns \c false. If this
+ function returns \c true, it's safe to scale this font to any size,
and the result will always look attractive.
\sa isScalable(), isBitmapScalable()
@@ -1342,8 +1342,8 @@ bool QFontDatabase::isSmoothlyScalable(const QString &family, const QString &sty
}
/*!
- Returns true if the font that has family \a family and style \a
- style is scalable; otherwise returns false.
+ Returns \c true if the font that has family \a family and style \a
+ style is scalable; otherwise returns \c false.
\sa isBitmapScalable(), isSmoothlyScalable()
*/
@@ -1532,8 +1532,8 @@ QList<int> QFontDatabase::standardSizes()
/*!
- Returns true if the font that has family \a family and style \a
- style is italic; otherwise returns false.
+ Returns \c true if the font that has family \a family and style \a
+ style is italic; otherwise returns \c false.
\sa weight(), bold()
*/
@@ -1565,8 +1565,8 @@ bool QFontDatabase::italic(const QString &family, const QString &style) const
/*!
- Returns true if the font that has family \a family and style \a
- style is bold; otherwise returns false.
+ Returns \c true if the font that has family \a family and style \a
+ style is bold; otherwise returns \c false.
\sa italic(), weight()
*/
@@ -2144,8 +2144,8 @@ QFont QFontDatabase::systemFont(QFontDatabase::SystemFont type)
\since 4.2
Removes the previously loaded application font identified by \a
- id. Returns true if unloading of the font succeeded; otherwise
- returns false.
+ id. Returns \c true if unloading of the font succeeded; otherwise
+ returns \c false.
\sa removeAllApplicationFonts(), addApplicationFont(),
addApplicationFontFromData()
@@ -2158,8 +2158,8 @@ QFont QFontDatabase::systemFont(QFontDatabase::SystemFont type)
Removes all application-local fonts previously added using addApplicationFont()
and addApplicationFontFromData().
- Returns true if unloading of the fonts succeeded; otherwise
- returns false.
+ Returns \c true if unloading of the fonts succeeded; otherwise
+ returns \c false.
\sa removeApplicationFont(), addApplicationFont(), addApplicationFontFromData()
*/
@@ -2169,12 +2169,12 @@ QFont QFontDatabase::systemFont(QFontDatabase::SystemFont type)
\since 4.4
\deprecated
- Returns true if font rendering is supported outside the GUI
+ Returns \c true if font rendering is supported outside the GUI
thread, false otherwise. In other words, a return value of false
means that all QPainter::drawText() calls outside the GUI thread
will not produce readable output.
- As of 5.0, always returns true.
+ As of 5.0, always returns \c true.
\sa {Thread-Support in Qt Modules#Painting In Threads}{Painting In Threads}
*/
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
{
diff --git a/src/gui/text/qglyphrun.cpp b/src/gui/text/qglyphrun.cpp
index d35247ecf4..aba991ba2b 100644
--- a/src/gui/text/qglyphrun.cpp
+++ b/src/gui/text/qglyphrun.cpp
@@ -162,8 +162,8 @@ QGlyphRun &QGlyphRun::operator=(const QGlyphRun &other)
*/
/*!
- Compares \a other to this QGlyphRun object. Returns true if the list of glyph indexes,
- the list of positions and the font are all equal, otherwise returns false.
+ Compares \a other to this QGlyphRun object. Returns \c true if the list of glyph indexes,
+ the list of positions and the font are all equal, otherwise returns \c false.
*/
bool QGlyphRun::operator==(const QGlyphRun &other) const
{
@@ -194,8 +194,8 @@ bool QGlyphRun::operator==(const QGlyphRun &other) const
/*!
\fn bool QGlyphRun::operator!=(const QGlyphRun &other) const
- Compares \a other to this QGlyphRun object. Returns true if any of the list of glyph
- indexes, the list of positions or the font are different, otherwise returns false.
+ Compares \a other to this QGlyphRun object. Returns \c true if any of the list of glyph
+ indexes, the list of positions or the font are different, otherwise returns \c false.
*/
/*!
@@ -309,7 +309,7 @@ void QGlyphRun::setRawData(const quint32 *glyphIndexArray, const QPointF *glyphP
}
/*!
- Returns true if this QGlyphRun should be painted with an overline decoration.
+ Returns \c true if this QGlyphRun should be painted with an overline decoration.
\sa setOverline(), flags()
*/
@@ -330,7 +330,7 @@ void QGlyphRun::setOverline(bool overline)
}
/*!
- Returns true if this QGlyphRun should be painted with an underline decoration.
+ Returns \c true if this QGlyphRun should be painted with an underline decoration.
\sa setUnderline(), flags()
*/
@@ -351,7 +351,7 @@ void QGlyphRun::setUnderline(bool underline)
}
/*!
- Returns true if this QGlyphRun should be painted with a strike out decoration.
+ Returns \c true if this QGlyphRun should be painted with a strike out decoration.
\sa setStrikeOut(), flags()
*/
@@ -372,7 +372,7 @@ void QGlyphRun::setStrikeOut(bool strikeOut)
}
/*!
- Returns true if this QGlyphRun contains glyphs that are painted from the right to the left.
+ Returns \c true if this QGlyphRun contains glyphs that are painted from the right to the left.
\since 5.0
\sa setRightToLeft(), flags()
@@ -501,7 +501,7 @@ QRectF QGlyphRun::boundingRect() const
}
/*!
- Returns true if the QGlyphRun does not contain any glyphs.
+ Returns \c true if the QGlyphRun does not contain any glyphs.
\since 5.0
*/
diff --git a/src/gui/text/qplatformfontdatabase.cpp b/src/gui/text/qplatformfontdatabase.cpp
index 7dab89b366..7076fba41b 100644
--- a/src/gui/text/qplatformfontdatabase.cpp
+++ b/src/gui/text/qplatformfontdatabase.cpp
@@ -217,8 +217,8 @@ void QSupportedWritingSystems::setSupported(QFontDatabase::WritingSystem writing
}
/*!
- Returns true if the writing system specified by \a writingSystem is
- supported; otherwise returns false.
+ Returns \c true if the writing system specified by \a writingSystem is
+ supported; otherwise returns \c false.
*/
bool QSupportedWritingSystems::supported(QFontDatabase::WritingSystem writingSystem) const
{
diff --git a/src/gui/text/qrawfont.cpp b/src/gui/text/qrawfont.cpp
index f52b46eeae..b1b910422c 100644
--- a/src/gui/text/qrawfont.cpp
+++ b/src/gui/text/qrawfont.cpp
@@ -210,7 +210,7 @@ QRawFont &QRawFont::operator=(const QRawFont &other)
*/
/*!
- Returns true if the QRawFont is valid and false otherwise.
+ Returns \c true if the QRawFont is valid and false otherwise.
*/
bool QRawFont::isValid() const
{
@@ -300,7 +300,7 @@ QPainterPath QRawFont::pathForGlyph(quint32 glyphIndex) const
}
/*!
- Returns true if this QRawFont is equal to \a other. Otherwise, returns false.
+ Returns \c true if this QRawFont is equal to \a other. Otherwise, returns \c false.
*/
bool QRawFont::operator==(const QRawFont &other) const
{
@@ -310,7 +310,7 @@ bool QRawFont::operator==(const QRawFont &other) const
/*!
\fn bool QRawFont::operator!=(const QRawFont &other) const
- Returns true if this QRawFont is not equal to \a other. Otherwise, returns false.
+ Returns \c true if this QRawFont is not equal to \a other. Otherwise, returns \c false.
*/
/*!
@@ -668,7 +668,7 @@ QList<QFontDatabase::WritingSystem> QRawFont::supportedWritingSystems() const
}
/*!
- Returns true if the font has a glyph that corresponds to the given \a character.
+ Returns \c true if the font has a glyph that corresponds to the given \a character.
\sa supportedWritingSystems()
*/
@@ -680,7 +680,7 @@ bool QRawFont::supportsCharacter(QChar character) const
/*!
\overload
- Returns true if the font has a glyph that corresponds to the UCS-4 encoded character \a ucs4.
+ Returns \c true if the font has a glyph that corresponds to the UCS-4 encoded character \a ucs4.
\sa supportedWritingSystems()
*/
diff --git a/src/gui/text/qstatictext.cpp b/src/gui/text/qstatictext.cpp
index cd88e3bbe4..b153219136 100644
--- a/src/gui/text/qstatictext.cpp
+++ b/src/gui/text/qstatictext.cpp
@@ -112,7 +112,7 @@ QT_BEGIN_NAMESPACE
For extra convenience, it is possible to apply formatting to the text using the HTML subset
supported by QTextDocument. QStaticText will attempt to guess the format of the input text using
- Qt::mightBeRichText(), and interpret it as rich text if this function returns true. To force
+ Qt::mightBeRichText(), and interpret it as rich text if this function returns \c true. To force
QStaticText to display its contents as either plain text or rich text, use the function
QStaticText::setTextFormat() and pass in, respectively, Qt::PlainText and Qt::RichText.
@@ -233,7 +233,7 @@ QStaticText &QStaticText::operator=(const QStaticText &other)
*/
/*!
- Compares \a other to this QStaticText. Returns true if the texts, fonts and text widths
+ Compares \a other to this QStaticText. Returns \c true if the texts, fonts and text widths
are equal.
*/
bool QStaticText::operator==(const QStaticText &other) const
@@ -245,7 +245,7 @@ bool QStaticText::operator==(const QStaticText &other) const
}
/*!
- Compares \a other to this QStaticText. Returns true if the texts, fonts or maximum sizes
+ Compares \a other to this QStaticText. Returns \c true if the texts, fonts or maximum sizes
are different.
*/
bool QStaticText::operator!=(const QStaticText &other) const
diff --git a/src/gui/text/qtextcursor.cpp b/src/gui/text/qtextcursor.cpp
index 39fca795c9..d12f3cccd8 100644
--- a/src/gui/text/qtextcursor.cpp
+++ b/src/gui/text/qtextcursor.cpp
@@ -920,7 +920,7 @@ QTextLayout *QTextCursorPrivate::blockLayout(QTextBlock &block) const{
hasSelection(), clearSelection(), and removeSelectedText().
If the position() is at the start of a block atBlockStart()
- returns true; and if it is at the end of a block atBlockEnd() returns
+ returns \c true; and if it is at the end of a block atBlockEnd() returns
true. The format of the current character is returned by
charFormat(), and the format of the current block is returned by
blockFormat().
@@ -1134,7 +1134,7 @@ QTextCursor::~QTextCursor()
}
/*!
- Returns true if the cursor is null; otherwise returns false. A null
+ Returns \c true if the cursor is null; otherwise returns \c false. A null
cursor is created by the default constructor.
*/
bool QTextCursor::isNull() const
@@ -1222,8 +1222,8 @@ int QTextCursor::anchor() const
\fn bool QTextCursor::movePosition(MoveOperation operation, MoveMode mode, int n)
Moves the cursor by performing the given \a operation \a n times, using the specified
- \a mode, and returns true if all operations were completed successfully; otherwise
- returns false.
+ \a mode, and returns \c true if all operations were completed successfully; otherwise
+ returns \c false.
For example, if this function is repeatedly used to seek to the end of the next
word, it will eventually fail when the end of the document is reached.
@@ -1280,8 +1280,8 @@ bool QTextCursor::movePosition(MoveOperation op, MoveMode mode, int n)
/*!
\since 4.4
- Returns true if the cursor does visual navigation; otherwise
- returns false.
+ Returns \c true if the cursor does visual navigation; otherwise
+ returns \c false.
Visual navigation means skipping over hidden text paragraphs. The
default is false.
@@ -1582,7 +1582,7 @@ void QTextCursor::select(SelectionType selection)
}
/*!
- Returns true if the cursor contains a selection; otherwise returns false.
+ Returns \c true if the cursor contains a selection; otherwise returns \c false.
*/
bool QTextCursor::hasSelection() const
{
@@ -1591,8 +1591,8 @@ bool QTextCursor::hasSelection() const
/*!
- Returns true if the cursor contains a selection that is not simply a
- range from selectionStart() to selectionEnd(); otherwise returns false.
+ Returns \c true if the cursor contains a selection that is not simply a
+ range from selectionStart() to selectionEnd(); otherwise returns \c false.
Complex selections are ones that span at least two cells in a table;
their extent is specified by selectedTableCells().
@@ -1946,8 +1946,8 @@ void QTextCursor::mergeCharFormat(const QTextCharFormat &modifier)
}
/*!
- Returns true if the cursor is at the start of a block; otherwise
- returns false.
+ Returns \c true if the cursor is at the start of a block; otherwise
+ returns \c false.
\sa atBlockEnd(), atStart()
*/
@@ -1960,8 +1960,8 @@ bool QTextCursor::atBlockStart() const
}
/*!
- Returns true if the cursor is at the end of a block; otherwise
- returns false.
+ Returns \c true if the cursor is at the end of a block; otherwise
+ returns \c false.
\sa atBlockStart(), atEnd()
*/
@@ -1974,8 +1974,8 @@ bool QTextCursor::atBlockEnd() const
}
/*!
- Returns true if the cursor is at the start of the document;
- otherwise returns false.
+ Returns \c true if the cursor is at the start of the document;
+ otherwise returns \c false.
\sa atBlockStart(), atEnd()
*/
@@ -1990,8 +1990,8 @@ bool QTextCursor::atStart() const
/*!
\since 4.6
- Returns true if the cursor is at the end of the document;
- otherwise returns false.
+ Returns \c true if the cursor is at the end of the document;
+ otherwise returns \c false.
\sa atStart(), atBlockEnd()
*/
@@ -2344,8 +2344,8 @@ void QTextCursor::insertImage(const QImage &image, const QString &name)
/*!
\fn bool QTextCursor::operator!=(const QTextCursor &other) const
- Returns true if the \a other cursor is at a different position in
- the document as this cursor; otherwise returns false.
+ Returns \c true if the \a other cursor is at a different position in
+ the document as this cursor; otherwise returns \c false.
*/
bool QTextCursor::operator!=(const QTextCursor &rhs) const
{
@@ -2355,8 +2355,8 @@ bool QTextCursor::operator!=(const QTextCursor &rhs) const
/*!
\fn bool QTextCursor::operator<(const QTextCursor &other) const
- Returns true if the \a other cursor is positioned later in the
- document than this cursor; otherwise returns false.
+ Returns \c true if the \a other cursor is positioned later in the
+ document than this cursor; otherwise returns \c false.
*/
bool QTextCursor::operator<(const QTextCursor &rhs) const
{
@@ -2374,7 +2374,7 @@ bool QTextCursor::operator<(const QTextCursor &rhs) const
/*!
\fn bool QTextCursor::operator<=(const QTextCursor &other) const
- Returns true if the \a other cursor is positioned later or at the
+ Returns \c true if the \a other cursor is positioned later or at the
same position in the document as this cursor; otherwise returns
false.
*/
@@ -2394,8 +2394,8 @@ bool QTextCursor::operator<=(const QTextCursor &rhs) const
/*!
\fn bool QTextCursor::operator==(const QTextCursor &other) const
- Returns true if the \a other cursor is at the same position in the
- document as this cursor; otherwise returns false.
+ Returns \c true if the \a other cursor is at the same position in the
+ document as this cursor; otherwise returns \c false.
*/
bool QTextCursor::operator==(const QTextCursor &rhs) const
{
@@ -2411,7 +2411,7 @@ bool QTextCursor::operator==(const QTextCursor &rhs) const
/*!
\fn bool QTextCursor::operator>=(const QTextCursor &other) const
- Returns true if the \a other cursor is positioned earlier or at the
+ Returns \c true if the \a other cursor is positioned earlier or at the
same position in the document as this cursor; otherwise returns
false.
*/
@@ -2431,8 +2431,8 @@ bool QTextCursor::operator>=(const QTextCursor &rhs) const
/*!
\fn bool QTextCursor::operator>(const QTextCursor &other) const
- Returns true if the \a other cursor is positioned earlier in the
- document than this cursor; otherwise returns false.
+ Returns \c true if the \a other cursor is positioned earlier in the
+ document than this cursor; otherwise returns \c false.
*/
bool QTextCursor::operator>(const QTextCursor &rhs) const
{
@@ -2514,7 +2514,7 @@ void QTextCursor::endEditBlock()
}
/*!
- Returns true if this cursor and \a other are copies of each other, i.e.
+ Returns \c true if this cursor and \a other are copies of each other, i.e.
one of them was created as a copy of the other and neither has moved since.
This is much stricter than equality.
diff --git a/src/gui/text/qtextdocument.cpp b/src/gui/text/qtextdocument.cpp
index b83af30f7f..03602712cc 100644
--- a/src/gui/text/qtextdocument.cpp
+++ b/src/gui/text/qtextdocument.cpp
@@ -74,8 +74,8 @@ QT_BEGIN_NAMESPACE
Q_CORE_EXPORT unsigned int qt_int_sqrt(unsigned int n);
/*!
- Returns true if the string \a text is likely to be rich text;
- otherwise returns false.
+ Returns \c true if the string \a text is likely to be rich text;
+ otherwise returns \c false.
This function uses a fast and therefore simple heuristic. It
mainly checks whether there is something that looks like a tag
@@ -356,7 +356,7 @@ QTextDocument *QTextDocument::clone(QObject *parent) const
}
/*!
- Returns true if the document is empty; otherwise returns false.
+ Returns \c true if the document is empty; otherwise returns \c false.
*/
bool QTextDocument::isEmpty() const
{
@@ -605,7 +605,7 @@ void QTextDocument::markContentsDirty(int from, int length)
and pixel-rounding. This means that WYSIWYG text layout becomes possible because the width
scales much more linearly based on paintdevice metrics than it would otherwise.
- By default, this property is false.
+ By default, this property is \c false.
*/
void QTextDocument::setUseDesignMetrics(bool b)
@@ -987,7 +987,7 @@ QString QTextDocument::defaultStyleSheet() const
/*!
- Returns true if undo is available; otherwise returns false.
+ Returns \c true if undo is available; otherwise returns \c false.
\sa isRedoAvailable(), availableUndoSteps()
*/
@@ -998,7 +998,7 @@ bool QTextDocument::isUndoAvailable() const
}
/*!
- Returns true if redo is available; otherwise returns false.
+ Returns \c true if redo is available; otherwise returns \c false.
\sa isUndoAvailable(), availableRedoSteps()
*/
@@ -1612,7 +1612,7 @@ QFont QTextDocument::defaultFont() const
\property QTextDocument::modified
\brief whether the document has been modified by the user
- By default, this property is false.
+ By default, this property is \c false.
\sa modificationChanged()
*/
diff --git a/src/gui/text/qtextdocumentfragment.cpp b/src/gui/text/qtextdocumentfragment.cpp
index 37f58a7512..df67fb581a 100644
--- a/src/gui/text/qtextdocumentfragment.cpp
+++ b/src/gui/text/qtextdocumentfragment.cpp
@@ -352,7 +352,7 @@ QTextDocumentFragment::~QTextDocumentFragment()
}
/*!
- Returns true if the fragment is empty; otherwise returns false.
+ Returns \c true if the fragment is empty; otherwise returns \c false.
*/
bool QTextDocumentFragment::isEmpty() const
{
diff --git a/src/gui/text/qtextdocumentwriter.cpp b/src/gui/text/qtextdocumentwriter.cpp
index a294bceacc..1722a791b9 100644
--- a/src/gui/text/qtextdocumentwriter.cpp
+++ b/src/gui/text/qtextdocumentwriter.cpp
@@ -88,7 +88,7 @@ public:
later.
Call write() to write the document to the device. If the document is
- successfully written, this function returns true. However, if an error
+ successfully written, this function returns \c true. However, if an error
occurs when writing the document, it will return false.
Call supportedDocumentFormats() for a list of formats that
@@ -245,7 +245,7 @@ QString QTextDocumentWriter::fileName () const
/*!
Writes the given \a document to the assigned device or file and
- returns true if successful; otherwise returns false.
+ returns \c true if successful; otherwise returns \c false.
*/
bool QTextDocumentWriter::write(const QTextDocument *document)
{
@@ -304,7 +304,7 @@ bool QTextDocumentWriter::write(const QTextDocument *document)
/*!
Writes the document fragment specified by \a fragment to the assigned device
- or file and returns true if successful; otherwise returns false.
+ or file and returns \c true if successful; otherwise returns \c false.
*/
bool QTextDocumentWriter::write(const QTextDocumentFragment &fragment)
{
diff --git a/src/gui/text/qtextformat.cpp b/src/gui/text/qtextformat.cpp
index 4f8a25c5a8..2389427da0 100644
--- a/src/gui/text/qtextformat.cpp
+++ b/src/gui/text/qtextformat.cpp
@@ -116,14 +116,14 @@ QT_BEGIN_NAMESPACE
/*!
\fn bool QTextLength::operator==(const QTextLength &other) const
- Returns true if this text length is the same as the \a other text
+ Returns \c true if this text length is the same as the \a other text
length.
*/
/*!
\fn bool QTextLength::operator!=(const QTextLength &other) const
- Returns true if this text length is different from the \a other text
+ Returns \c true if this text length is different from the \a other text
length.
*/
@@ -701,55 +701,55 @@ Q_GUI_EXPORT QDataStream &operator>>(QDataStream &stream, QTextFormat &fmt)
/*!
\fn bool QTextFormat::isValid() const
- Returns true if the format is valid (i.e. is not
- InvalidFormat); otherwise returns false.
+ Returns \c true if the format is valid (i.e. is not
+ InvalidFormat); otherwise returns \c false.
*/
/*!
\fn bool QTextFormat::isCharFormat() const
- Returns true if this text format is a \c CharFormat; otherwise
- returns false.
+ Returns \c true if this text format is a \c CharFormat; otherwise
+ returns \c false.
*/
/*!
\fn bool QTextFormat::isBlockFormat() const
- Returns true if this text format is a \c BlockFormat; otherwise
- returns false.
+ Returns \c true if this text format is a \c BlockFormat; otherwise
+ returns \c false.
*/
/*!
\fn bool QTextFormat::isListFormat() const
- Returns true if this text format is a \c ListFormat; otherwise
- returns false.
+ Returns \c true if this text format is a \c ListFormat; otherwise
+ returns \c false.
*/
/*!
\fn bool QTextFormat::isTableFormat() const
- Returns true if this text format is a \c TableFormat; otherwise
- returns false.
+ Returns \c true if this text format is a \c TableFormat; otherwise
+ returns \c false.
*/
/*!
\fn bool QTextFormat::isFrameFormat() const
- Returns true if this text format is a \c FrameFormat; otherwise
- returns false.
+ Returns \c true if this text format is a \c FrameFormat; otherwise
+ returns \c false.
*/
/*!
\fn bool QTextFormat::isImageFormat() const
- Returns true if this text format is an image format; otherwise
- returns false.
+ Returns \c true if this text format is an image format; otherwise
+ returns \c false.
*/
@@ -757,8 +757,8 @@ Q_GUI_EXPORT QDataStream &operator>>(QDataStream &stream, QTextFormat &fmt)
\fn bool QTextFormat::isTableCellFormat() const
\since 4.4
- Returns true if this text format is a \c TableCellFormat; otherwise
- returns false.
+ Returns \c true if this text format is a \c TableCellFormat; otherwise
+ returns \c false.
*/
@@ -1200,8 +1200,8 @@ void QTextFormat::setObjectIndex(int o)
}
/*!
- Returns true if the text format has a property with the given \a
- propertyId; otherwise returns false.
+ Returns \c true if the text format has a property with the given \a
+ propertyId; otherwise returns \c false.
\sa properties(), Property
*/
@@ -1241,7 +1241,7 @@ int QTextFormat::propertyCount() const
/*!
\fn bool QTextFormat::operator!=(const QTextFormat &other) const
- Returns true if this text format is different from the \a other text
+ Returns \c true if this text format is different from the \a other text
format.
*/
@@ -1249,7 +1249,7 @@ int QTextFormat::propertyCount() const
/*!
\fn bool QTextFormat::operator==(const QTextFormat &other) const
- Returns true if this text format is the same as the \a other text
+ Returns \c true if this text format is the same as the \a other text
format.
*/
bool QTextFormat::operator==(const QTextFormat &rhs) const
@@ -1365,7 +1365,7 @@ QTextCharFormat::QTextCharFormat(const QTextFormat &fmt)
/*!
\fn bool QTextCharFormat::isValid() const
- Returns true if this character format is valid; otherwise returns
+ Returns \c true if this character format is valid; otherwise returns
false.
*/
@@ -1437,8 +1437,8 @@ QTextCharFormat::QTextCharFormat(const QTextFormat &fmt)
/*!
\fn bool QTextCharFormat::fontItalic() const
- Returns true if the text format's font is italic; otherwise
- returns false.
+ Returns \c true if the text format's font is italic; otherwise
+ returns \c false.
\sa font()
*/
@@ -1457,8 +1457,8 @@ QTextCharFormat::QTextCharFormat(const QTextFormat &fmt)
/*!
\fn bool QTextCharFormat::fontUnderline() const
- Returns true if the text format's font is underlined; otherwise
- returns false.
+ Returns \c true if the text format's font is underlined; otherwise
+ returns \c false.
\sa font()
*/
@@ -1502,8 +1502,8 @@ void QTextCharFormat::setUnderlineStyle(UnderlineStyle style)
/*!
\fn bool QTextCharFormat::fontOverline() const
- Returns true if the text format's font is overlined; otherwise
- returns false.
+ Returns \c true if the text format's font is overlined; otherwise
+ returns \c false.
\sa font()
*/
@@ -1523,8 +1523,8 @@ void QTextCharFormat::setUnderlineStyle(UnderlineStyle style)
/*!
\fn bool QTextCharFormat::fontStrikeOut() const
- Returns true if the text format's font is struck out (has a horizontal line
- drawn through it); otherwise returns false.
+ Returns \c true if the text format's font is struck out (has a horizontal line
+ drawn through it); otherwise returns \c false.
\sa font()
*/
@@ -1591,7 +1591,7 @@ void QTextCharFormat::setUnderlineStyle(UnderlineStyle style)
/*!
\since 4.5
\fn bool QTextCharFormat::fontKerning() const
- Returns true if the font kerning is enabled.
+ Returns \c true if the font kerning is enabled.
\sa setFontKerning()
\sa font()
@@ -1611,8 +1611,8 @@ void QTextCharFormat::setUnderlineStyle(UnderlineStyle style)
/*!
\fn bool QTextCharFormat::fontFixedPitch() const
- Returns true if the text format's font is fixed pitch; otherwise
- returns false.
+ Returns \c true if the text format's font is fixed pitch; otherwise
+ returns \c false.
\sa font()
*/
@@ -1712,8 +1712,8 @@ void QTextCharFormat::setUnderlineStyle(UnderlineStyle style)
/*!
\fn bool QTextCharFormat::isAnchor() const
- Returns true if the text is formatted as an anchor; otherwise
- returns false.
+ Returns \c true if the text is formatted as an anchor; otherwise
+ returns \c false.
\sa setAnchor(), setAnchorHref(), setAnchorNames()
*/
@@ -2031,7 +2031,7 @@ QList<QTextOption::Tab> QTextBlockFormat::tabPositions() const
/*!
\fn QTextBlockFormat::isValid() const
- Returns true if this block format is valid; otherwise returns
+ Returns \c true if this block format is valid; otherwise returns
false.
*/
@@ -2249,8 +2249,8 @@ QList<QTextOption::Tab> QTextBlockFormat::tabPositions() const
/*!
\fn bool QTextBlockFormat::nonBreakableLines() const
- Returns true if the lines in the paragraph are non-breakable;
- otherwise returns false.
+ Returns \c true if the lines in the paragraph are non-breakable;
+ otherwise returns \c false.
\sa setNonBreakableLines()
*/
@@ -2350,8 +2350,8 @@ QTextListFormat::QTextListFormat(const QTextFormat &fmt)
/*!
\fn bool QTextListFormat::isValid() const
- Returns true if this list format is valid; otherwise
- returns false.
+ Returns \c true if this list format is valid; otherwise
+ returns \c false.
*/
/*!
@@ -2530,7 +2530,7 @@ QTextFrameFormat::QTextFrameFormat(const QTextFormat &fmt)
/*!
\fn QTextFrameFormat::isValid() const
- Returns true if the format description is valid; otherwise returns false.
+ Returns \c true if the format description is valid; otherwise returns \c false.
*/
/*!
@@ -2837,8 +2837,8 @@ QTextTableFormat::QTextTableFormat(const QTextFormat &fmt)
/*!
\fn bool QTextTableFormat::isValid() const
- Returns true if this table format is valid; otherwise
- returns false.
+ Returns \c true if this table format is valid; otherwise
+ returns \c false.
*/
@@ -3018,7 +3018,7 @@ QTextImageFormat::QTextImageFormat(const QTextFormat &fmt)
/*!
\fn bool QTextImageFormat::isValid() const
- Returns true if this image format is valid; otherwise returns false.
+ Returns \c true if this image format is valid; otherwise returns \c false.
*/
@@ -3264,7 +3264,7 @@ QTextImageFormat::QTextImageFormat(const QTextFormat &fmt)
\fn bool QTextTableCellFormat::isValid() const
\since 4.4
- Returns true if this table cell format is valid; otherwise returns false.
+ Returns \c true if this table cell format is valid; otherwise returns \c false.
*/
/*!
diff --git a/src/gui/text/qtextlayout.cpp b/src/gui/text/qtextlayout.cpp
index eed6758cc9..e10a7dbe10 100644
--- a/src/gui/text/qtextlayout.cpp
+++ b/src/gui/text/qtextlayout.cpp
@@ -130,7 +130,7 @@ QT_BEGIN_NAMESPACE
/*!
\fn bool QTextInlineObject::isValid() const
- Returns true if this inline object is valid; otherwise returns
+ Returns \c true if this inline object is valid; otherwise returns
false.
*/
@@ -543,8 +543,8 @@ void QTextLayout::setCacheEnabled(bool enable)
}
/*!
- Returns true if the complete layout information is cached; otherwise
- returns false.
+ Returns \c true if the complete layout information is cached; otherwise
+ returns \c false.
\sa setCacheEnabled()
*/
@@ -728,7 +728,7 @@ int QTextLayout::leftCursorPosition(int oldPos) const
}
/*!/
- Returns true if position \a pos is a valid cursor position.
+ Returns \c true if position \a pos is a valid cursor position.
In a Unicode context some positions in the text are not valid
cursor positions, because the position is inside a Unicode
@@ -1325,7 +1325,7 @@ void QTextLayout::drawCursor(QPainter *p, const QPointF &pos, int cursorPosition
/*!
\fn bool QTextLine::isValid() const
- Returns true if this text line is valid; otherwise returns false.
+ Returns \c true if this text line is valid; otherwise returns \c false.
*/
/*!
@@ -1459,8 +1459,8 @@ void QTextLine::setLeadingIncluded(bool included)
/*!
\since 4.6
- Returns true if positive leading is included into the line's height;
- otherwise returns false.
+ Returns \c true if positive leading is included into the line's height;
+ otherwise returns \c false.
By default, leading is not included.
diff --git a/src/gui/text/qtextlist.cpp b/src/gui/text/qtextlist.cpp
index 108501fdb3..f969f66006 100644
--- a/src/gui/text/qtextlist.cpp
+++ b/src/gui/text/qtextlist.cpp
@@ -106,7 +106,7 @@ public:
\fn bool QTextList::isEmpty() const
\obsolete
- Returns true if the list has no items; otherwise returns false.
+ Returns \c true if the list has no items; otherwise returns \c false.
\b{Note:} Empty lists are automatically deleted by the QTextDocument that owns
them.
diff --git a/src/gui/text/qtextobject.cpp b/src/gui/text/qtextobject.cpp
index 8465dcdaad..d1a39c6ab6 100644
--- a/src/gui/text/qtextobject.cpp
+++ b/src/gui/text/qtextobject.cpp
@@ -369,14 +369,14 @@ QTextFrameLayoutData::~QTextFrameLayoutData()
\fn bool QTextFrame::iterator::operator==(const iterator &other) const
Retuns true if the iterator is the same as the \a other iterator;
- otherwise returns false.
+ otherwise returns \c false.
*/
/*!
\fn bool QTextFrame::iterator::operator!=(const iterator &other) const
Retuns true if the iterator is different from the \a other iterator;
- otherwise returns false.
+ otherwise returns \c false.
*/
/*!
@@ -617,7 +617,7 @@ void QTextFramePrivate::remove_me()
/*!
\fn bool QTextFrame::iterator::atEnd() const
- Returns true if the current item is the last item in the text frame.
+ Returns \c true if the current item is the last item in the text frame.
*/
/*!
@@ -896,7 +896,7 @@ QTextBlockUserData::~QTextBlockUserData()
/*!
\fn bool QTextBlock::isValid() const
- Returns true if this text block is valid; otherwise returns false.
+ Returns \c true if this text block is valid; otherwise returns \c false.
*/
bool QTextBlock::isValid() const
@@ -913,21 +913,21 @@ bool QTextBlock::isValid() const
/*!
\fn bool QTextBlock::operator==(const QTextBlock &other) const
- Returns true if this text block is the same as the \a other text
+ Returns \c true if this text block is the same as the \a other text
block.
*/
/*!
\fn bool QTextBlock::operator!=(const QTextBlock &other) const
- Returns true if this text block is different from the \a other
+ Returns \c true if this text block is different from the \a other
text block.
*/
/*!
\fn bool QTextBlock::operator<(const QTextBlock &other) const
- Returns true if this text block occurs before the \a other text
+ Returns \c true if this text block occurs before the \a other text
block in the document.
*/
@@ -975,21 +975,21 @@ bool QTextBlock::isValid() const
/*!
\fn bool QTextBlock::iterator::atEnd() const
- Returns true if the current item is the last item in the text block.
+ Returns \c true if the current item is the last item in the text block.
*/
/*!
\fn bool QTextBlock::iterator::operator==(const iterator &other) const
Retuns true if this iterator is the same as the \a other iterator;
- otherwise returns false.
+ otherwise returns \c false.
*/
/*!
\fn bool QTextBlock::iterator::operator!=(const iterator &other) const
Retuns true if this iterator is different from the \a other iterator;
- otherwise returns false.
+ otherwise returns \c false.
*/
/*!
@@ -1047,8 +1047,8 @@ int QTextBlock::length() const
}
/*!
- Returns true if the given \a position is located within the text
- block; otherwise returns false.
+ Returns \c true if the given \a position is located within the text
+ block; otherwise returns \c false.
*/
bool QTextBlock::contains(int position) const
{
@@ -1372,7 +1372,7 @@ void QTextBlock::setRevision(int rev)
/*!
\since 4.4
- Returns true if the block is visible; otherwise returns false.
+ Returns \c true if the block is visible; otherwise returns \c false.
\sa setVisible()
*/
@@ -1651,21 +1651,21 @@ QTextBlock::iterator &QTextBlock::iterator::operator--()
/*!
\fn bool QTextFragment::isValid() const
- Returns true if this is a valid text fragment (i.e. has a valid
- position in a document); otherwise returns false.
+ Returns \c true if this is a valid text fragment (i.e. has a valid
+ position in a document); otherwise returns \c false.
*/
/*!
\fn bool QTextFragment::operator==(const QTextFragment &other) const
- Returns true if this text fragment is the same (at the same
- position) as the \a other text fragment; otherwise returns false.
+ Returns \c true if this text fragment is the same (at the same
+ position) as the \a other text fragment; otherwise returns \c false.
*/
/*!
\fn bool QTextFragment::operator!=(const QTextFragment &other) const
- Returns true if this text fragment is different (at a different
+ Returns \c true if this text fragment is different (at a different
position) from the \a other text fragment; otherwise returns
false.
*/
@@ -1673,8 +1673,8 @@ QTextBlock::iterator &QTextBlock::iterator::operator--()
/*!
\fn bool QTextFragment::operator<(const QTextFragment &other) const
- Returns true if this text fragment appears earlier in the document
- than the \a other text fragment; otherwise returns false.
+ Returns \c true if this text fragment appears earlier in the document
+ than the \a other text fragment; otherwise returns \c false.
*/
/*!
@@ -1747,8 +1747,8 @@ int QTextFragment::length() const
}
/*!
- Returns true if the text fragment contains the text at the given
- \a position in the document; otherwise returns false.
+ Returns \c true if the text fragment contains the text at the given
+ \a position in the document; otherwise returns \c false.
*/
bool QTextFragment::contains(int position) const
{
diff --git a/src/gui/text/qtextoption.cpp b/src/gui/text/qtextoption.cpp
index 1284207307..836e85889e 100644
--- a/src/gui/text/qtextoption.cpp
+++ b/src/gui/text/qtextoption.cpp
@@ -118,8 +118,8 @@ QTextOption::QTextOption(const QTextOption &o)
/*!
\fn QTextOption &QTextOption::operator=(const QTextOption &other)
- Returns true if the text option is the same as the \a other text option;
- otherwise returns false.
+ Returns \c true if the text option is the same as the \a other text option;
+ otherwise returns \c false.
*/
QTextOption &QTextOption::operator=(const QTextOption &o)
{
@@ -248,8 +248,8 @@ QList<QTextOption::Tab> QTextOption::tabs() const
/*!
\fn bool QTextOption::useDesignMetrics() const
- Returns true if the layout uses design rather than device metrics;
- otherwise returns false.
+ Returns \c true if the layout uses design rather than device metrics;
+ otherwise returns \c false.
\sa setUseDesignMetrics()
*/
@@ -409,15 +409,15 @@ QList<QTextOption::Tab> QTextOption::tabs() const
/*!
\fn bool Tab::operator==(const Tab &other) const
- Returns true if tab \a other is equal to this tab;
- otherwise returns false.
+ Returns \c true if tab \a other is equal to this tab;
+ otherwise returns \c false.
*/
/*!
\fn bool Tab::operator!=(const Tab &other) const
- Returns true if tab \a other is not equal to this tab;
- otherwise returns false.
+ Returns \c true if tab \a other is not equal to this tab;
+ otherwise returns \c false.
*/
/*!
diff --git a/src/gui/text/qtexttable.cpp b/src/gui/text/qtexttable.cpp
index 879c3ddc70..d77cbf9671 100644
--- a/src/gui/text/qtexttable.cpp
+++ b/src/gui/text/qtexttable.cpp
@@ -217,7 +217,7 @@ int QTextTableCell::columnSpan() const
/*!
\fn bool QTextTableCell::isValid() const
- Returns true if this is a valid table cell; otherwise returns
+ Returns \c true if this is a valid table cell; otherwise returns
false.
*/
@@ -303,15 +303,15 @@ QTextFrame::iterator QTextTableCell::end() const
/*!
\fn QTextCursor QTextTableCell::operator==(const QTextTableCell &other) const
- Returns true if this cell object and the \a other cell object
- describe the same cell; otherwise returns false.
+ Returns \c true if this cell object and the \a other cell object
+ describe the same cell; otherwise returns \c false.
*/
/*!
\fn QTextCursor QTextTableCell::operator!=(const QTextTableCell &other) const
- Returns true if this cell object and the \a other cell object
- describe different cells; otherwise returns false.
+ Returns \c true if this cell object and the \a other cell object
+ describe different cells; otherwise returns \c false.
*/
/*!
diff --git a/src/gui/text/qzip.cpp b/src/gui/text/qzip.cpp
index 151b0bcfeb..dee56d18f7 100644
--- a/src/gui/text/qzip.cpp
+++ b/src/gui/text/qzip.cpp
@@ -899,7 +899,7 @@ QIODevice* QZipReader::device() const
}
/*!
- Returns true if the user can read the file; otherwise returns false.
+ Returns \c true if the user can read the file; otherwise returns \c false.
*/
bool QZipReader::isReadable() const
{
@@ -907,7 +907,7 @@ bool QZipReader::isReadable() const
}
/*!
- Returns true if the file exists; otherwise returns false.
+ Returns \c true if the file exists; otherwise returns \c false.
*/
bool QZipReader::exists() const
{
@@ -1194,7 +1194,7 @@ QIODevice* QZipWriter::device() const
}
/*!
- Returns true if the user can write to the archive; otherwise returns false.
+ Returns \c true if the user can write to the archive; otherwise returns \c false.
*/
bool QZipWriter::isWritable() const
{
@@ -1202,7 +1202,7 @@ bool QZipWriter::isWritable() const
}
/*!
- Returns true if the file exists; otherwise returns false.
+ Returns \c true if the file exists; otherwise returns \c false.
*/
bool QZipWriter::exists() const
{