Revert "Rename a number of old tq methods that are no longer tq specific"

This reverts commit f39e1b1760.
pull/1/head
Timothy Pearson 12 years ago
parent f39e1b1760
commit dacb50c634

@ -27,7 +27,7 @@ int main(int argc, char **argv)
/* extern void initqt(void);*/ /* extern void initqt(void);*/
/* extern void initqtaxcontainer(void);*/ /* extern void initqtaxcontainer(void);*/
/* extern void initqtcanvas(void);*/ /* extern void initqtcanvas(void);*/
/* extern void initext(void);*/ /* extern void initqtext(void);*/
/* extern void initqtgl(void);*/ /* extern void initqtgl(void);*/
/* extern void initqtnetwork(void);*/ /* extern void initqtnetwork(void);*/
/* extern void initqtsql(void);*/ /* extern void initqtsql(void);*/
@ -44,7 +44,7 @@ int main(int argc, char **argv)
/* {"qt", initqt},*/ /* {"qt", initqt},*/
/* {"qtaxcontainer", initqtaxcontainer},*/ /* {"qtaxcontainer", initqtaxcontainer},*/
/* {"qtcanvas", initqtcanvas},*/ /* {"qtcanvas", initqtcanvas},*/
/* {"qtext", initext},*/ /* {"qtext", initqtext},*/
/* {"qtgl", initqtgl},*/ /* {"qtgl", initqtgl},*/
/* {"qtnetwork", initqtnetwork},*/ /* {"qtnetwork", initqtnetwork},*/
/* {"qtsql", initqtsql},*/ /* {"qtsql", initqtsql},*/

@ -31,7 +31,7 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
/* extern void initqt(void);*/ /* extern void initqt(void);*/
/* extern void initqtaxcontainer(void);*/ /* extern void initqtaxcontainer(void);*/
/* extern void initqtcanvas(void);*/ /* extern void initqtcanvas(void);*/
/* extern void initext(void);*/ /* extern void initqtext(void);*/
/* extern void initqtgl(void);*/ /* extern void initqtgl(void);*/
/* extern void initqtnetwork(void);*/ /* extern void initqtnetwork(void);*/
/* extern void initqtsql(void);*/ /* extern void initqtsql(void);*/
@ -48,7 +48,7 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
/* {"qt", initqt},*/ /* {"qt", initqt},*/
/* {"qtaxcontainer", initqtaxcontainer},*/ /* {"qtaxcontainer", initqtaxcontainer},*/
/* {"qtcanvas", initqtcanvas},*/ /* {"qtcanvas", initqtcanvas},*/
/* {"qtext", initext},*/ /* {"qtext", initqtext},*/
/* {"qtgl", initqtgl},*/ /* {"qtgl", initqtgl},*/
/* {"qtnetwork", initqtnetwork},*/ /* {"qtnetwork", initqtnetwork},*/
/* {"qtsql", initqtsql},*/ /* {"qtsql", initqtsql},*/

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

@ -3,7 +3,7 @@
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/ */
/* -- main layout ----------------------------------------------------------- */ /* -- main tqlayout ----------------------------------------------------------- */
div.clearer { div.clearer {
clear: both; clear: both;

@ -5,7 +5,7 @@
@import url("basic.css"); @import url("basic.css");
/* -- page layout ----------------------------------------------------------- */ /* -- page tqlayout ----------------------------------------------------------- */
body { body {
font-family: sans-serif; font-family: sans-serif;

@ -1039,7 +1039,7 @@ jQuery.extend({
// IE uses filters for opacity // IE uses filters for opacity
if ( !jQuery.support.opacity && name == "opacity" ) { if ( !jQuery.support.opacity && name == "opacity" ) {
if ( set ) { if ( set ) {
// IE has trouble with opacity if it does not have layout // IE has trouble with opacity if it does not have tqlayout
// Force it by setting the zoom level // Force it by setting the zoom level
elem.zoom = 1; elem.zoom = 1;
@ -1182,7 +1182,7 @@ jQuery.each({
nextAll: function(elem){return jQuery.dir(elem,"nextSibling");}, nextAll: function(elem){return jQuery.dir(elem,"nextSibling");},
prevAll: function(elem){return jQuery.dir(elem,"previousSibling");}, prevAll: function(elem){return jQuery.dir(elem,"previousSibling");},
siblings: function(elem){return jQuery.sibling(elem.parentNode.firstChild,elem);}, siblings: function(elem){return jQuery.sibling(elem.parentNode.firstChild,elem);},
children: function(elem){return jQuery.sibling(elem.firstChild);}, tqchildren: function(elem){return jQuery.sibling(elem.firstChild);},
contents: function(elem){return jQuery.nodeName(elem,"iframe")?elem.contentDocument||elem.contentWindow.document:jQuery.makeArray(elem.childNodes);} contents: function(elem){return jQuery.nodeName(elem,"iframe")?elem.contentDocument||elem.contentWindow.document:jQuery.makeArray(elem.childNodes);}
}, function(name, fn){ }, function(name, fn){
jQuery.fn[ name ] = function( selector ) { jQuery.fn[ name ] = function( selector ) {
@ -1250,7 +1250,7 @@ jQuery.each({
empty: function() { empty: function() {
// Remove element nodes and prevent memory leaks // Remove element nodes and prevent memory leaks
jQuery(this).children().remove(); jQuery(this).tqchildren().remove();
// Remove any remaining nodes // Remove any remaining nodes
while ( this.firstChild ) 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 instance being constructed has a parent) then ownership of the instance
is transferred from Python to C++. It is needed because TQt maintains 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 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 children are also hierachy. When an object is destroyed all of its tqchildren are also
automatically destroyed. It is important, therefore, that the Python automatically destroyed. It is important, therefore, that the Python
garbage collector doesn&#8217;t also try and destroy them. This is covered in 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 more detail in <a class="reference internal" href="#ref-object-ownership"><em>Ownership of Objects</em></a>. SIP provides many other

@ -6068,7 +6068,7 @@ static void generateShadowCode(sipSpec *pt, moduleDef *mod, classDef *cd,
if (!noPyTQt4TQMetaObject(cd)) if (!noPyTQt4TQMetaObject(cd))
prcode(fp, prcode(fp,
"\n" "\n"
"const TQMetaObject *sip%C::metaObject() const\n" "const TQMetaObject *sip%C::tqmetaObject() const\n"
"{\n" "{\n"
" return sip_%s_qt_metaobject(sipPySelf,sipType_%C);\n" " return sip_%s_qt_metaobject(sipPySelf,sipType_%C);\n"
"}\n" "}\n"
@ -8186,7 +8186,7 @@ static void generateShadowClassDeclaration(sipSpec *pt,classDef *cd,FILE *fp)
if (!noPyTQt4TQMetaObject(cd)) if (!noPyTQt4TQMetaObject(cd))
prcode(fp, prcode(fp,
" const TQMetaObject *metaObject() const;\n" " const TQMetaObject *tqmetaObject() const;\n"
); );
} }

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

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

Loading…
Cancel
Save