summaryrefslogtreecommitdiffstats
path: root/PerlTQt/tutorials/t10
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2024-01-10 10:12:24 +0900
committerMichele Calgaro <[email protected]>2024-01-11 09:56:53 +0900
commit947bc2dba5274c3a87dd0f3dc29972b5a7fde80f (patch)
tree8dece4fa4ebb9fa43f8660095f8084ea580ee2eb /PerlTQt/tutorials/t10
parentbb06ec358695c7621148fd6cf0c2af94fd29f799 (diff)
downloadlibtqt-perl-947bc2dba5274c3a87dd0f3dc29972b5a7fde80f.tar.gz
libtqt-perl-947bc2dba5274c3a87dd0f3dc29972b5a7fde80f.zip
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit 301b5380792b7a368488aa485d3bdb3df81e0808)
Diffstat (limited to 'PerlTQt/tutorials/t10')
-rw-r--r--PerlTQt/tutorials/t10/LCDRange.pm4
-rw-r--r--PerlTQt/tutorials/t10/t10.pl10
2 files changed, 7 insertions, 7 deletions
diff --git a/PerlTQt/tutorials/t10/LCDRange.pm b/PerlTQt/tutorials/t10/LCDRange.pm
index ab63af0..dc2c465 100644
--- a/PerlTQt/tutorials/t10/LCDRange.pm
+++ b/PerlTQt/tutorials/t10/LCDRange.pm
@@ -19,8 +19,8 @@ sub NEW {
slider = TQt::Slider(&Horizontal, this, "slider");
slider->setRange(0, 99);
slider->setValue(0);
- $lcd->connect(slider, TQT_SIGNAL('valueChanged(int)'), TQT_SLOT('display(int)'));
- this->connect(slider, TQT_SIGNAL('valueChanged(int)'), TQT_SIGNAL('valueChanged(int)'));
+ $lcd->connect(slider, TQ_SIGNAL('valueChanged(int)'), TQ_SLOT('display(int)'));
+ this->connect(slider, TQ_SIGNAL('valueChanged(int)'), TQ_SIGNAL('valueChanged(int)'));
setFocusProxy(slider);
}
diff --git a/PerlTQt/tutorials/t10/t10.pl b/PerlTQt/tutorials/t10/t10.pl
index 7056680..2f9bc28 100644
--- a/PerlTQt/tutorials/t10/t10.pl
+++ b/PerlTQt/tutorials/t10/t10.pl
@@ -16,7 +16,7 @@ sub NEW {
my $quit = TQt::PushButton("&Quit", this, "quit");
$quit->setFont(TQt::Font("Times", 18, &TQt::Font::Bold));
- TQt::app->connect($quit, TQT_SIGNAL('clicked()'), TQT_SLOT('quit()'));
+ TQt::app->connect($quit, TQ_SIGNAL('clicked()'), TQ_SLOT('quit()'));
my $angle = LCDRange(this, "angle");
$angle->setRange(5, 70);
@@ -26,11 +26,11 @@ sub NEW {
my $cannonField = CannonField(this, "cannonField");
- $cannonField->connect($angle, TQT_SIGNAL('valueChanged(int)'), TQT_SLOT('setAngle(int)'));
- $angle->connect($cannonField, TQT_SIGNAL('angleChanged(int)'), TQT_SLOT('setValue(int)'));
+ $cannonField->connect($angle, TQ_SIGNAL('valueChanged(int)'), TQ_SLOT('setAngle(int)'));
+ $angle->connect($cannonField, TQ_SIGNAL('angleChanged(int)'), TQ_SLOT('setValue(int)'));
- $cannonField->connect($force, TQT_SIGNAL('valueChanged(int)'), TQT_SLOT('setForce(int)'));
- $force->connect($cannonField, TQT_SIGNAL('forceChanged(int)'), TQT_SLOT('setValue(int)'));
+ $cannonField->connect($force, TQ_SIGNAL('valueChanged(int)'), TQ_SLOT('setForce(int)'));
+ $force->connect($cannonField, TQ_SIGNAL('forceChanged(int)'), TQ_SLOT('setValue(int)'));
my $grid = TQt::GridLayout(this, 2, 2, 10);
$grid->addWidget($quit, 0, 0);