diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-12-27 19:25:43 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-12-31 22:16:03 +0900 |
commit | ecca365daf06c711cf30f93f4c773dabf5642790 (patch) | |
tree | 0b2f6780f60fd7eb35c84cc899e7d51db189d67d /doc/man/man3/tqobject.3qt | |
parent | 1c30858477bcf3a4c74866d9a3d26f57753dd36a (diff) | |
download | tqt-ecca365daf06c711cf30f93f4c773dabf5642790.tar.gz tqt-ecca365daf06c711cf30f93f4c773dabf5642790.zip |
Rename METHOD, SIGNAL, SLOT to TQ_METHOD, TQ_SIGNAL, TQ_SLOT
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit fb401a891f1b426e9419c0cb16403df407138611)
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 |