summaryrefslogtreecommitdiffstats
path: root/doc/html/_sources/using.txt
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-09-23 12:43:03 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-09-23 12:43:03 +0900
commitd5dd0a71a6d0e9893f891a3907e23668a9b081fe (patch)
tree9e75dc49b8e6d342e1a0dd28c1cf88a024fc7369 /doc/html/_sources/using.txt
parent4ebc5a806d3ee6228872041596e29eb9db0631dc (diff)
downloadsip4-tqt-d5dd0a71a6d0e9893f891a3907e23668a9b081fe.tar.gz
sip4-tqt-d5dd0a71a6d0e9893f891a3907e23668a9b081fe.zip
Replace QObject, QWidget, QImage, QPair, QRgb, QColor, QChar, QString, QIODevice with TQ* version
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/html/_sources/using.txt')
-rw-r--r--doc/html/_sources/using.txt14
1 files changed, 7 insertions, 7 deletions
diff --git a/doc/html/_sources/using.txt b/doc/html/_sources/using.txt
index ed8bfc8..49d3456 100644
--- a/doc/html/_sources/using.txt
+++ b/doc/html/_sources/using.txt
@@ -217,7 +217,7 @@ The ``hello.h`` header file looks something like this::
TQ_OBJECT
public:
- Hello(QWidget *parent = 0);
+ Hello(TQWidget *parent = 0);
private:
// Prevent instances from being copied.
@@ -226,7 +226,7 @@ The ``hello.h`` header file looks something like this::
};
#if !defined(Q_OS_WIN)
- void setDefault(const QString &def);
+ void setDefault(const TQString &def);
#endif
The corresponding SIP specification file would then look something like this::
@@ -246,14 +246,14 @@ The corresponding SIP specification file would then look something like this::
%End
public:
- Hello(QWidget *parent /TransferThis/ = 0);
+ Hello(TQWidget *parent /TransferThis/ = 0);
private:
Hello(const Hello &);
};
%If (!WS_WIN)
- void setDefault(const QString &def);
+ void setDefault(const TQString &def);
%End
%End
@@ -283,7 +283,7 @@ previous examples.
argument. It specifies that if the argument is not 0 (i.e. the ``Hello``
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
+ objects (i.e. instances derived from the ``TQObject`` class) in a
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
@@ -515,9 +515,9 @@ As an example, PyQt4 uses :directive:`%DefaultMetatype` to specify a new
meta-type that handles the interaction with Qt's own meta-type system. It also
uses :directive:`%DefaultSupertype` to specify that the smaller
:class:`sip.simplewrapper` super-type is normally used. Finally it uses
-:canno:`Supertype` as an annotation of the ``QObject`` class to override the
+:canno:`Supertype` as an annotation of the ``TQObject`` class to override the
default and use :class:`sip.wrapper` as the super-type so that the parent/child
-relationships of ``QObject`` instances are properly maintained.
+relationships of ``TQObject`` instances are properly maintained.
.. _ref-lazy-type-attributes: