diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-13 11:29:06 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-13 11:45:40 +0900 |
commit | faf33629bb6562a6f43f930afafe4b22e9cdb60b (patch) | |
tree | 8fc6dc6d999a3a039ace28db2fe5b96712fa18e0 /qtjava/javalib/tutorial/t12/Tut12.java | |
parent | 0ff7d227c65fecb4fb7482ecd679acb594ef5cf7 (diff) | |
download | tdebindings-faf33629bb6562a6f43f930afafe4b22e9cdb60b.tar.gz tdebindings-faf33629bb6562a6f43f930afafe4b22e9cdb60b.zip |
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'qtjava/javalib/tutorial/t12/Tut12.java')
-rw-r--r-- | qtjava/javalib/tutorial/t12/Tut12.java | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/qtjava/javalib/tutorial/t12/Tut12.java b/qtjava/javalib/tutorial/t12/Tut12.java index 845a206b..40da9321 100644 --- a/qtjava/javalib/tutorial/t12/Tut12.java +++ b/qtjava/javalib/tutorial/t12/Tut12.java @@ -5,7 +5,7 @@ public class Tut12 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("ANGLE", this, "angle"); angle.setRange(5, 70); @@ -15,21 +15,21 @@ public class Tut12 extends TQWidget { 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)")); - connect(force, SIGNAL("valueChanged(int)"), - cannonField, SLOT("setForce(int)")); - connect(cannonField, SIGNAL("forceChanged(int)"), - force, SLOT("setValue(int)")); + connect(force, TQ_SIGNAL("valueChanged(int)"), + cannonField, TQ_SLOT("setForce(int)")); + connect(cannonField, TQ_SIGNAL("forceChanged(int)"), + force, TQ_SLOT("setValue(int)")); TQPushButton shoot = new TQPushButton("&Shoot", this, "shoot"); shoot.setFont(new TQFont("Times", 18, TQFont.Bold, false)); - connect(shoot, SIGNAL("clicked()"), cannonField, SLOT("shoot()")); + connect(shoot, TQ_SIGNAL("clicked()"), cannonField, TQ_SLOT("shoot()")); TQGridLayout grid = new TQGridLayout(this, 2, 2, 10, -1, null); grid.addWidget(quit, 0, 0); |