diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-03-08 09:16:09 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-03-08 09:16:09 -0600 |
commit | d22c7b8f00303de81d0f18df71a3468adc78f42e (patch) | |
tree | 6737518c1b52893e622ace75992489015e4e9755 /PerlTQt | |
parent | 52d72c66fb0fd5a1a834357b8239a72e5ac26d27 (diff) | |
download | libtqt-perl-d22c7b8f00303de81d0f18df71a3468adc78f42e.tar.gz libtqt-perl-d22c7b8f00303de81d0f18df71a3468adc78f42e.zip |
Update for tqt3
Diffstat (limited to 'PerlTQt')
-rw-r--r-- | PerlTQt/TQt.pm | 8 | ||||
-rw-r--r-- | PerlTQt/lib/TQt/signals.pm | 8 | ||||
-rw-r--r-- | PerlTQt/lib/TQt/slots.pm | 8 |
3 files changed, 12 insertions, 12 deletions
diff --git a/PerlTQt/TQt.pm b/PerlTQt/TQt.pm index 0b8a5c9..dee56b5 100644 --- a/PerlTQt/TQt.pm +++ b/PerlTQt/TQt.pm @@ -793,10 +793,10 @@ sub inheritSuperSigSlots { TQt::_internal::installsignal("$class\::$ssn"); } } - TQt::_internal::installqt_invoke($class . '::qt_invoke') - if( !defined &{ $class. '::qt_invoke' } && exists $meta->{slots} && @{ $meta->{slots} }); - TQt::_internal::installqt_invoke($class . '::qt_emit') - if( !defined &{ $class. '::qt_emit' } && exists $meta->{signals} && @{ $meta->{signals} }); + TQt::_internal::installqt_invoke($class . '::tqt_invoke') + if( !defined &{ $class. '::tqt_invoke' } && exists $meta->{slots} && @{ $meta->{slots} }); + TQt::_internal::installqt_invoke($class . '::tqt_emit') + if( !defined &{ $class. '::tqt_emit' } && exists $meta->{signals} && @{ $meta->{signals} }); } } } diff --git a/PerlTQt/lib/TQt/signals.pm b/PerlTQt/lib/TQt/signals.pm index 1f454c1..d0c3275 100644 --- a/PerlTQt/lib/TQt/signals.pm +++ b/PerlTQt/lib/TQt/signals.pm @@ -18,11 +18,11 @@ sub import { my $self = shift; my $caller = $self eq "TQt::signals" ? (caller)[0] : $self; my $parent = ${ $caller . '::ISA' }[0]; - my $parent_qt_emit = $parent . '::qt_emit'; + my $parent_qt_emit = $parent . '::tqt_emit'; - TQt::_internal::installqt_invoke($caller . '::qt_emit') unless defined &{ $caller. '::qt_emit' }; + TQt::_internal::installqt_invoke($caller . '::tqt_emit') unless defined &{ $caller. '::tqt_emit' }; -# *{ $caller . '::qt_emit' } = sub { +# *{ $caller . '::tqt_emit' } = sub { # my $meta = \%{ $caller . '::META' }; # die unless $meta->{object}; # my $offset = $_[0] - $meta->{object}->signalOffset; @@ -32,7 +32,7 @@ sub import { # } else { # TQt::this()->$parent_qt_emit(@_); # } -# } unless defined &{ $caller . '::qt_emit' }; +# } unless defined &{ $caller . '::tqt_emit' }; my $meta = \%{ $caller . '::META' }; croak "Odd number of arguments in signal declaration" if @_%2; diff --git a/PerlTQt/lib/TQt/slots.pm b/PerlTQt/lib/TQt/slots.pm index c12990e..cfbcff1 100644 --- a/PerlTQt/lib/TQt/slots.pm +++ b/PerlTQt/lib/TQt/slots.pm @@ -16,11 +16,11 @@ sub import { my $self = shift; my $caller = $self eq "TQt::slots" ? (caller)[0] : $self; my $parent = ${ $caller . '::ISA' }[0]; - my $parent_qt_invoke = $parent . '::qt_invoke'; + my $parent_qt_invoke = $parent . '::tqt_invoke'; - TQt::_internal::installqt_invoke($caller . '::qt_invoke') unless defined &{ $caller. '::qt_invoke' }; + TQt::_internal::installqt_invoke($caller . '::tqt_invoke') unless defined &{ $caller. '::tqt_invoke' }; -# *{ $caller . '::qt_invoke' } = sub { +# *{ $caller . '::tqt_invoke' } = sub { # my $meta = \%{ $caller . '::META' }; # die unless $meta->{object}; # my $offset = $_[0] - $meta->{object}->slotOffset; @@ -30,7 +30,7 @@ sub import { # } else { # TQt::this()->$parent_qt_invoke(@_); # } -# } unless defined &{ $caller . '::qt_invoke' }; +# } unless defined &{ $caller . '::tqt_invoke' }; my $meta = \%{ $caller . '::META' }; croak "Odd number of arguments in slot declaration" if @_%2; |