diff options
author | Jerome Pasion <jerome.pasion@digia.com> | 2013-10-02 16:51:05 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-10-08 00:46:27 +0200 |
commit | 4533cc994484a2308297e64e99af005fb4dca065 (patch) | |
tree | bc66283d11cdad100a1aec03f4e1d86bedc9a79e /src/gui/text/qtextdocument.cpp | |
parent | 50dd0232b61d8ea3fb9aab18972c6e19678656e6 (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/qtextdocument.cpp')
-rw-r--r-- | src/gui/text/qtextdocument.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
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() */ |