summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2018-10-17 23:25:46 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2018-10-17 23:25:46 +0900
commitaf6c501c07946dada6414ceda383511d5a627e35 (patch)
treee59f2325fc09138835a71055ff2ec2c2d3c9e85d
parent9103b635cc2348b03133203075a8a0da56724c51 (diff)
downloadsip4-tqt-af6c501c07946dada6414ceda383511d5a627e35.tar.gz
sip4-tqt-af6c501c07946dada6414ceda383511d5a627e35.zip
Removed obsolete Qt2's TQList/TQListIterator classes and replaced
with TQt3's TQPtrList/TQPtrListIterator ones. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-rw-r--r--doc/html/directives.html12
1 files changed, 6 insertions, 6 deletions
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.</dd>
</dl>
<p>The handwritten code must explicitly return a <tt class="docutils literal"><span class="pre">PyObject</span> <span class="pre">*</span></tt>. If there was an
error then a Python exception must be raised and <tt class="docutils literal"><span class="pre">NULL</span></tt> returned.</p>
-<p>The following example converts a <tt class="docutils literal"><span class="pre">TQList&lt;TQWidget</span> <span class="pre">*&gt;</span></tt> instance to a Python
+<p>The following example converts a <tt class="docutils literal"><span class="pre">TQPtrList&lt;TQWidget</span> <span class="pre">*&gt;</span></tt> instance to a Python
list of <tt class="docutils literal"><span class="pre">TQWidget</span></tt> instances:</p>
<div class="highlight-python"><pre>%ConvertFromTypeCode
PyObject *l;
@@ -555,7 +555,7 @@ returned instance is a derived class. See
</ul>
</blockquote>
<p>The following example converts a Python list of <tt class="docutils literal"><span class="pre">TQPoint</span></tt> instances to a
-<tt class="docutils literal"><span class="pre">TQList&lt;TQPoint&gt;</span></tt> instance:</p>
+<tt class="docutils literal"><span class="pre">TQPtrList&lt;TQPoint&gt;</span></tt> instance:</p>
<div class="highlight-python"><pre>%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&lt;TQPoint&gt; *ql = new TQList&lt;TQPoint&gt;;
+ TQPtrList&lt;TQPoint&gt; *ql = new TQPtrList&lt;TQPoint&gt;;
for (int i = 0; i &lt; PyList_GET_SIZE(sipPy); ++i)
{
@@ -1245,7 +1245,7 @@ the handwritten code that converts an instance of the mapped type to a Python
object.</p>
<p>For example:</p>
<div class="highlight-python"><pre>template&lt;Type *&gt;
-%MappedType TQList
+%MappedType TQPtrList
{
%TypeHeaderCode
// Include the library interface to the type being mapped.
@@ -1272,7 +1272,7 @@ object.</p>
}
// Create the instance on the heap.
- TQList&lt;Type *&gt; *ql = new TQList&lt;Type *&gt;;
+ TQPtrList&lt;Type *&gt; *ql = new TQPtrList&lt;Type *&gt;;
for (int i = 0; i &lt; PyList_GET_SIZE(sipPy); ++i)
{
@@ -1333,7 +1333,7 @@ object.</p>
%End
}</pre>
</div>
-<p>Using this we can use, for example, <tt class="docutils literal"><span class="pre">TQList&lt;TQObject</span> <span class="pre">*&gt;</span></tt> throughout the
+<p>Using this we can use, for example, <tt class="docutils literal"><span class="pre">TQPtrList&lt;TQObject</span> <span class="pre">*&gt;</span></tt> throughout the
module&#8217;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.</p>