Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit e44eaa6ec0)
pull/20/head
Michele Calgaro 5 months ago
parent 62beed758e
commit c668d2b1b3
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -762,7 +762,7 @@ static void xmlType(sipSpec *pt, argDef *ad, int sec, FILE *fp)
{ {
int a; int a;
prcode(fp, "TQT_SLOT("); prcode(fp, "TQ_SLOT(");
for (a = 0; a < ad->u.sa->nrArgs; ++a) for (a = 0; a < ad->u.sa->nrArgs; ++a)
{ {
@ -956,11 +956,11 @@ static const char *pyType(sipSpec *pt, argDef *ad, int sec, classDef **scope)
break; break;
case signal_type: case signal_type:
type_name = "TQT_SIGNAL()"; type_name = "TQ_SIGNAL()";
break; break;
case slot_type: case slot_type:
type_name = "TQT_SLOT()"; type_name = "TQ_SLOT()";
break; break;
case rxcon_type: case rxcon_type:
@ -1044,7 +1044,7 @@ static const char *pyType(sipSpec *pt, argDef *ad, int sec, classDef **scope)
case slotcon_type: case slotcon_type:
case anyslot_type: case anyslot_type:
type_name = "TQT_SLOT()"; type_name = "TQ_SLOT()";
break; break;
default: default:

@ -569,7 +569,7 @@ int sip_api_save_slot(sipSlot *sp, PyObject *rxObj, const char *slot)
* because they are generated on the fly and we can't take a * because they are generated on the fly and we can't take a
* reference as that may keep the instance (ie. self) alive. * reference as that may keep the instance (ie. self) alive.
* We therefore treat it as if the user had specified the slot * We therefore treat it as if the user had specified the slot
* at "obj, TQT_SLOT('meth()')" rather than "obj.meth" (see below). * at "obj, TQ_SLOT('meth()')" rather than "obj.meth" (see below).
*/ */
const char *meth; const char *meth;
@ -610,7 +610,7 @@ int sip_api_save_slot(sipSlot *sp, PyObject *rxObj, const char *slot)
{ {
/* /*
* The user has decided to connect a Python signal to a TQt slot and * The user has decided to connect a Python signal to a TQt slot and
* specified the slot as "obj, TQT_SLOT('meth()')" rather than "obj.meth". * specified the slot as "obj, TQ_SLOT('meth()')" rather than "obj.meth".
*/ */
char *tail; char *tail;

Loading…
Cancel
Save