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-10 10:12:24 +0900 |
commit | 301b5380792b7a368488aa485d3bdb3df81e0808 (patch) | |
tree | 02f29183ad7d160b896f76ba08c916e3c97f6226 /PerlTQt/TQt.pm | |
parent | 6c02673b584fd4fbd4761057a5b466bca26036bd (diff) | |
download | libtqt-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 'PerlTQt/TQt.pm')
-rw-r--r-- | PerlTQt/TQt.pm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/PerlTQt/TQt.pm b/PerlTQt/TQt.pm index dee56b5..ceaad68 100644 --- a/PerlTQt/TQt.pm +++ b/PerlTQt/TQt.pm @@ -849,7 +849,7 @@ sub MODIFY_CODE_ATTRIBUTES my @reject; foreach my $attr( @attrs ) { - if( $attr !~ /^ (SIGNAL|SLOT|DCOP) \(( .* )\) $/x ) + if( $attr !~ /^ (TQ_SIGNAL|TQ_SLOT|DCOP) \(( .* )\) $/x ) { push @reject, $attr; next; @@ -877,7 +877,7 @@ require Exporter; our $VERSION = '3.008'; -our @EXPORT = qw(&TQT_SIGNAL &TQT_SLOT &CAST &emit &min &max); +our @EXPORT = qw(&TQ_SIGNAL &TQ_SLOT &CAST &emit &min &max); XSLoader::load 'TQt', $VERSION; @@ -891,8 +891,8 @@ TQt::_internal::init(); # In general, I'm not a fan of prototypes. # However, I'm also not a fan of parentheses -sub TQT_SIGNAL ($) { '2' . $_[0] } -sub TQT_SLOT ($) { '1' . $_[0] } +sub TQ_SIGNAL ($) { '2' . $_[0] } +sub TQ_SLOT ($) { '1' . $_[0] } sub CAST ($$) { bless $_[0], " $_[1]" } sub emit (@) { pop @_ } sub min ($$) { $_[0] < $_[1] ? $_[0] : $_[1] } |