summaryrefslogtreecommitdiffstats
path: root/doc/man/man3/tqdict.3qt
diff options
context:
space:
mode:
Diffstat (limited to 'doc/man/man3/tqdict.3qt')
-rw-r--r--doc/man/man3/tqdict.3qt24
1 files changed, 12 insertions, 12 deletions
diff --git a/doc/man/man3/tqdict.3qt b/doc/man/man3/tqdict.3qt
index e5e051efc..ad391b99c 100644
--- a/doc/man/man3/tqdict.3qt
+++ b/doc/man/man3/tqdict.3qt
@@ -11,7 +11,7 @@ QDict \- Template class that provides a dictionary based on TQString keys
.SH SYNOPSIS
\fC#include <ntqdict.h>\fR
.PP
-Inherits QPtrCollection.
+Inherits TQPtrCollection.
.PP
.SS "Public Members"
.in +1c
@@ -76,10 +76,10 @@ Inherits QPtrCollection.
.SS "Protected Members"
.in +1c
.ti -1c
-.BI "virtual QDataStream & \fBread\fR ( QDataStream & s, QPtrCollection::Item & item )"
+.BI "virtual QDataStream & \fBread\fR ( QDataStream & s, TQPtrCollection::Item & item )"
.br
.ti -1c
-.BI "virtual QDataStream & \fBwrite\fR ( QDataStream & s, QPtrCollection::Item ) const"
+.BI "virtual QDataStream & \fBwrite\fR ( QDataStream & s, TQPtrCollection::Item ) const"
.br
.in -1c
.SH DESCRIPTION
@@ -105,9 +105,9 @@ Items with equal keys are allowed. When inserting two items with the same key, o
.PP
The QDictIterator class can traverse the dictionary, but only in an arbitrary order. Multiple iterators may independently traverse the same dictionary.
.PP
-When inserting an item into a dictionary, only the pointer is copied, not the item itself, i.e. a shallow copy is made. It is possible to make the dictionary copy all of the item's data (a deep copy) when an item is inserted. insert() calls the virtual function QPtrCollection::newItem() for the item to be inserted. Inherit a dictionary and reimplement newItem() if you want deep copies.
+When inserting an item into a dictionary, only the pointer is copied, not the item itself, i.e. a shallow copy is made. It is possible to make the dictionary copy all of the item's data (a deep copy) when an item is inserted. insert() calls the virtual function TQPtrCollection::newItem() for the item to be inserted. Inherit a dictionary and reimplement newItem() if you want deep copies.
.PP
-When removing a dictionary item, the virtual function QPtrCollection::deleteItem() is called. QDict's default implementation is to delete the item if auto-deletion is enabled.
+When removing a dictionary item, the virtual function TQPtrCollection::deleteItem() is called. QDict's default implementation is to delete the item if auto-deletion is enabled.
.PP
Example #1:
.PP
@@ -200,7 +200,7 @@ In the example we are using the dictionary to provide fast random access to the
.PP
We first obtain the list of available styles, then sort them so that the menu items will be ordered alphabetically. Next we create a dictionary of int pointers. The keys in the dictionary are each one character long, representing letters that have been used for accelerators. We iterate through our list of style names. If the first letter of the style name is in the dictionary, i.e. has been used, we iterate over all the characters in the style name to see if we can find a letter that hasn't been used. If we find an unused letter we put the accelerator ampersand (&) in front of it and add that letter to the dictionary. If we can't find an unused letter the style will simply have no accelerator. If the first letter of the style name is not in the dictionary we use it for the accelerator and add it to the dictionary. Finally we create a QAction for each style.
.PP
-See also QDictIterator, QAsciiDict, QIntDict, QPtrDict, Collection Classes, and Non-GUI Classes.
+See also QDictIterator, QAsciiDict, QIntDict, TQPtrDict, Collection Classes, and Non-GUI Classes.
.SH MEMBER FUNCTION DOCUMENTATION
.SH "QDict::QDict ( int size = 17, bool caseSensitive = TRUE )"
Constructs a dictionary optimized for less than \fIsize\fR entries.
@@ -216,7 +216,7 @@ Each item in \fIdict\fR is inserted into this dictionary. Only the pointers are
Removes all items from the dictionary and destroys it. If setAutoDelete() is TRUE, each value is deleted. All iterators that access this dictionary will be reset.
.PP
See also setAutoDelete().
-.SH "bool QPtrCollection::autoDelete () const"
+.SH "bool TQPtrCollection::autoDelete () const"
Returns the setting of the auto-delete option. The default is FALSE.
.PP
See also setAutoDelete().
@@ -229,13 +229,13 @@ All dictionary iterators that operate on the dictionary are reset.
.PP
See also remove(), take(), and setAutoDelete().
.PP
-Reimplemented from QPtrCollection.
+Reimplemented from TQPtrCollection.
.SH "uint QDict::count () const\fC [virtual]\fR"
Returns the number of items in the dictionary.
.PP
See also isEmpty().
.PP
-Reimplemented from QPtrCollection.
+Reimplemented from TQPtrCollection.
.SH "type * QDict::find ( const TQString & key ) const"
Returns the item with key \fIkey\fR, or 0 if the key does not exist in the dictionary.
.PP
@@ -270,7 +270,7 @@ If there are two or more items with equal keys, then the most recently inserted
Equivalent to the find() function.
.PP
See also find().
-.SH "QDataStream & QDict::read ( QDataStream & s, QPtrCollection::Item & item )\fC [virtual protected]\fR"
+.SH "QDataStream & QDict::read ( QDataStream & s, TQPtrCollection::Item & item )\fC [virtual protected]\fR"
Reads a dictionary item from the stream \fIs\fR and returns a reference to the stream.
.PP
The default implementation sets \fIitem\fR to 0.
@@ -314,7 +314,7 @@ If there are two or more items with equal keys, then the last item that was inse
See also insert().
.SH "void QDict::resize ( uint newsize )"
Changes the size of the hash table to \fInewsize\fR. The contents of the dictionary are preserved, but all iterators on the dictionary become invalid.
-.SH "void QPtrCollection::setAutoDelete ( bool enable )"
+.SH "void TQPtrCollection::setAutoDelete ( bool enable )"
Sets the collection to auto-delete its contents if \fIenable\fR is TRUE and to never delete them if \fIenable\fR is FALSE.
.PP
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.
@@ -343,7 +343,7 @@ Returns a pointer to the item taken out, or 0 if the key does not exist in the d
All dictionary iterators that refer to the taken item will be set to point to the next item in the dictionary traversal order.
.PP
See also remove(), clear(), and setAutoDelete().
-.SH "QDataStream & QDict::write ( QDataStream & s, QPtrCollection::Item ) const\fC [virtual protected]\fR"
+.SH "QDataStream & QDict::write ( QDataStream & s, TQPtrCollection::Item ) const\fC [virtual protected]\fR"
Writes a dictionary item to the stream \fIs\fR and returns a reference to the stream.
.PP
See also read().