summaryrefslogtreecommitdiffstats
path: root/PerlQt/lib/Qt/GlobalSpace.pm
diff options
context:
space:
mode:
Diffstat (limited to 'PerlQt/lib/Qt/GlobalSpace.pm')
-rw-r--r--PerlQt/lib/Qt/GlobalSpace.pm25
1 files changed, 25 insertions, 0 deletions
diff --git a/PerlQt/lib/Qt/GlobalSpace.pm b/PerlQt/lib/Qt/GlobalSpace.pm
new file mode 100644
index 0000000..65e481a
--- /dev/null
+++ b/PerlQt/lib/Qt/GlobalSpace.pm
@@ -0,0 +1,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; \ No newline at end of file