summaryrefslogtreecommitdiffstats
path: root/src/widgets/util
diff options
context:
space:
mode:
Diffstat (limited to 'src/widgets/util')
-rw-r--r--src/widgets/util/qcompleter.cpp4
-rw-r--r--src/widgets/util/qscroller.cpp2
-rw-r--r--src/widgets/util/qscrollerproperties.cpp4
-rw-r--r--src/widgets/util/qsystemtrayicon.cpp4
-rw-r--r--src/widgets/util/qundogroup.cpp6
-rw-r--r--src/widgets/util/qundostack.cpp22
6 files changed, 21 insertions, 21 deletions
diff --git a/src/widgets/util/qcompleter.cpp b/src/widgets/util/qcompleter.cpp
index 97e6a04992..ab3c640421 100644
--- a/src/widgets/util/qcompleter.cpp
+++ b/src/widgets/util/qcompleter.cpp
@@ -1469,8 +1469,8 @@ void QCompleter::complete(const QRect& rect)
}
/*!
- Sets the current row to the \a row specified. Returns true if successful;
- otherwise returns false.
+ Sets the current row to the \a row specified. Returns \c true if successful;
+ otherwise returns \c false.
This function may be used along with currentCompletion() to iterate
through all the possible completions.
diff --git a/src/widgets/util/qscroller.cpp b/src/widgets/util/qscroller.cpp
index 0a58711b92..235cbc7865 100644
--- a/src/widgets/util/qscroller.cpp
+++ b/src/widgets/util/qscroller.cpp
@@ -1429,7 +1429,7 @@ void QScrollerPrivate::createScrollingSegments(const QPointF &v,
/*! \internal
Prepares scrolling by sending a QScrollPrepareEvent to the receiver widget.
- Returns true if the scrolling was accepted and a target was returned.
+ Returns \c true if the scrolling was accepted and a target was returned.
*/
bool QScrollerPrivate::prepareScrolling(const QPointF &position)
{
diff --git a/src/widgets/util/qscrollerproperties.cpp b/src/widgets/util/qscrollerproperties.cpp
index cebb054a53..66b1c284c1 100644
--- a/src/widgets/util/qscrollerproperties.cpp
+++ b/src/widgets/util/qscrollerproperties.cpp
@@ -139,7 +139,7 @@ QScrollerProperties::~QScrollerProperties()
}
/*!
- Returns true if these scroller properties are equal to \a sp; otherwise returns false.
+ Returns \c true if these scroller properties are equal to \a sp; otherwise returns \c false.
*/
bool QScrollerProperties::operator==(const QScrollerProperties &sp) const
{
@@ -147,7 +147,7 @@ bool QScrollerProperties::operator==(const QScrollerProperties &sp) const
}
/*!
- Returns true if these scroller properties are different from \a sp; otherwise returns false.
+ Returns \c true if these scroller properties are different from \a sp; otherwise returns \c false.
*/
bool QScrollerProperties::operator!=(const QScrollerProperties &sp) const
{
diff --git a/src/widgets/util/qsystemtrayicon.cpp b/src/widgets/util/qsystemtrayicon.cpp
index f74d88f6a0..08b24a8200 100644
--- a/src/widgets/util/qsystemtrayicon.cpp
+++ b/src/widgets/util/qsystemtrayicon.cpp
@@ -337,7 +337,7 @@ bool QSystemTrayIcon::event(QEvent *e)
/*!
- Returns true if the system tray is available; otherwise returns false.
+ Returns \c true if the system tray is available; otherwise returns \c false.
If the system tray is currently unavailable but becomes available later,
QSystemTrayIcon will automatically add an entry in the system tray if it
@@ -350,7 +350,7 @@ bool QSystemTrayIcon::isSystemTrayAvailable()
}
/*!
- Returns true if the system tray supports balloon messages; otherwise returns false.
+ Returns \c true if the system tray supports balloon messages; otherwise returns \c false.
\sa showMessage()
*/
diff --git a/src/widgets/util/qundogroup.cpp b/src/widgets/util/qundogroup.cpp
index 57563c434b..a2b256b4ce 100644
--- a/src/widgets/util/qundogroup.cpp
+++ b/src/widgets/util/qundogroup.cpp
@@ -294,7 +294,7 @@ void QUndoGroup::redo()
Returns the value of the active stack's QUndoStack::canUndo().
If none of the stacks are active, or if the group is empty, this function
- returns false.
+ returns \c false.
\sa canRedo(), setActiveStack()
*/
@@ -309,7 +309,7 @@ bool QUndoGroup::canUndo() const
Returns the value of the active stack's QUndoStack::canRedo().
If none of the stacks are active, or if the group is empty, this function
- returns false.
+ returns \c false.
\sa canUndo(), setActiveStack()
*/
@@ -354,7 +354,7 @@ QString QUndoGroup::redoText() const
Returns the value of the active stack's QUndoStack::isClean().
If none of the stacks are active, or if the group is empty, this function
- returns true.
+ returns \c true.
\sa setActiveStack()
*/
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().