diff options
Diffstat (limited to 'doc/man/man3/tqobject.3qt')
-rw-r--r-- | doc/man/man3/tqobject.3qt | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/doc/man/man3/tqobject.3qt b/doc/man/man3/tqobject.3qt index 0d64d9bc3..1ed6f43e7 100644 --- a/doc/man/man3/tqobject.3qt +++ b/doc/man/man3/tqobject.3qt @@ -298,7 +298,7 @@ Example: sql/overview/custom1/main.cpp. .SH "bool TQObject::connect ( const TQObject * sender, const char * signal, const TQObject * receiver, const char * member )\fC [static]\fR" Connects \fIsignal\fR from the \fIsender\fR object to \fImember\fR in object \fIreceiver\fR, and returns TRUE if the connection succeeds; otherwise returns FALSE. .PP -You must use the SIGNAL() and SLOT() macros when specifying the \fIsignal\fR and the \fImember\fR, for example: +You must use the TQ_SIGNAL() and TQ_SLOT() macros when specifying the \fIsignal\fR and the \fImember\fR, for example: .PP .nf .br @@ -306,13 +306,13 @@ You must use the SIGNAL() and SLOT() macros when specifying the \fIsignal\fR and .br QScrollBar *scroll = new QScrollBar; .br - TQObject::connect( scroll, SIGNAL(valueChanged(int)), + TQObject::connect( scroll, TQ_SIGNAL(valueChanged(int)), .br - label, SLOT(setNum(int)) ); + label, TQ_SLOT(setNum(int)) ); .br .fi .PP -This example ensures that the label always displays the current scroll bar value. Note that the signal and slots parameters must not contain any variable names, only the type. E.g. the following would not work and return FALSE: TQObject::connect( scroll, SIGNAL(valueChanged(int v)), label, SLOT(setNum(int v)) ); +This example ensures that the label always displays the current scroll bar value. Note that the signal and slots parameters must not contain any variable names, only the type. E.g. the following would not work and return FALSE: TQObject::connect( scroll, TQ_SIGNAL(valueChanged(int v)), label, TQ_SLOT(setNum(int v)) ); .PP A signal can also be connected to another signal: .PP @@ -347,7 +347,7 @@ A signal can also be connected to another signal: .br aButton = new QPushButton( this ); .br - connect( aButton, SIGNAL(clicked()), SIGNAL(myUsefulSignal()) ); + connect( aButton, TQ_SIGNAL(clicked()), TQ_SIGNAL(myUsefulSignal()) ); .br } .br @@ -429,14 +429,14 @@ Disconnect everything connected to a specific signal: .IP .nf .br - disconnect( myObject, SIGNAL(mySignal()), 0, 0 ); + disconnect( myObject, TQ_SIGNAL(mySignal()), 0, 0 ); .br .fi equivalent to the non-static overloaded function .IP .nf .br - myObject->disconnect( SIGNAL(mySignal()) ); + myObject->disconnect( TQ_SIGNAL(mySignal()) ); .br .fi .IP 3 |