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 /PerlTQt/TQt.pm | |
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 '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] } |