From d5dd0a71a6d0e9893f891a3907e23668a9b081fe Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 23 Sep 2023 12:43:03 +0900 Subject: Replace QObject, QWidget, QImage, QPair, QRgb, QColor, QChar, QString, QIODevice with TQ* version Signed-off-by: Michele Calgaro --- doc/html/_sources/directives.txt | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'doc/html/_sources/directives.txt') diff --git a/doc/html/_sources/directives.txt b/doc/html/_sources/directives.txt index 858f112..14a8b2c 100644 --- a/doc/html/_sources/directives.txt +++ b/doc/html/_sources/directives.txt @@ -370,8 +370,8 @@ PyObject \*sipTransferObj 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 ``QPtrList`` instance to a Python -list of ``QWidget`` instances:: +The following example converts a ``QPtrList`` instance to a Python +list of ``TQWidget`` instances:: %ConvertFromTypeCode PyObject *l; @@ -381,13 +381,13 @@ list of ``QWidget`` instances:: return NULL; // Go through each element in the C++ instance and convert it to a - // wrapped QWidget. + // wrapped TQWidget. for (int i = 0; i < sipCpp->size(); ++i) { - QWidget *w = sipCpp->at(i); + TQWidget *w = sipCpp->at(i); PyObject *wobj; - // Get the Python wrapper for the QWidget instance, creating a new + // Get the Python wrapper for the TQWidget instance, creating a new // one if necessary, and handle any ownership transfer. if ((wobj = sipConvertFromType(w, sipType_QWidget, sipTransferObj)) == NULL) { @@ -514,8 +514,8 @@ the correct type prior to conversion. When used as part of a class specification it can automatically convert additional types of Python object. For example, PyQt uses it in the -specification of the ``QString`` class to allow Python string objects and -unicode objects to be used wherever ``QString`` instances are expected. +specification of the ``TQString`` class to allow Python string objects and +unicode objects to be used wherever ``TQString`` instances are expected. The following variables are made available to the handwritten code: @@ -1395,9 +1395,9 @@ For example:: %End } -Using this we can use, for example, ``QPtrList`` throughout the +Using this we can use, for example, ``QPtrList`` 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 QObject +generated code will automatically map this to and from a Python list of TQObject instances when appropriate. -- cgit v1.2.1