diff options
Diffstat (limited to 'python/sip/sipgen/gencode.c')
-rw-r--r-- | python/sip/sipgen/gencode.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/python/sip/sipgen/gencode.c b/python/sip/sipgen/gencode.c index b23ee2b1..ff1b93b9 100644 --- a/python/sip/sipgen/gencode.c +++ b/python/sip/sipgen/gencode.c @@ -649,10 +649,10 @@ static void generateInternalAPIHeader(sipSpec *pt,char *codeDir,stringList *xsl) if (optQ_OBJECT4(pt)) prcode(fp, "\n" -"typedef const QMetaObject *(*sip_qt_metaobject_func)(sipWrapper *,sipWrapperType *,const QMetaObject *);\n" +"typedef const TQMetaObject *(*sip_qt_metaobject_func)(sipWrapper *,sipWrapperType *,const TQMetaObject *);\n" "extern sip_qt_metaobject_func sip_%s_qt_metaobject;\n" "\n" -"typedef int (*sip_qt_metacall_func)(sipWrapper *,sipWrapperType *,QMetaObject::Call,int,void **);\n" +"typedef int (*sip_qt_metacall_func)(sipWrapper *,sipWrapperType *,TQMetaObject::Call,int,void **);\n" "extern sip_qt_metacall_func sip_%s_qt_metacall;\n" , mname , mname); @@ -4730,12 +4730,12 @@ static void generateShadowCode(sipSpec *pt,classDef *cd,FILE *fp) { prcode(fp, "\n" -"const QMetaObject *sip%C::metaObject() const\n" +"const TQMetaObject *sip%C::metaObject() const\n" "{\n" " return sip_%s_qt_metaobject(sipPySelf,sipClass_%C,%S::metaObject());\n" "}\n" "\n" -"int sip%C::qt_metacall(QMetaObject::Call _c,int _id,void **_a)\n" +"int sip%C::qt_metacall(TQMetaObject::Call _c,int _id,void **_a)\n" "{\n" " sip%C::metaObject();\n" "\n" @@ -6623,8 +6623,8 @@ static void generateShadowClassDeclaration(sipSpec *pt,classDef *cd,FILE *fp) if (isQObjectSubClass(cd) && optQ_OBJECT4(pt)) prcode(fp, "\n" -" const QMetaObject *metaObject() const;\n" -" int qt_metacall(QMetaObject::Call,int,void **);\n" +" const TQMetaObject *metaObject() const;\n" +" int qt_metacall(TQMetaObject::Call,int,void **);\n" ); /* The exposure of protected enums. */ @@ -7033,7 +7033,7 @@ static void generateNamedBaseType(argDef *ad,char *name,FILE *fp) case rxcon_type: case rxdis_type: nr_derefs = 1; - prcode(fp,"QObject"); + prcode(fp,"TQObject"); break; case mapped_type: @@ -7865,13 +7865,13 @@ static void generateRegisterMetaType(classDef *cd, FILE *fp) if (classFQCName(cd)->next == NULL) { - if (strcmp(classBaseName(cd), "QChar") == 0) + if (strcmp(classBaseName(cd), "TQChar") == 0) return; - if (strcmp(classBaseName(cd), "QString") == 0) + if (strcmp(classBaseName(cd), "TQString") == 0) return; - if (strcmp(classBaseName(cd), "QByteArray") == 0) + if (strcmp(classBaseName(cd), "TQByteArray") == 0) return; } |