diff options
author | Timothy Pearson <[email protected]> | 2012-01-01 18:43:39 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2012-01-01 18:43:39 -0600 |
commit | 795a0355a40293affc7164507e918440d4a828d6 (patch) | |
tree | 9724723196b77633801918030aa2e293dc8246fb /PerlTQt/lib/TQt/GlobalSpace.pm | |
parent | 55e5c730361b5f2640f155aef4518ca69c4fc1b4 (diff) | |
download | libtqt-perl-795a0355a40293affc7164507e918440d4a828d6.tar.gz libtqt-perl-795a0355a40293affc7164507e918440d4a828d6.zip |
Move Qt
Diffstat (limited to 'PerlTQt/lib/TQt/GlobalSpace.pm')
-rw-r--r-- | PerlTQt/lib/TQt/GlobalSpace.pm | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/PerlTQt/lib/TQt/GlobalSpace.pm b/PerlTQt/lib/TQt/GlobalSpace.pm new file mode 100644 index 0000000..75f30a2 --- /dev/null +++ b/PerlTQt/lib/TQt/GlobalSpace.pm @@ -0,0 +1,25 @@ +package TQt::GlobalSpace; +use strict; +require TQt; +require Exporter; + +our @ISA = qw(Exporter); +our @EXPORT; +our $allMeth = TQt::_internal::findAllMethods( TQt::_internal::idClass("TQGlobalSpace") ); +no strict 'refs'; + +for my $proto( keys %$allMeth ) +{ + next if $proto =~ /operator\W/; # skip operators + $proto =~ s/[\#\$\?]+$//; + *{ $proto } = sub + { + $TQt::_internal::autoload::AUTOLOAD = "TQt::GlobalSpace\::$proto"; + goto &TQt::GlobalSpace::AUTOLOAD + } unless defined &$proto; + push @EXPORT, $proto; +} + +our %EXPORT_TAGS = ( "all" => [@EXPORT] ); + +1;
\ No newline at end of file |