blob: 65e481ad64e26733d0ebbb41d993c793133347e2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
package Qt::GlobalSpace;
use strict;
require Qt;
require Exporter;
our @ISA = qw(Exporter);
our @EXPORT;
our $allMeth = Qt::_internal::findAllMethods( Qt::_internal::idClass("QGlobalSpace") );
no strict 'refs';
for my $proto( keys %$allMeth )
{
next if $proto =~ /operator\W/; # skip operators
$proto =~ s/[\#\$\?]+$//;
*{ $proto } = sub
{
$Qt::_internal::autoload::AUTOLOAD = "Qt::GlobalSpace\::$proto";
goto &Qt::GlobalSpace::AUTOLOAD
} unless defined &$proto;
push @EXPORT, $proto;
}
our %EXPORT_TAGS = ( "all" => [@EXPORT] );
1;
|