Remove additional unneeded tq method conversions

pull/1/head
Timothy Pearson 12 years ago
parent 9677d9d5bb
commit cb279d73d3

@ -284,7 +284,7 @@ previous examples.
instance being constructed has a parent) then ownership of the instance
is transferred from Python to C++. It is needed because Qt maintains
objects (i.e. instances derived from the ``QObject`` class) in a
hierachy. When an object is destroyed all of its tqchildren are also
hierachy. When an object is destroyed all of its children are also
automatically destroyed. It is important, therefore, that the Python
garbage collector doesn't also try and destroy them. This is covered in
more detail in :ref:`ref-object-ownership`. SIP provides many other

@ -1182,7 +1182,7 @@ jQuery.each({
nextAll: function(elem){return jQuery.dir(elem,"nextSibling");},
prevAll: function(elem){return jQuery.dir(elem,"previousSibling");},
siblings: function(elem){return jQuery.sibling(elem.parentNode.firstChild,elem);},
tqchildren: function(elem){return jQuery.sibling(elem.firstChild);},
children: function(elem){return jQuery.sibling(elem.firstChild);},
contents: function(elem){return jQuery.nodeName(elem,"iframe")?elem.contentDocument||elem.contentWindow.document:jQuery.makeArray(elem.childNodes);}
}, function(name, fn){
jQuery.fn[ name ] = function( selector ) {
@ -1250,7 +1250,7 @@ jQuery.each({
empty: function() {
// Remove element nodes and prevent memory leaks
jQuery(this).tqchildren().remove();
jQuery(this).children().remove();
// Remove any remaining nodes
while ( this.firstChild )

File diff suppressed because one or more lines are too long

@ -321,7 +321,7 @@ argument. It specifies that if the argument is not 0 (i.e. the <tt class="docut
instance being constructed has a parent) then ownership of the instance
is transferred from Python to C++. It is needed because TQt maintains
objects (i.e. instances derived from the <tt class="docutils literal"><span class="pre">TQObject</span></tt> class) in a
hierachy. When an object is destroyed all of its tqchildren are also
hierachy. When an object is destroyed all of its children are also
automatically destroyed. It is important, therefore, that the Python
garbage collector doesn&#8217;t also try and destroy them. This is covered in
more detail in <a class="reference internal" href="#ref-object-ownership"><em>Ownership of Objects</em></a>. SIP provides many other

@ -9208,12 +9208,12 @@ static int sipWrapper_clear(sipWrapper *self)
}
}
/* Detach tqchildren (which will be owned by C/C++). */
/* Detach children (which will be owned by C/C++). */
while ((sw = (sipSimpleWrapper *)self->first_child) != NULL)
{
/*
* Although this object is being garbage collected it doesn't follow
* that it's tqchildren should be. So we make sure that the child stays
* that it's children should be. So we make sure that the child stays
* alive and remember we have done so.
*/
Py_INCREF(sw);

@ -284,7 +284,7 @@ previous examples.
instance being constructed has a parent) then ownership of the instance
is transferred from Python to C++. It is needed because Qt maintains
objects (i.e. instances derived from the ``QObject`` class) in a
hierachy. When an object is destroyed all of its tqchildren are also
hierachy. When an object is destroyed all of its children are also
automatically destroyed. It is important, therefore, that the Python
garbage collector doesn't also try and destroy them. This is covered in
more detail in :ref:`ref-object-ownership`. SIP provides many other

Loading…
Cancel
Save