summaryrefslogtreecommitdiffstats
path: root/doc/html/ntqobject.html
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-12-27 19:25:43 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-12-31 22:16:03 +0900
commitecca365daf06c711cf30f93f4c773dabf5642790 (patch)
tree0b2f6780f60fd7eb35c84cc899e7d51db189d67d /doc/html/ntqobject.html
parent1c30858477bcf3a4c74866d9a3d26f57753dd36a (diff)
downloadtqt-ecca365d.tar.gz
tqt-ecca365d.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/html/ntqobject.html')
-rw-r--r--doc/html/ntqobject.html16
1 files changed, 8 insertions, 8 deletions
diff --git a/doc/html/ntqobject.html b/doc/html/ntqobject.html
index 06ecf97e6..e1233374a 100644
--- a/doc/html/ntqobject.html
+++ b/doc/html/ntqobject.html
@@ -279,21 +279,21 @@ definition lacks the <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a> macro.
Connects <em>signal</em> from the <em>sender</em> object to <em>member</em> in object
<em>receiver</em>, and returns TRUE if the connection succeeds; otherwise
returns FALSE.
-<p> You must use the SIGNAL() and SLOT() macros when specifying the <em>signal</em>
+<p> You must use the TQ_SIGNAL() and TQ_SLOT() macros when specifying the <em>signal</em>
and the <em>member</em>, for example:
<pre>
<a href="ntqlabel.html">TQLabel</a> *label = new <a href="ntqlabel.html">TQLabel</a>;
<a href="ntqscrollbar.html">TQScrollBar</a> *scroll = new <a href="ntqscrollbar.html">TQScrollBar</a>;
- TQObject::<a href="#connect">connect</a>( scroll, SIGNAL(<a href="ntqscrollbar.html#valueChanged">valueChanged</a>(int)),
- label, SLOT(<a href="ntqlabel.html#setNum">setNum</a>(int)) );
+ TQObject::<a href="#connect">connect</a>( scroll, TQ_SIGNAL(<a href="ntqscrollbar.html#valueChanged">valueChanged</a>(int)),
+ label, TQ_SLOT(<a href="ntqlabel.html#setNum">setNum</a>(int)) );
</pre>
<p> 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:
-<a href="#connect">TQObject::connect</a>( scroll, SIGNAL(valueChanged(int v)),
-label, SLOT(setNum(int v)) );
+<a href="#connect">TQObject::connect</a>( scroll, TQ_SIGNAL(valueChanged(int v)),
+label, TQ_SLOT(setNum(int v)) );
<p> A signal can also be connected to another signal:
<p> <pre>
class MyWidget : public <a href="ntqwidget.html">TQWidget</a>
@@ -312,7 +312,7 @@ label, SLOT(setNum(int v)) );
MyWidget::MyWidget()
{
aButton = new <a href="ntqpushbutton.html">TQPushButton</a>( this );
- <a href="#connect">connect</a>( aButton, SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), SIGNAL(myUsefulSignal()) );
+ <a href="#connect">connect</a>( aButton, TQ_SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), TQ_SIGNAL(myUsefulSignal()) );
}
</pre>
@@ -408,12 +408,12 @@ equivalent to the non-static overloaded function
<li> Disconnect everything connected to a specific signal:
<pre>
- <a href="#disconnect">disconnect</a>( myObject, SIGNAL(mySignal()), 0, 0 );
+ <a href="#disconnect">disconnect</a>( myObject, TQ_SIGNAL(mySignal()), 0, 0 );
</pre>
equivalent to the non-static overloaded function
<pre>
- myObject-&gt;disconnect( SIGNAL(mySignal()) );
+ myObject-&gt;disconnect( TQ_SIGNAL(mySignal()) );
</pre>
<li> Disconnect a specific receiver: