diff options
author | Timothy Pearson <[email protected]> | 2011-11-29 01:11:08 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2011-11-29 01:11:08 -0600 |
commit | 8a055d66f43592c257cece2eb8cc021808062917 (patch) | |
tree | d0922f201bd5d24b62a33160d1d9baf9e89f9a70 /sip/qt/qwidgetlist.sip | |
parent | b388516ca2691303a076a0764fd40bf7116fe43d (diff) | |
download | pytqt-8a055d66f43592c257cece2eb8cc021808062917.tar.gz pytqt-8a055d66f43592c257cece2eb8cc021808062917.zip |
Initial TQt conversion
Diffstat (limited to 'sip/qt/qwidgetlist.sip')
-rw-r--r-- | sip/qt/qwidgetlist.sip | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/sip/qt/qwidgetlist.sip b/sip/qt/qwidgetlist.sip index 9fdc1ad..2b70a2b 100644 --- a/sip/qt/qwidgetlist.sip +++ b/sip/qt/qwidgetlist.sip @@ -1,29 +1,29 @@ -// This is the SIP interface definition for QWidgetList. +// This is the SIP interface definition for TQWidgetList. // // Copyright (c) 2007 // Riverbank Computing Limited <[email protected]> // -// This file is part of PyQt. +// This file is part of PyTQt. // -// This copy of PyQt is free software; you can redistribute it and/or modify it +// This copy of PyTQt is free software; you can redistribute it and/or modify it // under the terms of the GNU General Public License as published by the Free // Software Foundation; either version 2, or (at your option) any later // version. // -// PyQt is supplied in the hope that it will be useful, but WITHOUT ANY +// PyTQt is supplied in the hope that it will be useful, but WITHOUT ANY // WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS // FOR A PARTICULAR PURPOSE. See the GNU General Public License for more // details. // // You should have received a copy of the GNU General Public License along with -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, +// PyTQt; see the file LICENSE. If not, write to the Free Software Foundation, // Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. %ExportedDoc -<Sect2><Title>QWidgetList</Title> +<Sect2><Title>TQWidgetList</Title> <Para> -This class isn't implemented. Whenever a <Literal>QWidgetList</Literal> is the +This class isn't implemented. Whenever a <Literal>TQWidgetList</Literal> is the return type of a function or the type of an argument, a Python list of instances is used instead. </Para> @@ -31,7 +31,7 @@ instances is used instead. %End -%MappedType QWidgetList +%MappedType TQWidgetList { %TypeHeaderCode #include <qwidgetlist.h> @@ -41,12 +41,12 @@ instances is used instead. // Convert the list. PyObject *pl; - QWidget *obj; + TQWidget *obj; if ((pl = PyList_New(0)) == NULL) return NULL; - for (QWidgetListIt it(*sipCpp); (obj = it.current()) != NULL; ++it) + for (TQWidgetListIt it(*sipCpp); (obj = it.current()) != NULL; ++it) { PyObject *inst; @@ -65,7 +65,7 @@ instances is used instead. %End %ConvertToTypeCode - // Convert a Python list of QWidget instances to a QWidgetList on the + // Convert a Python list of TQWidget instances to a TQWidgetList on the // heap. if (sipIsErr == NULL) @@ -80,16 +80,16 @@ instances is used instead. return 1; } - QWidgetList *qwl = new QWidgetList; + TQWidgetList *qwl = new TQWidgetList; for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i) { - QWidget *qw; + TQWidget *qw; // We apply the transfer to the list itself, not the elements. // Note that any temporary element will never be destroyed. // There is nothing that can be done about this. - qw = reinterpret_cast<QWidget *>(sipConvertToInstance(PyList_GET_ITEM(sipPy,i),sipClass_QWidget,0,0,0,sipIsErr)); + qw = reinterpret_cast<TQWidget *>(sipConvertToInstance(PyList_GET_ITEM(sipPy,i),sipClass_QWidget,0,0,0,sipIsErr)); if (*sipIsErr) { |