summaryrefslogtreecommitdiffstats
path: root/doc/html/tqptrlist.html
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-08-06 11:29:57 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-08-06 11:29:57 +0900
commitdcce5b1f2c449ed9a02b1752e0d74f147a83d07d (patch)
treed57fe27457a96451f1a67e2a2db268a441d917fc /doc/html/tqptrlist.html
parent649c4c61a1f1f479f4532b196f68df476cef2680 (diff)
downloadtqt-rename/true-false-4.tar.gz
tqt-rename/true-false-4.zip
Replace TRUE/FALSE with boolean values true/false - part 4rename/true-false-4
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/html/tqptrlist.html')
-rw-r--r--doc/html/tqptrlist.html50
1 files changed, 25 insertions, 25 deletions
diff --git a/doc/html/tqptrlist.html b/doc/html/tqptrlist.html
index 905bab097..e8698eb9e 100644
--- a/doc/html/tqptrlist.html
+++ b/doc/html/tqptrlist.html
@@ -141,7 +141,7 @@ Example:
};
TQPtrList&lt;Employee&gt; list;
- list.<a href="tqptrcollection.html#setAutoDelete">setAutoDelete</a>( TRUE ); // the list owns the objects
+ list.<a href="tqptrcollection.html#setAutoDelete">setAutoDelete</a>( true ); // the list owns the objects
list.<a href="#append">append</a>( new Employee("John", "Doe", 50000) );
list.<a href="#append">append</a>( new Employee("Jane", "Williams", 80000) );
@@ -175,7 +175,7 @@ Example:
using a <a href="tqptrlistiterator.html">TQPtrListIterator</a> can be more practical. Multiple list
iterators may traverse the same list, independently of each other
and of the current list item.
-<p> In the example above we make the call <a href="tqptrcollection.html#setAutoDelete">setAutoDelete</a>(TRUE).
+<p> In the example above we make the call <a href="tqptrcollection.html#setAutoDelete">setAutoDelete</a>(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
@@ -259,7 +259,7 @@ item, last item, or current item, whichever is closest to <em>index</em>.
<h3 class=fn>bool <a name="autoDelete"></a>TQPtrCollection::autoDelete () const
</h3>
-<p> Returns the setting of the auto-delete option. The default is FALSE.
+<p> Returns the setting of the auto-delete option. The default is false.
<p> <p>See also <a href="tqptrcollection.html#setAutoDelete">setAutoDelete</a>().
<h3 class=fn>void <a name="clear"></a>TQPtrList::clear ()<tt> [virtual]</tt>
@@ -438,8 +438,8 @@ a few additional items.
</h3>
<p> Inserts the <em>item</em> at position <em>index</em> in the list.
-<p> Returns TRUE if successful, i.e. if <em>index</em> is in range;
-otherwise returns FALSE. The valid range is 0 to <a href="#count">count</a>()
+<p> Returns true if successful, i.e. if <em>index</em> is in range;
+otherwise returns false. The valid range is 0 to <a href="#count">count</a>()
(inclusively). The item is appended if <em>index</em> == count().
<p> The inserted item becomes the current list item.
<p> <em>item</em> must not be 0.
@@ -448,7 +448,7 @@ otherwise returns FALSE. The valid range is 0 to <a href="#count">count</a>()
<h3 class=fn>bool <a name="isEmpty"></a>TQPtrList::isEmpty () const
</h3>
-<p> Returns TRUE if the list is empty; otherwise returns FALSE.
+<p> Returns true if the list is empty; otherwise returns false.
<p> <p>See also <a href="#count">count</a>().
<h3 class=fn>type * <a name="last"></a>TQPtrList::last ()
@@ -472,8 +472,8 @@ function call was the last item, the current item will be set to
<h3 class=fn>bool <a name="operator!-eq"></a>TQPtrList::operator!= ( const&nbsp;<a href="tqptrlist.html">TQPtrList</a>&lt;type&gt;&nbsp;&amp;&nbsp;list ) const
</h3>
-<p> Compares this list with <em>list</em>. Returns TRUE if the lists contain
-different data; otherwise returns FALSE.
+<p> Compares this list with <em>list</em>. Returns true if the lists contain
+different data; otherwise returns false.
<h3 class=fn><a href="tqptrlist.html">TQPtrList</a>&lt;type&gt;&nbsp;&amp; <a name="operator-eq"></a>TQPtrList::operator= ( const&nbsp;<a href="tqptrlist.html">TQPtrList</a>&lt;type&gt;&nbsp;&amp;&nbsp;list )
</h3>
@@ -485,8 +485,8 @@ copied (shallow copy) unless <a href="tqptrcollection.html#newItem">newItem</a>(
<h3 class=fn>bool <a name="operator-eq-eq"></a>TQPtrList::operator== ( const&nbsp;<a href="tqptrlist.html">TQPtrList</a>&lt;type&gt;&nbsp;&amp;&nbsp;list ) const
</h3>
-<p> Compares this list with <em>list</em>. Returns TRUE if the lists contain
-the same data; otherwise returns FALSE.
+<p> Compares this list with <em>list</em>. Returns true if the lists contain
+the same data; otherwise returns false.
<h3 class=fn>void <a name="prepend"></a>TQPtrList::prepend ( const&nbsp;type&nbsp;*&nbsp;item )
</h3>
@@ -519,8 +519,8 @@ the stream.
</h3>
<p> Removes the item at position <em>index</em> in the list.
-<p> Returns TRUE if successful, i.e. if <em>index</em> is in range;
-otherwise returns FALSE. The valid range is <tt>0..(count() - 1)</tt>
+<p> Returns true if successful, i.e. if <em>index</em> is in range;
+otherwise returns false. The valid range is <tt>0..(count() - 1)</tt>
inclusive.
<p> The removed item is deleted if <a href="tqptrcollection.html#setAutoDelete">auto-deletion</a> is enabled.
<p> The item after the removed item becomes the new current list item
@@ -535,8 +535,8 @@ point to the new current item.
<p> This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
<p> Removes the current list item.
-<p> Returns TRUE if successful, i.e. if the current item isn't 0;
-otherwise returns FALSE.
+<p> Returns true if successful, i.e. if the current item isn't 0;
+otherwise returns false.
<p> The removed item is deleted if <a href="tqptrcollection.html#setAutoDelete">auto-deletion</a> is enabled.
<p> The item after the removed item becomes the new current list item
if the removed item is not the last item in the list. If the last
@@ -551,8 +551,8 @@ point to the new current item.
<p> This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
<p> Removes the first occurrence of <em>item</em> from the list.
-<p> Returns TRUE if successful, i.e. if <em>item</em> is in the list;
-otherwise returns FALSE.
+<p> Returns true if successful, i.e. if <em>item</em> is in the list;
+otherwise returns false.
<p> The removed item is deleted if <a href="tqptrcollection.html#setAutoDelete">auto-deletion</a> is enabled.
<p> The <a href="#compareItems">compareItems</a>() function is called when searching for the item
in the list. If compareItems() is not reimplemented, it is more
@@ -569,8 +569,8 @@ point to the new current item.
<h3 class=fn>bool <a name="removeFirst"></a>TQPtrList::removeFirst ()
</h3>
-<p> Removes the first item from the list. Returns TRUE if successful,
-i.e. if the list isn't empty; otherwise returns FALSE.
+<p> Removes the first item from the list. Returns true if successful,
+i.e. if the list isn't empty; otherwise returns false.
<p> The removed item is deleted if <a href="tqptrcollection.html#setAutoDelete">auto-deletion</a> is enabled.
<p> The first item in the list becomes the new current list item. The
current item is set to 0 if the list becomes empty.
@@ -581,8 +581,8 @@ point to the new current item.
<h3 class=fn>bool <a name="removeLast"></a>TQPtrList::removeLast ()
</h3>
-<p> Removes the last item from the list. Returns TRUE if successful,
-i.e. if the list isn't empty; otherwise returns FALSE.
+<p> Removes the last item from the list. Returns true if successful,
+i.e. if the list isn't empty; otherwise returns false.
<p> The removed item is deleted if <a href="tqptrcollection.html#setAutoDelete">auto-deletion</a> is enabled.
<p> The last item in the list becomes the new current list item. The
current item is set to 0 if the list becomes empty.
@@ -608,8 +608,8 @@ the removed item was the last item.
</h3>
<p> Removes the first occurrence of <em>item</em> from the list.
-<p> Returns TRUE if successful, i.e. if <em>item</em> is in the list;
-otherwise returns FALSE.
+<p> Returns true if successful, i.e. if <em>item</em> is in the list;
+otherwise returns false.
<p> The removed item is deleted if <a href="tqptrcollection.html#setAutoDelete">auto-deletion</a> is enabled.
<p> Equivalent to:
<pre>
@@ -629,7 +629,7 @@ point to the new current item.
</h3>
<p> Replaces the item at position <em>index</em> with the new <em>item</em>.
-<p> Returns TRUE if successful, i.e. <em>index</em> is in the range 0 to
+<p> Returns true if successful, i.e. <em>index</em> is in the range 0 to
<a href="#count">count</a>()-1.
<p> <p>See also <a href="#append">append</a>(), <a href="#current">current</a>(), and <a href="#insert">insert</a>().
@@ -637,11 +637,11 @@ point to the new current item.
</h3>
<p> Sets the collection to auto-delete its contents if <em>enable</em> is
-TRUE and to never delete them if <em>enable</em> is FALSE.
+true and to never delete them if <em>enable</em> is false.
<p> If auto-deleting is turned on, all the items in a collection are
deleted when the collection itself is deleted. This is convenient
if the collection has the only pointer to the items.
-<p> The default setting is FALSE, for safety. If you turn it on, be
+<p> The default setting is false, for safety. If you turn it on, be
careful about copying the collection - you might find yourself
with two collections deleting the same items.
<p> Note that the auto-delete setting may also affect other functions