From 1eb017313b2ebc441dfc81e73a5d6573d03ea08d Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 13 Jan 2024 11:29:06 +0900 Subject: Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines Signed-off-by: Michele Calgaro (cherry picked from commit faf33629bb6562a6f43f930afafe4b22e9cdb60b) --- qtjava/javalib/tutorial/t8/LCDRange.java | 8 ++++---- qtjava/javalib/tutorial/t8/Tut8.java | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'qtjava/javalib/tutorial/t8') diff --git a/qtjava/javalib/tutorial/t8/LCDRange.java b/qtjava/javalib/tutorial/t8/LCDRange.java index 877c65de..71fdd7e0 100644 --- a/qtjava/javalib/tutorial/t8/LCDRange.java +++ b/qtjava/javalib/tutorial/t8/LCDRange.java @@ -10,10 +10,10 @@ public class LCDRange extends TQVBox { slider.setRange(0, 99); slider.setValue(0); - connect(slider, SIGNAL("valueChanged(int)"), - lcd, SLOT("display(int)")); - connect(slider, SIGNAL("valueChanged(int)"), - SIGNAL("valueChanged(int)")); + connect(slider, TQ_SIGNAL("valueChanged(int)"), + lcd, TQ_SLOT("display(int)")); + connect(slider, TQ_SIGNAL("valueChanged(int)"), + TQ_SIGNAL("valueChanged(int)")); setFocusProxy(slider); } diff --git a/qtjava/javalib/tutorial/t8/Tut8.java b/qtjava/javalib/tutorial/t8/Tut8.java index 4159c8e0..4bab948f 100644 --- a/qtjava/javalib/tutorial/t8/Tut8.java +++ b/qtjava/javalib/tutorial/t8/Tut8.java @@ -5,17 +5,17 @@ public class Tut8 extends TQWidget { TQPushButton quit = new TQPushButton("Quit", this, "quit"); quit.setFont(new TQFont("Times", 18, TQFont.Bold, false)); - connect(quit, SIGNAL("clicked()"), tqApp(), SLOT("quit()")); + connect(quit, TQ_SIGNAL("clicked()"), tqApp(), TQ_SLOT("quit()")); LCDRange angle = new LCDRange(this, "angle"); angle.setRange(5, 70); CannonField cannonField = new CannonField(this, "cannonField"); - connect(angle, SIGNAL("valueChanged(int)"), - cannonField, SLOT("setAngle(int)")); - connect(cannonField, SIGNAL("angleChanged(int)"), - angle, SLOT("setValue(int)")); + connect(angle, TQ_SIGNAL("valueChanged(int)"), + cannonField, TQ_SLOT("setAngle(int)")); + connect(cannonField, TQ_SIGNAL("angleChanged(int)"), + angle, TQ_SLOT("setValue(int)")); TQGridLayout grid = new TQGridLayout(this, 2, 2, 10, -1, null); //2x2, 10 pixel border -- cgit v1.2.1