summaryrefslogtreecommitdiffstats
path: root/src/widgets/util/qundostack.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/widgets/util/qundostack.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/widgets/util/qundostack.cpp')
-rw-r--r--src/widgets/util/qundostack.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/widgets/util/qundostack.cpp b/src/widgets/util/qundostack.cpp
index 46730ef7bd..2ca482be96 100644
--- a/src/widgets/util/qundostack.cpp
+++ b/src/widgets/util/qundostack.cpp
@@ -169,10 +169,10 @@ int QUndoCommand::id() const
}
/*!
- Attempts to merge this command with \a command. Returns true on
- success; otherwise returns false.
+ Attempts to merge this command with \a command. Returns \c true on
+ success; otherwise returns \c false.
- If this function returns true, calling this command's redo() must have the same
+ If this function returns \c true, calling this command's redo() must have the same
effect as redoing both this command and \a command.
Similarly, calling this command's undo() must have the same effect as undoing
\a command and this command.
@@ -180,7 +180,7 @@ int QUndoCommand::id() const
QUndoStack will only try to merge two commands if they have the same id, and
the id is not -1.
- The default implementation returns false.
+ The default implementation returns \c false.
\snippet code/src_gui_util_qundostack.cpp 3
@@ -461,7 +461,7 @@ void QUndoStackPrivate::setIndex(int idx, bool clean)
If the number of commands on the stack exceedes the undo limit, deletes commands from
the bottom of the stack.
- Returns true if commands were deleted.
+ Returns \c true if commands were deleted.
*/
bool QUndoStackPrivate::checkUndoLimit()
@@ -565,7 +565,7 @@ void QUndoStack::clear()
If \a cmd's id is not -1, and if the id is the same as that of the
most recently executed command, QUndoStack will attempt to merge the two
commands by calling QUndoCommand::mergeWith() on the most recently executed
- command. If QUndoCommand::mergeWith() returns true, \a cmd is deleted.
+ command. If QUndoCommand::mergeWith() returns \c true, \a cmd is deleted.
In all other cases \a cmd is simply pushed on the stack.
@@ -650,7 +650,7 @@ void QUndoStack::setClean()
}
/*!
- If the stack is in the clean state, returns true; otherwise returns false.
+ If the stack is in the clean state, returns \c true; otherwise returns \c false.
\sa setClean(), cleanIndex()
*/
@@ -789,9 +789,9 @@ void QUndoStack::setIndex(int idx)
}
/*!
- Returns true if there is a command available for undo; otherwise returns false.
+ Returns \c true if there is a command available for undo; otherwise returns \c false.
- This function returns false if the stack is empty, or if the bottom command
+ This function returns \c false if the stack is empty, or if the bottom command
on the stack has already been undone.
Synonymous with index() == 0.
@@ -808,9 +808,9 @@ bool QUndoStack::canUndo() const
}
/*!
- Returns true if there is a command available for redo; otherwise returns false.
+ Returns \c true if there is a command available for redo; otherwise returns \c false.
- This function returns false if the stack is empty or if the top command
+ This function returns \c false if the stack is empty or if the top command
on the stack has already been redone.
Synonymous with index() == count().