summaryrefslogtreecommitdiffstats
path: root/doc/tqtdocs.sip
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-01-08 11:54:27 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-01-11 10:03:08 +0900
commit27f46d6031d41aa6ce071885a7e280e1097680e1 (patch)
treedbb592ad2f606c9a8e56ed6aa4f4f562c8928002 /doc/tqtdocs.sip
parenta131499f339ae27686e9effc8088ebdf7bb77dde (diff)
downloadpytqt-27f46d6031d41aa6ce071885a7e280e1097680e1.tar.gz
pytqt-27f46d6031d41aa6ce071885a7e280e1097680e1.zip
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 7d5aea7e8497095f76841f3dd8f2eab9c4cb58aa)
Diffstat (limited to 'doc/tqtdocs.sip')
-rw-r--r--doc/tqtdocs.sip24
1 files changed, 12 insertions, 12 deletions
diff --git a/doc/tqtdocs.sip b/doc/tqtdocs.sip
index d04ca25..d0525cc 100644
--- a/doc/tqtdocs.sip
+++ b/doc/tqtdocs.sip
@@ -1137,15 +1137,15 @@ Note that the code generated by <Literal>pytquic</Literal> uses
<Sect1><Title>Signal and Slot Support</Title>
<Para>
A signal may be either a TQt signal (specified using
-<Literal>SIGNAL()</Literal>) or a Python signal (specified using
+<Literal>TQ_SIGNAL()</Literal>) or a Python signal (specified using
<Literal>PYSIGNAL()</Literal>).
</Para>
<Para>
A slot can be either a Python callable object, a TQt signal (specified using
-<Literal>SIGNAL()</Literal>), a Python signal (specified using
+<Literal>TQ_SIGNAL()</Literal>), a Python signal (specified using
<Literal>PYSIGNAL()</Literal>), or a TQt slot (specified using
-<Literal>SLOT()</Literal>).
+<Literal>TQ_SLOT()</Literal>).
</Para>
<Para>
@@ -1154,14 +1154,14 @@ example:
</Para>
<ProgramListing>
-TQObject.connect(a,SIGNAL("TQtSig()"),pyFunction)
-TQObject.connect(a,SIGNAL("TQtSig()"),pyClass.pyMethod)
-TQObject.connect(a,SIGNAL("TQtSig()"),PYSIGNAL("PySig"))
-TQObject.connect(a,SIGNAL("TQtSig()"),SLOT("TQtSlot()"))
+TQObject.connect(a,TQ_SIGNAL("TQtSig()"),pyFunction)
+TQObject.connect(a,TQ_SIGNAL("TQtSig()"),pyClass.pyMethod)
+TQObject.connect(a,TQ_SIGNAL("TQtSig()"),PYSIGNAL("PySig"))
+TQObject.connect(a,TQ_SIGNAL("TQtSig()"),TQ_SLOT("TQtSlot()"))
TQObject.connect(a,PYSIGNAL("PySig"),pyFunction)
TQObject.connect(a,PYSIGNAL("PySig"),pyClass.pyMethod)
-TQObject.connect(a,PYSIGNAL("PySig"),SIGNAL("TQtSig()"))
-TQObject.connect(a,PYSIGNAL("PySig"),SLOT("TQtSlot()"))
+TQObject.connect(a,PYSIGNAL("PySig"),TQ_SIGNAL("TQtSig()"))
+TQObject.connect(a,PYSIGNAL("PySig"),TQ_SLOT("TQtSlot()"))
</ProgramListing>
<Para>
@@ -1174,8 +1174,8 @@ connections achieve the same effect.
sbar = TQScrollBar()
lcd = TQLCDNumber()
-TQObject.connect(sbar,SIGNAL("valueChanged(int)"),lcd.display)
-TQObject.connect(sbar,SIGNAL("valueChanged(int)"),lcd,SLOT("display(int)"))
+TQObject.connect(sbar,TQ_SIGNAL("valueChanged(int)"),lcd.display)
+TQObject.connect(sbar,TQ_SIGNAL("valueChanged(int)"),lcd,TQ_SLOT("display(int)"))
</ProgramListing>
<Para>
@@ -1195,7 +1195,7 @@ tuple which are the arguments to the signal. For example:
</Para>
<ProgramListing>
-a.emit(SIGNAL("clicked()"),())
+a.emit(TQ_SIGNAL("clicked()"),())
a.emit(PYSIGNAL("pySig"),("Hello","World"))
</ProgramListing>