summaryrefslogtreecommitdiffstats
path: root/PerlQt/t/d_sigslot.t
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-01-01 18:24:37 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-01-01 18:24:37 -0600
commit4e997a9c6e25689dca65a2ec573a599699ef8170 (patch)
treefdb5ecac42fb8204df9fc8c9abe1c784d4719e0e /PerlQt/t/d_sigslot.t
parentbfa107694b2507a7116f8856cafe4ab1375da8a9 (diff)
downloadlibtqt-perl-4e997a9c6e25689dca65a2ec573a599699ef8170.tar.gz
libtqt-perl-4e997a9c6e25689dca65a2ec573a599699ef8170.zip
Initial TQt conversion
Diffstat (limited to 'PerlQt/t/d_sigslot.t')
-rw-r--r--PerlQt/t/d_sigslot.t22
1 files changed, 11 insertions, 11 deletions
diff --git a/PerlQt/t/d_sigslot.t b/PerlQt/t/d_sigslot.t
index 1b455e1..acd3c4a 100644
--- a/PerlQt/t/d_sigslot.t
+++ b/PerlQt/t/d_sigslot.t
@@ -1,24 +1,24 @@
BEGIN { print "1..3\n" }
package MyApp;
-use Qt;
-use Qt::isa qw(Qt::Application);
-use Qt::slots
+use TQt;
+use TQt::isa qw(TQt::Application);
+use TQt::slots
foo => ['int'],
baz => [];
-use Qt::signals
+use TQt::signals
bar => ['int'];
sub NEW {
shift->SUPER::NEW(@_);
- # 1) testing correct subclassing of Qt::Application and this pointer
+ # 1) testing correct subclassing of TQt::Application and this pointer
print +(ref(this) eq " MyApp")? "ok 1\n" : "not ok\n";
- this->connect(this, SIGNAL 'bar(int)', SLOT 'foo(int)');
+ this->connect(this, TQT_SIGNAL 'bar(int)', TQT_SLOT 'foo(int)');
- # 3) automatic quitting will test Qt sig to custom slot
- this->connect(this, SIGNAL 'aboutToQuit()', SLOT 'baz()');
+ # 3) automatic quitting will test TQt sig to custom slot
+ this->connect(this, TQT_SIGNAL 'aboutToQuit()', TQT_SLOT 'baz()');
# 2) testing custom sig to custom slot
emit bar(3);
@@ -38,12 +38,12 @@ sub baz
package main;
-use Qt;
+use TQt;
use MyApp;
$a = 0;
$a = MyApp(\@ARGV);
-Qt::Timer::singleShot( 300, Qt::app(), SLOT "quit()" );
+TQt::Timer::singleShot( 300, TQt::app(), TQT_SLOT "quit()" );
-exit Qt::app()->exec;
+exit TQt::app()->exec;