summaryrefslogtreecommitdiffstats
path: root/PerlQt/tutorials/t8/t8.pl
diff options
context:
space:
mode:
Diffstat (limited to 'PerlQt/tutorials/t8/t8.pl')
-rw-r--r--PerlQt/tutorials/t8/t8.pl20
1 files changed, 10 insertions, 10 deletions
diff --git a/PerlQt/tutorials/t8/t8.pl b/PerlQt/tutorials/t8/t8.pl
index 51967ca..620f912 100644
--- a/PerlQt/tutorials/t8/t8.pl
+++ b/PerlQt/tutorials/t8/t8.pl
@@ -4,8 +4,8 @@ use blib;
package MyWidget;
use strict;
-use Qt;
-use Qt::isa qw(Qt::Widget);
+use TQt;
+use TQt::isa qw(TQt::Widget);
use LCDRange;
use CannonField;
@@ -13,20 +13,20 @@ use CannonField;
sub NEW {
shift->SUPER::NEW(@_);
- my $quit = Qt::PushButton("Quit", this, "quit");
- $quit->setFont(Qt::Font("Times", 18, &Qt::Font::Bold));
+ my $quit = TQt::PushButton("Quit", this, "quit");
+ $quit->setFont(TQt::Font("Times", 18, &TQt::Font::Bold));
- Qt::app->connect($quit, SIGNAL('clicked()'), SLOT('quit()'));
+ TQt::app->connect($quit, TQT_SIGNAL('clicked()'), TQT_SLOT('quit()'));
my $angle = LCDRange(this, "angle");
$angle->setRange(5, 70);
my $cannonField = CannonField(this, "cannonField");
- $cannonField->connect($angle, SIGNAL('valueChanged(int)'), SLOT('setAngle(int)'));
- $angle->connect($cannonField, SIGNAL('angleChanged(int)'), SLOT('setValue(int)'));
+ $cannonField->connect($angle, TQT_SIGNAL('valueChanged(int)'), TQT_SLOT('setAngle(int)'));
+ $angle->connect($cannonField, TQT_SIGNAL('angleChanged(int)'), TQT_SLOT('setValue(int)'));
- my $grid = Qt::GridLayout(this, 2, 2, 10);
+ my $grid = TQt::GridLayout(this, 2, 2, 10);
$grid->addWidget($quit, 0, 0);
$grid->addWidget($angle, 1, 0, &AlignTop);
$grid->addWidget($cannonField, 1, 1);
@@ -37,10 +37,10 @@ sub NEW {
}
package main;
-use Qt;
+use TQt;
use MyWidget;
-my $a = Qt::Application(\@ARGV);
+my $a = TQt::Application(\@ARGV);
my $w = MyWidget;
$w->setGeometry(100, 100, 500, 355);