summaryrefslogtreecommitdiffstats
path: root/PerlQt/tutorials/t12/LCDRange.pm
diff options
context:
space:
mode:
Diffstat (limited to 'PerlQt/tutorials/t12/LCDRange.pm')
-rw-r--r--PerlQt/tutorials/t12/LCDRange.pm20
1 files changed, 10 insertions, 10 deletions
diff --git a/PerlQt/tutorials/t12/LCDRange.pm b/PerlQt/tutorials/t12/LCDRange.pm
index 3562fee..d3a5166 100644
--- a/PerlQt/tutorials/t12/LCDRange.pm
+++ b/PerlQt/tutorials/t12/LCDRange.pm
@@ -1,14 +1,14 @@
package LCDRange;
use strict;
-use Qt;
-use Qt::isa qw(Qt::VBox);
-use Qt::slots
+use TQt;
+use TQt::isa qw(TQt::VBox);
+use TQt::slots
setValue => ['int'],
setRange => ['int', 'int'],
setText => ['const char*'];
-use Qt::signals
+use TQt::signals
valueChanged => ['int'];
-use Qt::attributes qw(
+use TQt::attributes qw(
slider
label
);
@@ -25,17 +25,17 @@ sub NEW {
sub init {
- my $lcd = Qt::LCDNumber(2, this, "lcd");
+ my $lcd = TQt::LCDNumber(2, this, "lcd");
- slider = Qt::Slider(&Horizontal, this, "slider");
+ slider = TQt::Slider(&Horizontal, this, "slider");
slider->setRange(0, 99);
slider->setValue(0);
- label = Qt::Label(" ", this, "label");
+ label = TQt::Label(" ", this, "label");
label->setAlignment(&AlignCenter);
- $lcd->connect(slider, SIGNAL('valueChanged(int)'), SLOT('display(int)'));
- this->connect(slider, SIGNAL('valueChanged(int)'), SIGNAL('valueChanged(int)'));
+ $lcd->connect(slider, TQT_SIGNAL('valueChanged(int)'), TQT_SLOT('display(int)'));
+ this->connect(slider, TQT_SIGNAL('valueChanged(int)'), TQT_SIGNAL('valueChanged(int)'));
setFocusProxy(slider);
}