diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-10 10:12:24 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-11 09:56:53 +0900 |
| commit | 947bc2dba5274c3a87dd0f3dc29972b5a7fde80f (patch) | |
| tree | 8dece4fa4ebb9fa43f8660095f8084ea580ee2eb /doc/fr/PerlQt.pod | |
| parent | bb06ec358695c7621148fd6cf0c2af94fd29f799 (diff) | |
| download | libtqt-perl-947bc2db.tar.gz libtqt-perl-947bc2db.zip | |
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 301b5380792b7a368488aa485d3bdb3df81e0808)
Diffstat (limited to 'doc/fr/PerlQt.pod')
| -rw-r--r-- | doc/fr/PerlQt.pod | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/doc/fr/PerlQt.pod b/doc/fr/PerlQt.pod index 358a542..f35396e 100644 --- a/doc/fr/PerlQt.pod +++ b/doc/fr/PerlQt.pod @@ -501,13 +501,13 @@ branchée à toute entrée d'un composant (y compris lui-même), La syntaxe de ce système de connexion est soit: -TQt::Object::connect( envoyeur, TQT_SIGNAL 'mon_signal(types_d_arguments)', -recepteur, TQT_SLOT 'monslot(types_d_arguments)'); +TQt::Object::connect( envoyeur, TQ_SIGNAL 'mon_signal(types_d_arguments)', +recepteur, TQ_SLOT 'monslot(types_d_arguments)'); soit: -unObjet->connect( envoyeur, TQT_SIGNAL 'mon_signal(types_d_arguments)', -SLOT 'monslot(types_d_arguments)'); +unObjet->connect( envoyeur, TQ_SIGNAL 'mon_signal(types_d_arguments)', +TQ_SLOT 'monslot(types_d_arguments)'); Dans le second cas, le récepteur est omis car c'est l'objet lui-même, @@ -537,8 +537,8 @@ B<Réécrivons encore notre exemple pour illustrer nos propos :> 15: shift->SUPER::NEW(@_[0..2]); 16: itsTime = TQt::Time; 17: itsTime->start; - 18: this->connect(this, TQT_SIGNAL 'clicked()', TQT_SLOT 'aEteClicke()'); - 19: this->connect(this, TQT_SIGNAL 'changeLe(int,int)', TQT_SLOT 'changement(int,int)'); + 18: this->connect(this, TQ_SIGNAL 'clicked()', TQ_SLOT 'aEteClicke()'); + 19: this->connect(this, TQ_SIGNAL 'changeLe(int,int)', TQ_SLOT 'changement(int,int)'); 20: } 21: 22: sub aEteClicke @@ -573,7 +573,7 @@ appelant de ce fait le slot C<changement(int,int)>, avec deux arguments. Enfin, il existe une syntaxe alternative introduite dans PerlTQt-3.008 : - sub un_slot : TQT_SLOT(int, TQString) + sub un_slot : TQ_SLOT(int, TQString) { $int = shift; $string = shift; @@ -582,7 +582,7 @@ Enfin, il existe une syntaxe alternative introduite dans PerlTQt-3.008 : et - sub un_signal : TQT_SIGNAL(TQString); + sub un_signal : TQ_SIGNAL(TQString); Cette syntaxe est parfaitement compatible avec la déclaration par le biais de C<use TQt::signals> et C<use TQt::slots>. |
