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/widgets/widgets/qlineedit.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/widgets/widgets/qlineedit.cpp')
-rw-r--r-- | src/widgets/widgets/qlineedit.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/widgets/widgets/qlineedit.cpp b/src/widgets/widgets/qlineedit.cpp index adf70fde66..d3c37ab612 100644 --- a/src/widgets/widgets/qlineedit.cpp +++ b/src/widgets/widgets/qlineedit.cpp @@ -908,7 +908,7 @@ void QLineEdit::end(bool mark) do not start out knowing what the default should be (perhaps it depends on other fields on the form). Start the line edit without the best default, and when the default is known, if modified() - returns false (the user hasn't entered any text), insert the + returns \c false (the user hasn't entered any text), insert the default value. Calling setText() resets the modified flag to false. @@ -930,10 +930,10 @@ void QLineEdit::setModified(bool modified) \property QLineEdit::hasSelectedText \brief whether there is any text selected - hasSelectedText() returns true if some or all of the text has been - selected by the user; otherwise returns false. + hasSelectedText() returns \c true if some or all of the text has been + selected by the user; otherwise returns \c false. - By default, this property is false. + By default, this property is \c false. \sa selectedText() */ @@ -1011,7 +1011,7 @@ void QLineEdit::setSelection(int start, int length) Undo becomes available once the user has modified the text in the line edit. - By default, this property is false. + By default, this property is \c false. */ bool QLineEdit::isUndoAvailable() const @@ -1027,7 +1027,7 @@ bool QLineEdit::isUndoAvailable() const Redo becomes available once the user has performed one or more undo operations on text in the line edit. - By default, this property is false. + By default, this property is \c false. */ bool QLineEdit::isRedoAvailable() const @@ -1089,7 +1089,7 @@ void QLineEdit::setCursorMoveStyle(Qt::CursorMoveStyle style) \brief whether the input satisfies the inputMask and the validator. - By default, this property is true. + By default, this property is \c true. \sa setInputMask(), setValidator() */ @@ -1320,7 +1320,7 @@ void QLineEdit::redo() QLineEdit does not show a cursor in read-only mode. - By default, this property is false. + By default, this property is \c false. \sa setEnabled() */ |