summaryrefslogtreecommitdiffstats
path: root/doc/fr/index.html
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-01-10 10:12:24 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-01-10 10:12:24 +0900
commit301b5380792b7a368488aa485d3bdb3df81e0808 (patch)
tree02f29183ad7d160b896f76ba08c916e3c97f6226 /doc/fr/index.html
parent6c02673b584fd4fbd4761057a5b466bca26036bd (diff)
downloadlibtqt-perl-301b5380792b7a368488aa485d3bdb3df81e0808.tar.gz
libtqt-perl-301b5380792b7a368488aa485d3bdb3df81e0808.zip
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/fr/index.html')
-rw-r--r--doc/fr/index.html16
1 files changed, 8 insertions, 8 deletions
diff --git a/doc/fr/index.html b/doc/fr/index.html
index 2475849..2a4f93a 100644
--- a/doc/fr/index.html
+++ b/doc/fr/index.html
@@ -476,11 +476,11 @@ magnétophone. Il a des sorties ou <strong>Signaux</strong> et des entrées ou
d'entrées (slots). La sortie d'un composant peut être potentiellement
branchée à toute entrée d'un composant (y compris lui-même),</p>
<p>La syntaxe de ce système de connexion est soit:</p>
-<p>TQt::Object::connect( envoyeur, TQT_SIGNAL 'mon_signal(types_d_arguments)',
-recepteur, TQT_SLOT 'monslot(types_d_arguments)');</p>
+<p>TQt::Object::connect( envoyeur, TQ_SIGNAL 'mon_signal(types_d_arguments)',
+recepteur, TQ_SLOT 'monslot(types_d_arguments)');</p>
<p>soit:</p>
-<p>unObjet-&gt;connect( envoyeur, TQT_SIGNAL 'mon_signal(types_d_arguments)',
-SLOT 'monslot(types_d_arguments)');</p>
+<p>unObjet-&gt;connect( envoyeur, TQ_SIGNAL 'mon_signal(types_d_arguments)',
+TQ_SLOT 'monslot(types_d_arguments)');</p>
<p>Dans le second cas, le récepteur est omis car c'est l'objet lui-même,</p>
<p>Ce mécanisme est extensible à volonté par la déclaration de nouveaux Signaux et
Slots par l'usage des pragma <code>use TQt::signals</code> et <code>use TQt::slots</code>
@@ -506,8 +506,8 @@ objet. Chaque signal déclaré peut être déclenché via le mot-clé <strong>emit</st
15: shift-&gt;SUPER::NEW(@_[0..2]);
16: itsTime = TQt::Time;
17: itsTime-&gt;start;
- 18: this-&gt;connect(this, TQT_SIGNAL 'clicked()', TQT_SLOT 'aEteClicke()');
- 19: this-&gt;connect(this, TQT_SIGNAL 'changeLe(int,int)', TQT_SLOT 'changement(int,int)');
+ 18: this-&gt;connect(this, TQ_SIGNAL 'clicked()', TQ_SLOT 'aEteClicke()');
+ 19: this-&gt;connect(this, TQ_SIGNAL 'changeLe(int,int)', TQ_SLOT 'changement(int,int)');
20: }
21:
22: sub aEteClicke
@@ -536,7 +536,7 @@ objet. Chaque signal déclaré peut être déclenché via le mot-clé <strong>emit</st
appelant de ce fait le slot <code>changement(int,int)</code>, avec deux arguments.</p>
<p>Enfin, il existe une syntaxe alternative introduite dans PerlTQt-3.008 :</p>
<pre>
- sub un_slot : TQT_SLOT(int, TQString)
+ sub un_slot : TQ_SLOT(int, TQString)
{
$int = shift;
$string = shift;
@@ -544,7 +544,7 @@ appelant de ce fait le slot <code>changement(int,int)</code>, avec deux argument
}</pre>
<p>et</p>
<pre>
- sub un_signal : TQT_SIGNAL(TQString);</pre>
+ sub un_signal : TQ_SIGNAL(TQString);</pre>
<p>Cette syntaxe est parfaitement compatible avec la déclaration par le biais de
<code>use TQt::signals</code> et <code>use TQt::slots</code>.
Il peut d'ailleurs d'avérer très profitable pour la clarté du programme de déclarer tout d'abord