From 301b5380792b7a368488aa485d3bdb3df81e0808 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Wed, 10 Jan 2024 10:12:24 +0900 Subject: Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines Signed-off-by: Michele Calgaro --- PerlTQt/tutorials/t6/t6.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'PerlTQt/tutorials/t6/t6.pl') diff --git a/PerlTQt/tutorials/t6/t6.pl b/PerlTQt/tutorials/t6/t6.pl index b50c415..feef6d9 100644 --- a/PerlTQt/tutorials/t6/t6.pl +++ b/PerlTQt/tutorials/t6/t6.pl @@ -13,7 +13,7 @@ sub NEW { my $slider = TQt::Slider(&Horizontal, this, "slider"); $slider->setRange(0, 99); $slider->setValue(0); - $lcd->connect($slider, TQT_SIGNAL('valueChanged(int)'), TQT_SLOT('display(int)')); + $lcd->connect($slider, TQ_SIGNAL('valueChanged(int)'), TQ_SLOT('display(int)')); } package MyWidget; @@ -27,7 +27,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 $grid = TQt::Grid(4, this); -- cgit v1.2.1