summaryrefslogtreecommitdiffstats
path: root/sip/qt/qobject.sip
diff options
context:
space:
mode:
Diffstat (limited to 'sip/qt/qobject.sip')
-rw-r--r--sip/qt/qobject.sip438
1 files changed, 219 insertions, 219 deletions
diff --git a/sip/qt/qobject.sip b/sip/qt/qobject.sip
index 0129284..8131cf3 100644
--- a/sip/qt/qobject.sip
+++ b/sip/qt/qobject.sip
@@ -1,30 +1,30 @@
-// This is the SIP interface definition for QObject.
+// This is the SIP interface definition for TQObject.
//
// 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>QObject</Title>
+<Sect2><Title>TQObject</Title>
<FuncSynopsis>
<FuncDef>bool <Function>disconnect</Function></FuncDef>
- <ParamDef>const QObject *<Parameter>receiver</Parameter></ParamDef>
+ <ParamDef>const TQObject *<Parameter>receiver</Parameter></ParamDef>
<ParamDef>const char *<Parameter>member</Parameter> = 0</ParamDef>
</FuncSynopsis>
<Para>
@@ -34,7 +34,7 @@ Not yet implemented.
<FuncSynopsis>
<FuncDef>bool <Function>disconnect</Function></FuncDef>
<ParamDef>const char *<Parameter>signal</Parameter> = 0</ParamDef>
- <ParamDef>const QObject *<Parameter>receiver</Parameter> = 0</ParamDef>
+ <ParamDef>const TQObject *<Parameter>receiver</Parameter> = 0</ParamDef>
<ParamDef>const char *<Parameter>member</Parameter> = 0</ParamDef>
</FuncSynopsis>
<Para>
@@ -43,13 +43,13 @@ Not yet implemented.
<FuncSynopsis>
<FuncDef>static bool <Function>disconnect</Function></FuncDef>
- <ParamDef>const QObject *<Parameter>sender</Parameter></ParamDef>
+ <ParamDef>const TQObject *<Parameter>sender</Parameter></ParamDef>
<ParamDef>const char *<Parameter>signal</Parameter></ParamDef>
- <ParamDef>const QObject *<Parameter>receiver</Parameter></ParamDef>
+ <ParamDef>const TQObject *<Parameter>receiver</Parameter></ParamDef>
<ParamDef>const char *<Parameter>member</Parameter></ParamDef>
</FuncSynopsis>
<Para>
-At the moment PyQt does not support the full behaviour of the corresponding Qt
+At the moment PyTQt does not support the full behaviour of the corresponding TQt
method. In particular, specifying None (ie. 0 in C++) for the
<Literal>signal</Literal> and <Literal>receiver</Literal> parameters is not yet
supported.
@@ -58,9 +58,9 @@ supported.
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
-class QObject : Qt
+class TQObject : TQt
{
%TypeHeaderCode
#include <qobject.h>
@@ -68,7 +68,7 @@ class QObject : Qt
%End
public:
- QObject(QObject * /TransferThis/ = 0,const char * = 0);
+ TQObject(TQObject * /TransferThis/ = 0,const char * = 0);
%ConvertToSubClassCode
static struct class_graph {
@@ -77,7 +77,7 @@ public:
int yes, no;
} graph[] = {
{sipName_QWidget, &sipClass_QWidget, 25, 1},
-#if QT_VERSION >= 0x030100 && defined(SIP_FEATURE_Qt_ASSISTANTCLIENT)
+#if QT_VERSION >= 0x030100 && defined(SIP_FEATURE_TQt_ASSISTANTCLIENT)
{sipName_QAssistantClient, &sipClass_QAssistantClient, -1, 2},
#else
{NULL, NULL, -1, 2},
@@ -90,12 +90,12 @@ public:
{NULL, NULL, -1, 5},
#endif
{sipName_QToolTipGroup, &sipClass_QToolTipGroup, -1, 6},
-#if defined(SIP_FEATURE_Qt_FILEDIALOG)
+#if defined(SIP_FEATURE_TQt_FILEDIALOG)
{sipName_QFileIconProvider, &sipClass_QFileIconProvider, -1, 7},
#else
{NULL, NULL, -1, 7},
#endif
-#if QT_VERSION >= 220 && defined(SIP_FEATURE_Qt_ACTION)
+#if QT_VERSION >= 220 && defined(SIP_FEATURE_TQt_ACTION)
{sipName_QAction, &sipClass_QAction, 89, 8},
#else
{NULL, NULL, -1, 8},
@@ -107,14 +107,14 @@ public:
#endif
{sipName_QTimer, &sipClass_QTimer, -1, 10},
{sipName_QLayout, &sipClass_QLayout, 90, 11},
-#if QT_VERSION >= 210 && defined(SIP_FEATURE_Qt_NETWORKPROTOCOL)
+#if QT_VERSION >= 210 && defined(SIP_FEATURE_TQt_NETWORKPROTOCOL)
{sipName_QUrlOperator, &sipClass_QUrlOperator, -1, 12},
#else
{NULL, NULL, -1, 12},
#endif
{sipName_QStyleSheet, &sipClass_QStyleSheet, -1, 13},
{sipName_QValidator, &sipClass_QValidator, 94, 14},
-#if QT_VERSION >= 210 && defined(SIP_FEATURE_Qt_NETWORKPROTOCOL)
+#if QT_VERSION >= 210 && defined(SIP_FEATURE_TQt_NETWORKPROTOCOL)
{sipName_QNetworkOperation, &sipClass_QNetworkOperation, -1, 15},
#else
{NULL, NULL, -1, 15},
@@ -125,12 +125,12 @@ public:
#else
{NULL, NULL, -1, 17},
#endif
-#if QT_VERSION >= 210 && defined(SIP_FEATURE_Qt_NETWORKPROTOCOL)
+#if QT_VERSION >= 210 && defined(SIP_FEATURE_TQt_NETWORKPROTOCOL)
{sipName_QNetworkProtocol, &sipClass_QNetworkProtocol, -1, 18},
#else
{NULL, NULL, -1, 18},
#endif
-#if QT_VERSION >= 220 && defined(SIP_FEATURE_Qt_SOUND)
+#if QT_VERSION >= 220 && defined(SIP_FEATURE_TQt_SOUND)
{sipName_QSound, &sipClass_QSound, -1, 19},
#else
{NULL, NULL, -1, 19},
@@ -140,13 +140,13 @@ public:
{sipName_QSocketNotifier, &sipClass_QSocketNotifier, -1, 22},
{sipName_QStyle, &sipClass_QStyle, 103, 23},
{sipName_QSignalMapper, &sipClass_QSignalMapper, -1, 24},
-#if defined(SIP_FEATURE_Qt_CLIPBOARD)
+#if defined(SIP_FEATURE_TQt_CLIPBOARD)
{sipName_QClipboard, &sipClass_QClipboard, -1, -1},
#else
{NULL, NULL, -1, -1},
#endif
{sipName_QStatusBar, &sipClass_QStatusBar, -1, 26},
-#if defined(SIP_FEATURE_Qt_SIZEGRIP)
+#if defined(SIP_FEATURE_TQt_SIZEGRIP)
{sipName_QSizeGrip, &sipClass_QSizeGrip, -1, 27},
#else
{NULL, NULL, -1, 27},
@@ -170,7 +170,7 @@ public:
#endif
{sipName_QFrame, &sipClass_QFrame, 46, 33},
{sipName_QScrollBar, &sipClass_QScrollBar, -1, 34},
-#if QT_VERSION >= 220 && defined(SIP_FEATURE_Qt_DIAL)
+#if QT_VERSION >= 220 && defined(SIP_FEATURE_TQt_DIAL)
{sipName_QDial, &sipClass_QDial, -1, 35},
#else
{NULL, NULL, -1, 35},
@@ -192,7 +192,7 @@ public:
#endif
{sipName_QSlider, &sipClass_QSlider, -1, 43},
{sipName_QSpinBox, &sipClass_QSpinBox, -1, 44},
-#if QT_VERSION >= 210 && defined(SIP_FEATURE_Qt_WORKSPACE)
+#if QT_VERSION >= 210 && defined(SIP_FEATURE_TQt_WORKSPACE)
{sipName_QWorkspace, &sipClass_QWorkspace, -1, 45},
#else
{NULL, NULL, -1, 45},
@@ -219,7 +219,7 @@ public:
{sipName_QLabel, &sipClass_QLabel, -1, 53},
{sipName_QGroupBox, &sipClass_QGroupBox, 61, 54},
{sipName_QPopupMenu, &sipClass_QPopupMenu, -1, 55},
-#if defined(SIP_FEATURE_Qt_SPLITTER)
+#if defined(SIP_FEATURE_TQt_SPLITTER)
{sipName_QSplitter, &sipClass_QSplitter, -1, 56},
#else
{NULL, NULL, -1, 56},
@@ -234,7 +234,7 @@ public:
{sipName_QVGroupBox, &sipClass_QVGroupBox, -1, -1},
{sipName_QVButtonGroup, &sipClass_QVButtonGroup, -1, 65},
{sipName_QHButtonGroup, &sipClass_QHButtonGroup, -1, -1},
-#if QT_VERSION >= 210 && defined(SIP_FEATURE_Qt_ICONVIEW)
+#if QT_VERSION >= 210 && defined(SIP_FEATURE_TQt_ICONVIEW)
{sipName_QIconView, &sipClass_QIconView, -1, 67},
#else
{NULL, NULL, -1, 67},
@@ -259,7 +259,7 @@ public:
{sipName_QRadioButton, &sipClass_QRadioButton, -1, 77},
{sipName_QPushButton, &sipClass_QPushButton, -1, 78},
{sipName_QCheckBox, &sipClass_QCheckBox, -1, -1},
-#if defined(WS_X11) && defined(SIP_FEATURE_Qt_PRINTDIALOG)
+#if defined(WS_X11) && defined(SIP_FEATURE_TQt_PRINTDIALOG)
{sipName_QPrintDialog, &sipClass_QPrintDialog, -1, 80},
#else
{NULL, NULL, -1, 80},
@@ -269,47 +269,47 @@ public:
#else
{NULL, NULL, -1, 81},
#endif
-#if QT_VERSION >= 210 && defined(SIP_FEATURE_Qt_INPUTDIALOG)
+#if QT_VERSION >= 210 && defined(SIP_FEATURE_TQt_INPUTDIALOG)
{sipName_QInputDialog, &sipClass_QInputDialog, -1, 82},
#else
{NULL, NULL, -1, 82},
#endif
-#if defined(SIP_FEATURE_Qt_MESSAGEBOX)
+#if defined(SIP_FEATURE_TQt_MESSAGEBOX)
{sipName_QMessageBox, &sipClass_QMessageBox, -1, 83},
#else
{NULL, NULL, -1, 83},
#endif
-#if defined(SIP_FEATURE_Qt_WIZARD)
+#if defined(SIP_FEATURE_TQt_WIZARD)
{sipName_QWizard, &sipClass_QWizard, -1, 84},
#else
{NULL, NULL, -1, 84},
#endif
-#if defined(SIP_FEATURE_Qt_COLORDIALOG)
+#if defined(SIP_FEATURE_TQt_COLORDIALOG)
{sipName_QColorDialog, &sipClass_QColorDialog, -1, 85},
#else
{NULL, NULL, -1, 85},
#endif
-#if defined(SIP_FEATURE_Qt_FONTDIALOG)
+#if defined(SIP_FEATURE_TQt_FONTDIALOG)
{sipName_QFontDialog, &sipClass_QFontDialog, -1, 86},
#else
{NULL, NULL, -1, 86},
#endif
-#if defined(SIP_FEATURE_Qt_FILEDIALOG)
+#if defined(SIP_FEATURE_TQt_FILEDIALOG)
{sipName_QFileDialog, &sipClass_QFileDialog, -1, 87},
#else
{NULL, NULL, -1, 87},
#endif
-#if defined(SIP_FEATURE_Qt_PROGRESSDIALOG)
+#if defined(SIP_FEATURE_TQt_PROGRESSDIALOG)
{sipName_QProgressDialog, &sipClass_QProgressDialog, -1, 88},
#else
{NULL, NULL, -1, 88},
#endif
-#if defined(SIP_FEATURE_Qt_TABDIALOG)
+#if defined(SIP_FEATURE_TQt_TABDIALOG)
{sipName_QTabDialog, &sipClass_QTabDialog, -1, -1},
#else
{NULL, NULL, -1, -1},
#endif
-#if QT_VERSION >= 220 && defined(SIP_FEATURE_Qt_ACTION)
+#if QT_VERSION >= 220 && defined(SIP_FEATURE_TQt_ACTION)
{sipName_QActionGroup, &sipClass_QActionGroup, -1, -1},
#else
{NULL, NULL, -1, -1},
@@ -327,7 +327,7 @@ public:
#endif
{sipName_QTextDrag, &sipClass_QTextDrag, -1, 98},
{sipName_QStoredDrag, &sipClass_QStoredDrag, 101, 99},
-#if QT_VERSION >= 210 && defined(SIP_FEATURE_Qt_ICONVIEW) && defined(SIP_FEATURE_Qt_DRAGANDDROP)
+#if QT_VERSION >= 210 && defined(SIP_FEATURE_TQt_ICONVIEW) && defined(SIP_FEATURE_TQt_DRAGANDDROP)
{sipName_QIconDrag, &sipClass_QIconDrag, -1, 100},
#else
{NULL, NULL, -1, 100},
@@ -340,32 +340,32 @@ public:
#endif
{sipName_QUriDrag, &sipClass_QUriDrag, -1, -1},
{sipName_QCommonStyle, &sipClass_QCommonStyle, 104, -1},
-#if defined(SIP_FEATURE_Qt_STYLE_WINDOWS)
+#if defined(SIP_FEATURE_TQt_STYLE_WINDOWS)
{sipName_QWindowsStyle, &sipClass_QWindowsStyle, 106, 105},
#else
{NULL, NULL, -1, 105},
#endif
-#if defined(SIP_FEATURE_Qt_STYLE_MOTIF)
+#if defined(SIP_FEATURE_TQt_STYLE_MOTIF)
{sipName_QMotifStyle, &sipClass_QMotifStyle, 107, -1},
#else
{NULL, NULL, -1, -1},
#endif
-#if defined(SIP_FEATURE_Qt_STYLE_PLATINUM)
+#if defined(SIP_FEATURE_TQt_STYLE_PLATINUM)
{sipName_QPlatinumStyle, &sipClass_QPlatinumStyle, -1, 110},
#else
{NULL, NULL, -1, 110},
#endif
-#if defined(SIP_FEATURE_Qt_STYLE_CDE)
+#if defined(SIP_FEATURE_TQt_STYLE_CDE)
{sipName_QCDEStyle, &sipClass_QCDEStyle, -1, 108},
#else
{NULL, NULL, -1, 108},
#endif
-#if QT_VERSION >= 220 && defined(SIP_FEATURE_Qt_STYLE_MOTIFPLUS)
+#if QT_VERSION >= 220 && defined(SIP_FEATURE_TQt_STYLE_MOTIFPLUS)
{sipName_QMotifPlusStyle, &sipClass_QMotifPlusStyle, -1, 109},
#else
{NULL, NULL, -1, 109},
#endif
-#if QT_VERSION >= 220 && defined(SIP_FEATURE_Qt_STYLE_SGI)
+#if QT_VERSION >= 220 && defined(SIP_FEATURE_TQt_STYLE_SGI)
{sipName_QSGIStyle, &sipClass_QSGIStyle, -1, -1},
#else
{NULL, NULL, -1, -1},
@@ -406,26 +406,26 @@ public:
sipRes = sipClassName(sipSelf);
%End
-%If (- Qt_3_0_0)
- static QString tr(const char *) /AutoGen=Qt_TRANSLATION/;
+%If (- TQt_3_0_0)
+ static TQString tr(const char *) /AutoGen=TQt_TRANSLATION/;
%End
-%If (Qt_2_2_0 - Qt_2_3_1)
- // There was an apparent bug in moc prior to Qt v2.3.1 where this
+%If (TQt_2_2_0 - TQt_2_3_1)
+ // There was an apparent bug in moc prior to TQt v2.3.1 where this
// method wasn't automatically generated.
- static QString tr(const char *,const char *);
+ static TQString tr(const char *,const char *);
%End
-%If (Qt_2_3_1 - Qt_3_0_0)
- static QString tr(const char *,const char *) /AutoGen=Qt_TRANSLATION/;
+%If (TQt_2_3_1 - TQt_3_0_0)
+ static TQString tr(const char *,const char *) /AutoGen=TQt_TRANSLATION/;
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
// Note that tr() and trUtf8() are really static methods. We pretend
// they aren't so that we can use self to get hold of the class name.
// We could mimic moc's behaviour more accurately by creating tr() and
// trUtf8() methods for a Python sub-class instance in the sub-class's
// ctor.
- QString tr(const char *,const char * = 0);
+ TQString tr(const char *,const char * = 0);
%MethodCode
PyObject *nmobj;
@@ -438,9 +438,9 @@ public:
Py_BEGIN_ALLOW_THREADS
if (cname && qApp)
- sipRes = new QString(qApp -> translate(cname,a0,a1,QApplication::DefaultCodec));
+ sipRes = new TQString(qApp -> translate(cname,a0,a1,TQApplication::DefaultCodec));
else
- sipRes = new QString(QString::fromLatin1(a0));
+ sipRes = new TQString(TQString::fromLatin1(a0));
Py_END_ALLOW_THREADS
@@ -448,7 +448,7 @@ public:
}
%End
- QString trUtf8(const char *,const char * = 0);
+ TQString trUtf8(const char *,const char * = 0);
%MethodCode
PyObject *nmobj;
@@ -461,9 +461,9 @@ public:
Py_BEGIN_ALLOW_THREADS
if (cname && qApp)
- sipRes = new QString(qApp -> translate(cname,a0,a1,QApplication::UnicodeUTF8));
+ sipRes = new TQString(qApp -> translate(cname,a0,a1,TQApplication::UnicodeUTF8));
else
- sipRes = new QString(QString::fromUtf8(a0));
+ sipRes = new TQString(TQString::fromUtf8(a0));
Py_END_ALLOW_THREADS
@@ -471,31 +471,31 @@ public:
}
%End
%End
- virtual QMetaObject *metaObject() const /AutoGen/;
- virtual bool event(QEvent *);
- virtual bool eventFilter(QObject *,QEvent *);
+ virtual TQMetaObject *metaObject() const /AutoGen/;
+ virtual bool event(TQEvent *);
+ virtual bool eventFilter(TQObject *,TQEvent *);
bool isA(const char *) const;
%MethodCode
- // The Qt implementation doesn't know anything about Python
+ // The TQt implementation doesn't know anything about Python
// sub-classes. For SIP v4 we use the Python type's name. For
- // SIP v3 we use the broken Qt behaviour as it's deprecated and
+ // SIP v3 we use the broken TQt behaviour as it's deprecated and
// we want to keep things simple.
#if SIP_VERSION >= 0x040000
sipRes = (strcmp(sipSelf -> ob_type -> tp_name,a0) == 0);
#else
Py_BEGIN_ALLOW_THREADS
- sipRes = sipCpp -> QObject::isA(a0);
+ sipRes = sipCpp -> TQObject::isA(a0);
Py_END_ALLOW_THREADS
#endif
%End
bool inherits(const char *) const;
%MethodCode
- // The Qt implementation doesn't know anything about Python
+ // The TQt implementation doesn't know anything about Python
// sub-classes. For SIP v4 we use the Python type's MRO. For
- // SIP v3 we use the broken Qt behaviour as it's deprecated and
+ // SIP v3 we use the broken TQt behaviour as it's deprecated and
// we want to keep things simple.
#if SIP_VERSION >= 0x040000
@@ -511,13 +511,13 @@ public:
}
#else
Py_BEGIN_ALLOW_THREADS
- sipRes = sipCpp -> QObject::inherits(a0);
+ sipRes = sipCpp -> TQObject::inherits(a0);
Py_END_ALLOW_THREADS
#endif
%End
-%If (- Qt_3_0_0)
- QStringList superClasses(bool = 0) const;
+%If (- TQt_3_0_0)
+ TQStringList superClasses(bool = 0) const;
%End
const char *name() const;
const char *name(const char *) const;
@@ -529,35 +529,35 @@ public:
int startTimer(int);
void killTimer(int);
void killTimers();
-%If (- Qt_3_0_0)
- QObject *child(const char *,const char * = 0);
+%If (- TQt_3_0_0)
+ TQObject *child(const char *,const char * = 0);
%End
-%If (Qt_3_0_0 -)
- QObject *child(const char *,const char * = 0,bool = 1);
+%If (TQt_3_0_0 -)
+ TQObject *child(const char *,const char * = 0,bool = 1);
%End
- const QObjectList *children() const;
-%If (Qt_2_1_0 -)
- static const QObjectList *objectTrees();
+ const TQObjectList *children() const;
+%If (TQt_2_1_0 -)
+ static const TQObjectList *objectTrees();
%End
-%If (- Qt_3_0_0)
- QObjectList *queryList(char * = 0,char * = 0,bool = 1,bool = 1);
+%If (- TQt_3_0_0)
+ TQObjectList *queryList(char * = 0,char * = 0,bool = 1,bool = 1);
%End
-%If (Qt_3_0_0 -)
- QObjectList *queryList(char * = 0,char * = 0,bool = 1,bool = 1) const;
+%If (TQt_3_0_0 -)
+ TQObjectList *queryList(char * = 0,char * = 0,bool = 1,bool = 1) const;
%MethodCode
- // The Qt implementation doesn't know anything about Python
+ // The TQt implementation doesn't know anything about Python
// sub-classes. For SIP v4 we get all classes and then use the
// Python type's MRO to weed out those we don't want. For SIP
- // v3 we use the broken Qt behaviour as it's deprecated and we
+ // v3 we use the broken TQt behaviour as it's deprecated and we
// want to keep things simple.
#if SIP_VERSION >= 0x040000
- sipRes = sipCpp -> QObject::queryList(0, a1, a2, a3);
+ sipRes = sipCpp -> TQObject::queryList(0, a1, a2, a3);
if (a0 && sipRes)
{
- QObject *o = sipRes -> first();
+ TQObject *o = sipRes -> first();
while (o)
{
@@ -589,16 +589,16 @@ public:
}
#else
Py_BEGIN_ALLOW_THREADS
- sipRes = sipCpp -> QObject::queryList(a0, a1, a2, a3);
+ sipRes = sipCpp -> TQObject::queryList(a0, a1, a2, a3);
Py_END_ALLOW_THREADS
#endif
%End
%End
- virtual void insertChild(QObject * /Transfer/);
- virtual void removeChild(QObject * /TransferBack/);
- void installEventFilter(const QObject *);
- void removeEventFilter(const QObject *);
+ virtual void insertChild(TQObject * /Transfer/);
+ virtual void removeChild(TQObject * /TransferBack/);
+ void installEventFilter(const TQObject *);
+ void removeEventFilter(const TQObject *);
static SIP_PYOBJECT connect(SIP_QOBJECT,SIP_SIGNAL,SIP_QOBJECT,SIP_SLOT);
%MethodCode
@@ -625,11 +625,11 @@ public:
sipRes = sipDisconnectRx(a0,a1,a2,0);
%End
-// bool disconnect(const char * = 0,const QObject * = 0,const char * = 0);
-// bool disconnect(const QObject *,const char * = 0);
+// bool disconnect(const char * = 0,const TQObject * = 0,const char * = 0);
+// bool disconnect(const TQObject *,const char * = 0);
void dumpObjectTree();
void dumpObjectInfo();
- QObject *parent() const;
+ TQObject *parent() const;
void emit(SIP_SIGNAL,SIP_PYTUPLE);
%MethodCode
@@ -637,25 +637,25 @@ public:
sipIsErr = 1;
%End
-%If (Qt_PROPERTIES)
-%If (Qt_2_1_0 - Qt_3_0_0)
- bool setProperty(const char *,const QVariant &);
- QVariant property(const char *) const;
+%If (TQt_PROPERTIES)
+%If (TQt_2_1_0 - TQt_3_0_0)
+ bool setProperty(const char *,const TQVariant &);
+ TQVariant property(const char *) const;
%End
-%If (Qt_3_0_0 -)
- virtual bool setProperty(const char *,const QVariant &);
- virtual QVariant property(const char *) const;
+%If (TQt_3_0_0 -)
+ virtual bool setProperty(const char *,const TQVariant &);
+ virtual TQVariant property(const char *) const;
%End
%End
signals:
void destroyed();
-%If (Qt_3_0_0 -)
- void destroyed(QObject *);
+%If (TQt_3_0_0 -)
+ void destroyed(TQObject *);
%End
public slots:
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
void deleteLater();
%End
@@ -668,14 +668,14 @@ public:
%End
protected:
- virtual void timerEvent(QTimerEvent *);
- virtual void childEvent(QChildEvent *);
-%If (Qt_3_0_0 -)
- virtual void customEvent(QCustomEvent *);
+ virtual void timerEvent(TQTimerEvent *);
+ virtual void childEvent(TQChildEvent *);
+%If (TQt_3_0_0 -)
+ virtual void customEvent(TQCustomEvent *);
%End
private:
- QObject(const QObject &);
+ TQObject(const TQObject &);
};
@@ -695,16 +695,16 @@ SIP_PYOBJECT QT_TRANSLATE_NOOP(SIP_PYOBJECT,SIP_PYOBJECT);
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
-class QObject
+class TQObject
{
%TypeHeaderCode
#include <qobject.h>
%End
public:
- QObject(QObject * /TransferThis/ = 0,const char * = 0);
+ TQObject(TQObject * /TransferThis/ = 0,const char * = 0);
%ConvertToSubClassCode
// The table of Python class objects indexed by their names. The table
@@ -717,14 +717,14 @@ public:
{sipName_QButton, &sipClass_QButton},
{sipName_QButtonGroup, &sipClass_QButtonGroup},
{sipName_QCheckBox, &sipClass_QCheckBox},
-#if defined(SIP_FEATURE_Qt_CLIPBOARD)
+#if defined(SIP_FEATURE_TQt_CLIPBOARD)
{sipName_QClipboard, &sipClass_QClipboard},
#endif
{sipName_QComboBox, &sipClass_QComboBox},
{sipName_QDialog, &sipClass_QDialog},
{sipName_QDoubleValidator, &sipClass_QDoubleValidator},
{sipName_QDragObject, &sipClass_QDragObject},
-#if defined(SIP_FEATURE_Qt_FILEDIALOG)
+#if defined(SIP_FEATURE_TQt_FILEDIALOG)
{sipName_QFileDialog, &sipClass_QFileDialog},
{sipName_QFileIconProvider, &sipClass_QFileIconProvider},
#endif
@@ -743,16 +743,16 @@ public:
{sipName_QListView, &sipClass_QListView},
{sipName_QMainWindow, &sipClass_QMainWindow},
{sipName_QMenuBar, &sipClass_QMenuBar},
-#if defined(SIP_FEATURE_Qt_MESSAGEBOX)
+#if defined(SIP_FEATURE_TQt_MESSAGEBOX)
{sipName_QMessageBox, &sipClass_QMessageBox},
#endif
{sipName_QMultiLineEdit, &sipClass_QMultiLineEdit},
{sipName_QPopupMenu, &sipClass_QPopupMenu},
-#if defined(WS_X11) && defined(SIP_FEATURE_Qt_PRINTDIALOG)
+#if defined(WS_X11) && defined(SIP_FEATURE_TQt_PRINTDIALOG)
{sipName_QPrintDialog, &sipClass_QPrintDialog},
#endif
{sipName_QProgressBar, &sipClass_QProgressBar},
-#if defined(SIP_FEATURE_Qt_PROGRESSDIALOG)
+#if defined(SIP_FEATURE_TQt_PROGRESSDIALOG)
{sipName_QProgressDialog, &sipClass_QProgressDialog},
#endif
{sipName_QPushButton, &sipClass_QPushButton},
@@ -762,7 +762,7 @@ public:
{sipName_QSlider, &sipClass_QSlider},
{sipName_QSocketNotifier, &sipClass_QSocketNotifier},
{sipName_QSpinBox, &sipClass_QSpinBox},
-#if defined(SIP_FEATURE_Qt_SPLITTER)
+#if defined(SIP_FEATURE_TQt_SPLITTER)
{sipName_QSplitter, &sipClass_QSplitter},
#endif
{sipName_QStatusBar, &sipClass_QStatusBar},
@@ -802,10 +802,10 @@ public:
sipRes = sipDisconnectRx(a0,a1,a2,0);
%End
- virtual bool event(QEvent *);
- virtual bool eventFilter(QObject *,QEvent *);
+ virtual bool event(TQEvent *);
+ virtual bool eventFilter(TQObject *,TQEvent *);
const char *tr(const char *) const;
- virtual QMetaObject *metaObject() const /AutoGen/;
+ virtual TQMetaObject *metaObject() const /AutoGen/;
// This is actually virtual. However, with the way we are implementing
// it we can ignore it.
@@ -826,18 +826,18 @@ public:
int startTimer(int);
void killTimer(int);
void killTimers();
- const QObjectList *children() const;
- QObjectList *queryList(char * = 0,char * = 0,bool = 1,bool = 1);
- void insertChild(QObject * /Transfer/);
- void removeChild(QObject * /TransferBack/);
- void installEventFilter(const QObject *);
- void removeEventFilter(const QObject *);
-// bool connect(QObject *,const char *,const char *);
-// bool disconnect(const char * = 0,const QObject * = 0,const char * = 0);
-// bool disconnect(const QObject *,const char * = 0);
+ const TQObjectList *children() const;
+ TQObjectList *queryList(char * = 0,char * = 0,bool = 1,bool = 1);
+ void insertChild(TQObject * /Transfer/);
+ void removeChild(TQObject * /TransferBack/);
+ void installEventFilter(const TQObject *);
+ void removeEventFilter(const TQObject *);
+// bool connect(TQObject *,const char *,const char *);
+// bool disconnect(const char * = 0,const TQObject * = 0,const char * = 0);
+// bool disconnect(const TQObject *,const char * = 0);
void dumpObjectTree();
void dumpObjectInfo();
- QObject *parent() const;
+ TQObject *parent() const;
void emit(SIP_SIGNAL,SIP_PYTUPLE);
%MethodCode
@@ -857,10 +857,10 @@ public:
%End
protected:
- virtual void timerEvent(QTimerEvent *);
+ virtual void timerEvent(TQTimerEvent *);
private:
- QObject(const QObject &);
+ TQObject(const TQObject &);
};
%End
@@ -949,7 +949,7 @@ PyObject *pyqt3GetSender();
%End
-// This is the Qt support code for SIP v4.4 and later.
+// This is the TQt support code for SIP v4.4 and later.
%ModuleCode
#include <string.h>
@@ -961,36 +961,36 @@ PyObject *pyqt3GetSender();
#include <private/qucomextra_p.h>
-// These optional parts of the legacy Qt support API for SIP are implemented.
-#undef sipQtEmitSignal
-#undef sipQtConnectPySignal
-#undef sipQtDisconnectPySignal
+// These optional parts of the legacy TQt support API for SIP are implemented.
+#undef sipTQtEmitSignal
+#undef sipTQtConnectPySignal
+#undef sipTQtDisconnectPySignal
// Declare explicit C linkage.
extern "C"
{
- static void *sipQtCreateUniversalSlot(sipWrapper *, const char *,
+ static void *sipTQtCreateUniversalSlot(sipWrapper *, const char *,
PyObject *, const char *, const char **, int);
- static void sipQtDestroyUniversalSlot(void *);
- static void *sipQtFindSlot(void *, const char *, PyObject *, const char *,
+ static void sipTQtDestroyUniversalSlot(void *);
+ static void *sipTQtFindSlot(void *, const char *, PyObject *, const char *,
const char **);
- static int sipQtConnect(void *, const char *, void *, const char *, int);
- static int sipQtDisconnect(void *, const char *, void *, const char *);
- static int sipQtSameSignalSlotName(const char *, const char *);
- static sipSlot *sipQtFindSipslot(void *, void **);
- static int sipQtEmitSignal(PyObject *, const char *, PyObject *);
- static int sipQtConnectPySignal(PyObject *, const char *, PyObject *,
+ static int sipTQtConnect(void *, const char *, void *, const char *, int);
+ static int sipTQtDisconnect(void *, const char *, void *, const char *);
+ static int sipTQtSameSignalSlotName(const char *, const char *);
+ static sipSlot *sipTQtFindSipslot(void *, void **);
+ static int sipTQtEmitSignal(PyObject *, const char *, PyObject *);
+ static int sipTQtConnectPySignal(PyObject *, const char *, PyObject *,
const char *);
- static void sipQtDisconnectPySignal(PyObject *, const char *,
+ static void sipTQtDisconnectPySignal(PyObject *, const char *,
PyObject *, const char *);
}
extern "C" {
-// The meta-type for PyQt classes. It is just a marker type so that we can
-// safely cast to get access to PyQt3-specific data structures.
+// The meta-type for PyTQt classes. It is just a marker type so that we can
+// safely cast to get access to PyTQt3-specific data structures.
PyTypeObject pyqtWrapperType_Type = {
PyObject_HEAD_INIT(NULL)
0, /* ob_size */
@@ -1073,7 +1073,7 @@ typedef struct _pyqt3PySig {
/*
- * The C++ wrapper object used by PyQt3.
+ * The C++ wrapper object used by PyTQt3.
*/
typedef struct _pyqtWrapper {
/* The super-type. */
@@ -1109,7 +1109,7 @@ static pyqt3PySig *find_py_signal(pyqtWrapper *pw, const char *sig)
pyqt3PySig *ps;
for (ps = pw->pySigList; ps != NULL; ps = ps->next)
- if (sipQtSameSignalSlotName(ps->name, sig))
+ if (sipTQtSameSignalSlotName(ps->name, sig))
return ps;
return 0;
@@ -1219,7 +1219,7 @@ static sipWrapperType pyqtWrapper_Type = {
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE | Py_TPFLAGS_HAVE_GC, /* tp_flags */
0, /* tp_doc */
(traverseproc)pyqtWrapper_traverse, /* tp_traverse */
- (inquiry)pyqtWrapper_clear, /* tp_clear */
+ (intquiry)pyqtWrapper_clear, /* tp_clear */
0, /* tp_richcompare */
0, /* tp_weaklistoffset */
0, /* tp_iter */
@@ -1330,7 +1330,7 @@ struct pyqt3Signature {
// A connection to a universal slot.
struct pyqt3SlotConnection
{
- // The transmitter QObject.
+ // The transmitter TQObject.
void *sc_transmitter;
// The parsed signature.
@@ -1342,46 +1342,46 @@ struct pyqt3SlotConnection
// This class is used as a slot on behalf of connections to a Python callable.
-// It is derived from QObject but is not run through moc. Instead the normal
+// It is derived from TQObject but is not run through moc. Instead the normal
// moc-generated methods are handwritten in order to implement a universal
-// slot. This requires some knowledge of the internal implementation of
+// slot. This retquires some knowledge of the internal implementation of
// signals and slots but it is likely that they will only change between major
-// Qt versions.
-class UniversalSlot : public QObject
+// TQt versions.
+class UniversalSlot : public TQObject
{
public:
- UniversalSlot(QObject *qtx, pyqt3SlotConnection *conn, const char **member);
+ UniversalSlot(TQObject *qtx, pyqt3SlotConnection *conn, const char **member);
~UniversalSlot();
- virtual QMetaObject *metaObject() const
+ virtual TQMetaObject *metaObject() const
{
return staticMetaObject();
}
- virtual bool qt_invoke(int, QUObject *args);
- static QMetaObject *staticMetaObject();
+ virtual bool qt_invoke(int, TQUObject *args);
+ static TQMetaObject *staticMetaObject();
- static QObject *lastSender;
+ static TQObject *lastSender;
static UniversalSlot *unislots;
UniversalSlot *nextus, *prevus;
pyqt3SlotConnection conn;
private:
- static QMetaObject *metaObj;
+ static TQMetaObject *metaObj;
};
// Create a universal slot. Note that this will leak if there is no signal
-// transmitter (ie. no parent) - QTimer.singleShot() for example.
-UniversalSlot::UniversalSlot(QObject *qtx, pyqt3SlotConnection *connection, const char **member) : QObject()
+// transmitter (ie. no parent) - TQTimer.singleShot() for example.
+UniversalSlot::UniversalSlot(TQObject *qtx, pyqt3SlotConnection *connection, const char **member) : TQObject()
{
// Save the connection.
conn = *connection;
// Detect when the transmitter is destroyed.
if (qtx)
- connect(qtx, SIGNAL(destroyed(QObject *)), SLOT(deleteLater()));
+ connect(qtx, SIGNAL(destroyed(TQObject *)), SLOT(deleteLater()));
// Return the slot to connect to.
*member = SLOT(unislot());
@@ -1419,32 +1419,32 @@ UniversalSlot::~UniversalSlot()
static PyObject *py_sender = 0;
-QMetaObject *UniversalSlot::metaObj = 0;
+TQMetaObject *UniversalSlot::metaObj = 0;
#if QT_VERSION >= 0x030100
-static QMetaObjectCleanUp cleanUp_UniversalSlot("UniversalSlot", &UniversalSlot::staticMetaObject);
+static TQMetaObjectCleanUp cleanUp_UniversalSlot("UniversalSlot", &UniversalSlot::staticMetaObject);
#else
-static QMetaObjectCleanUp cleanUp_UniversalSlot;
+static TQMetaObjectCleanUp cleanUp_UniversalSlot;
#endif
-QObject *UniversalSlot::lastSender = 0;
+TQObject *UniversalSlot::lastSender = 0;
UniversalSlot *UniversalSlot::unislots = 0;
-QMetaObject *UniversalSlot::staticMetaObject()
+TQMetaObject *UniversalSlot::staticMetaObject()
{
if (metaObj)
return metaObj;
// Define a single slot that takes no arguments and so will accept any
// connection.
- static const QUMethod slot = {"unislot", 0, 0};
- static const QMetaData slot_tbl[] = {
- {"unislot()", &slot, QMetaData::Public}
+ static const TQUMethod slot = {"unislot", 0, 0};
+ static const TQMetaData slot_tbl[] = {
+ {"unislot()", &slot, TQMetaData::Public}
};
- metaObj = QMetaObject::new_metaobject(
- "UniversalSlot", QObject::staticMetaObject(),
+ metaObj = TQMetaObject::new_metaobject(
+ "UniversalSlot", TQObject::staticMetaObject(),
slot_tbl, 1,
0, 0,
#ifndef QT_NO_PROPERTIES
@@ -1459,23 +1459,23 @@ QMetaObject *UniversalSlot::staticMetaObject()
}
-bool UniversalSlot::qt_invoke(int id, QUObject *qargs)
+bool UniversalSlot::qt_invoke(int id, TQUObject *qargs)
{
if (id - staticMetaObject()->slotOffset() != 0)
- return QObject::qt_invoke(id, qargs);
+ return TQObject::qt_invoke(id, qargs);
bool ok = TRUE;
const pyqt3Signature *psig = conn.sc_signature;
- QVariant *qv;
+ TQVariant *qv;
// Save in case it is asked for later.
- lastSender = const_cast<QObject *>(sender());
+ lastSender = const_cast<TQObject *>(sender());
- // If the sender was a QSignal then the single argument will be wrapped
- // in a QVariant instance. At the moment we handle int argument as
- // that is all that is needed by PyQt (and PyKDE).
- if (lastSender->inherits("QSignal"))
- qv = &static_QUType_QVariant.get(qargs + 1);
+ // If the sender was a TQSignal then the single argument will be wrapped
+ // in a TQVariant instance. At the moment we handle int argument as
+ // that is all that is needed by PyTQt (and PyKDE).
+ if (lastSender->inherits("TQSignal"))
+ qv = &static_QUType_TQVariant.get(qargs + 1);
else
qv = 0;
@@ -1576,7 +1576,7 @@ bool UniversalSlot::qt_invoke(int id, QUObject *qargs)
case qvariant_sat:
case qvariantp_sat:
- arg = sipConvertFromInstance((void *)&static_QUType_QVariant.get(qargs),sipClass_QVariant,0);
+ arg = sipConvertFromInstance((void *)&static_QUType_TQVariant.get(qargs),sipClass_QVariant,0);
break;
case pyobject_sat:
@@ -1622,7 +1622,7 @@ static void parseType(const char *type, pyqt3SigArg *arg);
// Factory function to create a universal slot instance. Returns a pointer to
// the instance or 0 if there was an error.
-static void *sipQtCreateUniversalSlot(sipWrapper *tx, const char *sig,
+static void *sipTQtCreateUniversalSlot(sipWrapper *tx, const char *sig,
PyObject *rxObj, const char *slot, const char **member, int)
{
pyqt3SlotConnection conn;
@@ -1641,16 +1641,16 @@ static void *sipQtCreateUniversalSlot(sipWrapper *tx, const char *sig,
return 0;
}
- QObject *qtx = 0;
+ TQObject *qtx = 0;
- // See if the transmitter is a QObject in which case we will connect
+ // See if the transmitter is a TQObject in which case we will connect
// to it's destroyed signal so that the universal slot can be destroyed
// at the same time. (Note that we used to do this by making the
// universal slot a child of the transmitter. This doesn't work as
- // expected because QWidget destroys its children before emitting the
+ // expected because TQWidget destroys its children before emitting the
// destroyed signal.)
if (tx && PyObject_TypeCheck((PyObject *)tx, (PyTypeObject *)sipClass_QObject))
- qtx = reinterpret_cast<QObject *>(conn.sc_transmitter);
+ qtx = reinterpret_cast<TQObject *>(conn.sc_transmitter);
return new UniversalSlot(qtx, &conn, member);
}
@@ -1669,7 +1669,7 @@ static pyqt3Signature *parseSignature(const char *sig)
// could be more clever, the most saving is when repeatedly emitting a
// signal for which this is sufficient.
for (psig = psig_list; psig != NULL; psig = psig->sg_next)
- if (sipQtSameSignalSlotName(psig->sg_signature, sig))
+ if (sipTQtSameSignalSlotName(psig->sg_signature, sig))
return psig;
// Create a new one including space for the copy of the signature.
@@ -1684,7 +1684,7 @@ static pyqt3Signature *parseSignature(const char *sig)
sp = strchr(sig, '(');
ep = strrchr(sig, ')');
- // If the signal isn't well formed we assume Qt will pick it up.
+ // If the signal isn't well formed we assume TQt will pick it up.
if (sp && ep && sp < ep)
{
// Copy the signature arguments while counting them and removing
@@ -1890,7 +1890,7 @@ static void parseType(const char *type, pyqt3SigArg *arg)
case 8:
if (strcmp(type, "unsigned") == 0)
sat = uint_sat;
- else if (strcmp(type, "QVariant") == 0)
+ else if (strcmp(type, "TQVariant") == 0)
{
if (indir == 0)
{
@@ -1931,7 +1931,7 @@ static void parseType(const char *type, pyqt3SigArg *arg)
sat = (indir ? ustring_sat : uchar_sat);
unsup = (isref || indir > 1);
}
- else if (strcmp(type, "PyQt_PyObject") == 0 && indir == 0)
+ else if (strcmp(type, "PyTQt_PyObject") == 0 && indir == 0)
{
sat = pyobject_sat;
unsup = FALSE;
@@ -1995,10 +1995,10 @@ static void parseType(const char *type, pyqt3SigArg *arg)
// Dispose of a receiver that might be a universal slot.
-static void sipQtDestroyUniversalSlot(void *rx)
+static void sipTQtDestroyUniversalSlot(void *rx)
{
for (UniversalSlot *us = UniversalSlot::unislots; us; us = us->nextus)
- if (us == reinterpret_cast<QObject *>(rx))
+ if (us == reinterpret_cast<TQObject *>(rx))
{
delete us;
break;
@@ -2006,8 +2006,8 @@ static void sipQtDestroyUniversalSlot(void *rx)
}
-// Search for the universal slot connected to a particular Qt signal.
-static void *sipQtFindSlot(void *tx, const char *sig, PyObject *rxObj,
+// Search for the universal slot connected to a particular TQt signal.
+static void *sipTQtFindSlot(void *tx, const char *sig, PyObject *rxObj,
const char *slot, const char **member)
{
for (UniversalSlot *us = UniversalSlot::unislots; us; us = us->nextus)
@@ -2017,7 +2017,7 @@ static void *sipQtFindSlot(void *tx, const char *sig, PyObject *rxObj,
if (conn->sc_transmitter != tx)
continue;
- if (!sipQtSameSignalSlotName(conn->sc_signature->sg_signature, sig))
+ if (!sipTQtSameSignalSlotName(conn->sc_signature->sg_signature, sig))
continue;
if (sipSameSlot(&conn->sc_slot, rxObj, slot))
@@ -2031,24 +2031,24 @@ static void *sipQtFindSlot(void *tx, const char *sig, PyObject *rxObj,
}
-// Connect a Qt signal to a Qt slot.
-static int sipQtConnect(void *tx, const char *sig, void *rx, const char *slot, int)
+// Connect a TQt signal to a TQt slot.
+static int sipTQtConnect(void *tx, const char *sig, void *rx, const char *slot, int)
{
- return QObject::connect(reinterpret_cast<QObject *>(tx), sig,
- reinterpret_cast<QObject *>(rx), slot);
+ return TQObject::connect(reinterpret_cast<TQObject *>(tx), sig,
+ reinterpret_cast<TQObject *>(rx), slot);
}
-// Disconnect a Qt signal from a Qt slot.
-static int sipQtDisconnect(void *tx, const char *sig, void *rx, const char *slot)
+// Disconnect a TQt signal from a TQt slot.
+static int sipTQtDisconnect(void *tx, const char *sig, void *rx, const char *slot)
{
- return QObject::disconnect(reinterpret_cast<QObject *>(tx), sig,
- reinterpret_cast<QObject *>(rx), slot);
+ return TQObject::disconnect(reinterpret_cast<TQObject *>(tx), sig,
+ reinterpret_cast<TQObject *>(rx), slot);
}
// See if two signal or slot names are the same.
-static int sipQtSameSignalSlotName(const char *s1, const char *s2)
+static int sipTQtSameSignalSlotName(const char *s1, const char *s2)
{
// moc formats signal names, so we should first convert the supplied
// string to the same format before comparing them. Instead we just
@@ -2075,7 +2075,7 @@ static int sipQtSameSignalSlotName(const char *s1, const char *s2)
// Return the next slot for a particular transmitter. This will be called with
// the GIL locked.
-static sipSlot *sipQtFindSipslot(void *tx, void **context)
+static sipSlot *sipTQtFindSipslot(void *tx, void **context)
{
UniversalSlot *us = *reinterpret_cast<UniversalSlot **>(context);
@@ -2104,7 +2104,7 @@ static sipSlot *sipQtFindSipslot(void *tx, void **context)
// Connect a slot from a Python signal.
-static int sipQtConnectPySignal(PyObject *txObj, const char *sig,
+static int sipTQtConnectPySignal(PyObject *txObj, const char *sig,
PyObject *rxObj, const char *slot)
{
pyqt3PySig *ps;
@@ -2149,7 +2149,7 @@ static int sipQtConnectPySignal(PyObject *txObj, const char *sig,
// Disconnect a slot from a Python signal.
-static void sipQtDisconnectPySignal(PyObject *txObj, const char *sig,
+static void sipTQtDisconnectPySignal(PyObject *txObj, const char *sig,
PyObject *rxObj, const char *slot)
{
pyqt3PySig *ps;
@@ -2174,29 +2174,29 @@ static void sipQtDisconnectPySignal(PyObject *txObj, const char *sig,
// Emit a signal for the sip module.
-static int sipQtEmitSignal(PyObject *self, const char *sig, PyObject *sigargs)
+static int sipTQtEmitSignal(PyObject *self, const char *sig, PyObject *sigargs)
{
return pyqt3EmitSignal(self, sig, sigargs);
}
-// Emit a Python or Qt signal.
+// Emit a Python or TQt signal.
int pyqt3EmitSignal(PyObject *self, const char *sig, PyObject *sigargs)
{
- // Don't do anything if signals are blocked. Qt signals would be blocked
+ // Don't do anything if signals are blocked. TQt signals would be blocked
// anyway, but this blocks Python signals as well.
void *tx = sipGetCppPtr((sipSimpleWrapper *)self, sipType_QObject);
if (!tx)
return 0;
- if (reinterpret_cast<QObject *>(tx)->signalsBlocked())
+ if (reinterpret_cast<TQObject *>(tx)->signalsBlocked())
return 0;
- // See if it is a Qt signal.
+ // See if it is a TQt signal.
if (*sig == '2')
{
- pyqt3QtSignal *tab;
+ pyqt3TQtSignal *tab;
// Search the table.
for (tab = ((pyqt3ClassTypeDef *)((sipWrapperType *)(self->ob_type))->type)->qt3_emit; tab->st_name != NULL; ++tab)
@@ -2234,7 +2234,7 @@ int pyqt3EmitSignal(PyObject *self, const char *sig, PyObject *sigargs)
int rc = 0;
pyqt3SlotList *rxlist = ps->rxlist;
- // Forget the last Qt sender and remember this one.
+ // Forget the last TQt sender and remember this one.
UniversalSlot::lastSender = 0;
py_sender = self;
@@ -2274,7 +2274,7 @@ PyObject *pyqt3GetSender()
{
PyObject *sender;
- // If there is a Qt sender then it is more recent than the last Python
+ // If there is a TQt sender then it is more recent than the last Python
// sender, so use it instead.
if (UniversalSlot::lastSender)
{