summaryrefslogtreecommitdiffstats
path: root/doc/qptrlist.doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc/qptrlist.doc')
-rw-r--r--doc/qptrlist.doc64
1 files changed, 32 insertions, 32 deletions
diff --git a/doc/qptrlist.doc b/doc/qptrlist.doc
index 7540a74be..040708a7b 100644
--- a/doc/qptrlist.doc
+++ b/doc/qptrlist.doc
@@ -96,7 +96,7 @@
};
QPtrList<Employee> list;
- list.setAutoDelete( TRUE ); // the list owns the objects
+ list.setAutoDelete( true ); // the list owns the objects
list.append( new Employee("John", "Doe", 50000) );
list.append( new Employee("Jane", "Williams", 80000) );
@@ -131,7 +131,7 @@
iterators may traverse the same list, independently of each other
and of the current list item.
- In the example above we make the call setAutoDelete(TRUE).
+ In the example above we make the call setAutoDelete(true).
Enabling auto-deletion tells the list to delete items that are
removed. The default is to not delete items when they are removed
but this would cause a memory leak in the example because there
@@ -208,8 +208,8 @@
/*!
\fn bool QPtrList::operator==(const QPtrList<type> &list ) const
- Compares this list with \a list. Returns TRUE if the lists contain
- the same data; otherwise returns FALSE.
+ Compares this list with \a list. Returns true if the lists contain
+ the same data; otherwise returns false.
*/
/*!
@@ -223,8 +223,8 @@
/*!
\fn bool QPtrList::operator!=(const QPtrList<type> &list ) const
- Compares this list with \a list. Returns TRUE if the lists contain
- different data; otherwise returns FALSE.
+ Compares this list with \a list. Returns true if the lists contain
+ different data; otherwise returns false.
*/
@@ -248,7 +248,7 @@
/*!
\fn bool QPtrList::isEmpty() const
- Returns TRUE if the list is empty; otherwise returns FALSE.
+ Returns true if the list is empty; otherwise returns false.
\sa count()
*/
@@ -258,8 +258,8 @@
Inserts the \a item at position \a index in the list.
- Returns TRUE if successful, i.e. if \a index is in range;
- otherwise returns FALSE. The valid range is 0 to count()
+ Returns true if successful, i.e. if \a index is in range;
+ otherwise returns false. The valid range is 0 to count()
(inclusively). The item is appended if \a index == count().
The inserted item becomes the current list item.
@@ -274,7 +274,7 @@
Replaces the item at position \a index with the new \a item.
- Returns TRUE if successful, i.e. \a index is in the range 0 to
+ Returns true if successful, i.e. \a index is in the range 0 to
count()-1.
\sa append(), current(), insert()
@@ -335,8 +335,8 @@
Removes the item at position \a index in the list.
- Returns TRUE if successful, i.e. if \a index is in range;
- otherwise returns FALSE. The valid range is \c{0..(count() - 1)}
+ Returns true if successful, i.e. if \a index is in range;
+ otherwise returns false. The valid range is \c{0..(count() - 1)}
inclusive.
The removed item is deleted if \link setAutoDelete()
@@ -359,8 +359,8 @@
Removes the current list item.
- Returns TRUE if successful, i.e. if the current item isn't 0;
- otherwise returns FALSE.
+ Returns true if successful, i.e. if the current item isn't 0;
+ otherwise returns false.
The removed item is deleted if \link setAutoDelete()
auto-deletion\endlink is enabled.
@@ -383,8 +383,8 @@
Removes the first occurrence of \a item from the list.
- Returns TRUE if successful, i.e. if \a item is in the list;
- otherwise returns FALSE.
+ Returns true if successful, i.e. if \a item is in the list;
+ otherwise returns false.
The removed item is deleted if \link setAutoDelete()
auto-deletion\endlink is enabled.
@@ -412,8 +412,8 @@
Removes the first occurrence of \a item from the list.
- Returns TRUE if successful, i.e. if \a item is in the list;
- otherwise returns FALSE.
+ Returns true if successful, i.e. if \a item is in the list;
+ otherwise returns false.
The removed item is deleted if \link setAutoDelete()
auto-deletion\endlink is enabled.
@@ -460,8 +460,8 @@
/*!
\fn bool QPtrList::removeFirst()
- Removes the first item from the list. Returns TRUE if successful,
- i.e. if the list isn't empty; otherwise returns FALSE.
+ Removes the first item from the list. Returns true if successful,
+ i.e. if the list isn't empty; otherwise returns false.
The removed item is deleted if \link setAutoDelete()
auto-deletion\endlink is enabled.
@@ -478,8 +478,8 @@
/*!
\fn bool QPtrList::removeLast()
- Removes the last item from the list. Returns TRUE if successful,
- i.e. if the list isn't empty; otherwise returns FALSE.
+ Removes the last item from the list. Returns true if successful,
+ i.e. if the list isn't empty; otherwise returns false.
The removed item is deleted if \link setAutoDelete()
auto-deletion\endlink is enabled.
@@ -920,7 +920,7 @@
/*!
\fn bool QPtrListIterator::isEmpty() const
- Returns TRUE if the list is empty; otherwise returns FALSE.
+ Returns true if the list is empty; otherwise returns false.
\sa count()
*/
@@ -928,8 +928,8 @@
/*!
\fn bool QPtrListIterator::atFirst() const
- Returns TRUE if the current iterator item is the first list item;
- otherwise returns FALSE.
+ Returns true if the current iterator item is the first list item;
+ otherwise returns false.
\sa toFirst(), atLast()
*/
@@ -937,8 +937,8 @@
/*!
\fn bool QPtrListIterator::atLast() const
- Returns TRUE if the current iterator item is the last list item;
- otherwise returns FALSE.
+ Returns true if the current iterator item is the last list item;
+ otherwise returns false.
\sa toLast(), atFirst()
*/
@@ -1090,8 +1090,8 @@
\fn QStrList::QStrList( bool deepCopies )
Constructs an empty list of strings. Will make deep copies of all
- inserted strings if \a deepCopies is TRUE, or use shallow copies
- if \a deepCopies is FALSE.
+ inserted strings if \a deepCopies is true, or use shallow copies
+ if \a deepCopies is false.
*/
/*!
@@ -1151,8 +1151,8 @@
\fn QStrIList::QStrIList( bool deepCopies )
Constructs a list of strings. Will make deep copies of all
- inserted strings if \a deepCopies is TRUE, or use shallow copies
- if \a deepCopies is FALSE.
+ inserted strings if \a deepCopies is true, or use shallow copies
+ if \a deepCopies is false.
*/
/*!
@@ -1255,5 +1255,5 @@
\ingroup tools
A QPtrListAutoDelete is identical to a QPtrList with
- setAutoDelete(TRUE).
+ setAutoDelete(true).
*/