diff --git a/doc/html/directives.html b/doc/html/directives.html index 1ae1c60..189d832 100644 --- a/doc/html/directives.html +++ b/doc/html/directives.html @@ -380,7 +380,7 @@ made to each element of the list.
The handwritten code must explicitly return a PyObject *. If there was an error then a Python exception must be raised and NULL returned.
-The following example converts a TQList<TQWidget *> instance to a Python +
The following example converts a TQPtrList<TQWidget *> instance to a Python list of TQWidget instances:
%ConvertFromTypeCode
PyObject *l;
@@ -555,7 +555,7 @@ returned instance is a derived class. See
The following example converts a Python list of TQPoint instances to a
-TQList<TQPoint> instance:
+TQPtrList<TQPoint> instance:
%ConvertToTypeCode
// See if we are just being asked to check the type of the Python
// object.
@@ -579,7 +579,7 @@ returned instance is a derived class. See
}
// Create the instance on the heap.
- TQList<TQPoint> *ql = new TQList<TQPoint>;
+ TQPtrList<TQPoint> *ql = new TQPtrList<TQPoint>;
for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i)
{
@@ -1245,7 +1245,7 @@ the handwritten code that converts an instance of the mapped type to a Python
object.
For example:
template<Type *>
-%MappedType TQList
+%MappedType TQPtrList
{
%TypeHeaderCode
// Include the library interface to the type being mapped.
@@ -1272,7 +1272,7 @@ object.
}
// Create the instance on the heap.
- TQList<Type *> *ql = new TQList<Type *>;
+ TQPtrList<Type *> *ql = new TQPtrList<Type *>;
for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i)
{
@@ -1333,7 +1333,7 @@ object.
%End
}
-Using this we can use, for example, TQList<TQObject *> throughout the
+
Using this we can use, for example, TQPtrList<TQObject *> throughout the
module’s specification files (and in any module that imports this one). The
generated code will automatically map this to and from a Python list of TQObject
instances when appropriate.