summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/tutorial
diff options
context:
space:
mode:
Diffstat (limited to 'qtjava/javalib/tutorial')
-rw-r--r--qtjava/javalib/tutorial/t10/LCDRange.java8
-rw-r--r--qtjava/javalib/tutorial/t10/Tut10.java18
-rw-r--r--qtjava/javalib/tutorial/t11/CannonField.java4
-rw-r--r--qtjava/javalib/tutorial/t11/LCDRange.java8
-rw-r--r--qtjava/javalib/tutorial/t11/Tut11.java20
-rw-r--r--qtjava/javalib/tutorial/t12/CannonField.java4
-rw-r--r--qtjava/javalib/tutorial/t12/LCDRange.java8
-rw-r--r--qtjava/javalib/tutorial/t12/Tut12.java20
-rw-r--r--qtjava/javalib/tutorial/t13/CannonField.java4
-rw-r--r--qtjava/javalib/tutorial/t13/GameBoard.java34
-rw-r--r--qtjava/javalib/tutorial/t13/LCDRange.java8
-rw-r--r--qtjava/javalib/tutorial/t14/CannonField.java4
-rw-r--r--qtjava/javalib/tutorial/t14/GameBoard.java42
-rw-r--r--qtjava/javalib/tutorial/t14/LCDRange.java8
-rw-r--r--qtjava/javalib/tutorial/t2/Tut2.java2
-rw-r--r--qtjava/javalib/tutorial/t3/Tut3.java2
-rw-r--r--qtjava/javalib/tutorial/t4/Tut4.java2
-rw-r--r--qtjava/javalib/tutorial/t5/Tut5.java4
-rw-r--r--qtjava/javalib/tutorial/t6/LCDRange.java2
-rw-r--r--qtjava/javalib/tutorial/t6/Tut6.java2
-rw-r--r--qtjava/javalib/tutorial/t7/LCDRange.java8
-rw-r--r--qtjava/javalib/tutorial/t7/Tut7.java6
-rw-r--r--qtjava/javalib/tutorial/t8/LCDRange.java8
-rw-r--r--qtjava/javalib/tutorial/t8/Tut8.java10
-rw-r--r--qtjava/javalib/tutorial/t9/LCDRange.java8
-rw-r--r--qtjava/javalib/tutorial/t9/Tut9.java10
26 files changed, 127 insertions, 127 deletions
diff --git a/qtjava/javalib/tutorial/t10/LCDRange.java b/qtjava/javalib/tutorial/t10/LCDRange.java
index 877c65de..71fdd7e0 100644
--- a/qtjava/javalib/tutorial/t10/LCDRange.java
+++ b/qtjava/javalib/tutorial/t10/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/t10/Tut10.java b/qtjava/javalib/tutorial/t10/Tut10.java
index 2ad781f8..4fd64bb0 100644
--- a/qtjava/javalib/tutorial/t10/Tut10.java
+++ b/qtjava/javalib/tutorial/t10/Tut10.java
@@ -5,7 +5,7 @@ public class Tut10 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);
@@ -15,15 +15,15 @@ public class Tut10 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)"));
TQGridLayout grid = new TQGridLayout(this, 2, 2, 10, -1, null);
grid.addWidget(quit, 0, 0);
diff --git a/qtjava/javalib/tutorial/t11/CannonField.java b/qtjava/javalib/tutorial/t11/CannonField.java
index 8ba81253..5b4e494a 100644
--- a/qtjava/javalib/tutorial/t11/CannonField.java
+++ b/qtjava/javalib/tutorial/t11/CannonField.java
@@ -16,8 +16,8 @@ public class CannonField extends TQWidget {
f = 0;
timerCount = 0;
autoShootTimer = new TQTimer(this, "movement handler");
- connect(autoShootTimer, SIGNAL("timeout()"),
- this, SLOT("moveShot()"));
+ connect(autoShootTimer, TQ_SIGNAL("timeout()"),
+ this, TQ_SLOT("moveShot()"));
shoot_ang = 0;
shoot_f = 0;
diff --git a/qtjava/javalib/tutorial/t11/LCDRange.java b/qtjava/javalib/tutorial/t11/LCDRange.java
index 877c65de..71fdd7e0 100644
--- a/qtjava/javalib/tutorial/t11/LCDRange.java
+++ b/qtjava/javalib/tutorial/t11/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/t11/Tut11.java b/qtjava/javalib/tutorial/t11/Tut11.java
index 3eb3153f..54effd1f 100644
--- a/qtjava/javalib/tutorial/t11/Tut11.java
+++ b/qtjava/javalib/tutorial/t11/Tut11.java
@@ -5,7 +5,7 @@ public class Tut11 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);
@@ -15,21 +15,21 @@ public class Tut11 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);
diff --git a/qtjava/javalib/tutorial/t12/CannonField.java b/qtjava/javalib/tutorial/t12/CannonField.java
index d5c53ce7..b897b172 100644
--- a/qtjava/javalib/tutorial/t12/CannonField.java
+++ b/qtjava/javalib/tutorial/t12/CannonField.java
@@ -19,8 +19,8 @@ public class CannonField extends TQWidget {
f = 0;
timerCount = 0;
autoShootTimer = new TQTimer(this, "movement handler");
- connect(autoShootTimer, SIGNAL("timeout()"),
- this, SLOT("moveShot()"));
+ connect(autoShootTimer, TQ_SIGNAL("timeout()"),
+ this, TQ_SLOT("moveShot()"));
shoot_ang = 0;
shoot_f = 0;
target = new TQPoint(0, 0);
diff --git a/qtjava/javalib/tutorial/t12/LCDRange.java b/qtjava/javalib/tutorial/t12/LCDRange.java
index 7992b586..c0e96890 100644
--- a/qtjava/javalib/tutorial/t12/LCDRange.java
+++ b/qtjava/javalib/tutorial/t12/LCDRange.java
@@ -24,10 +24,10 @@ public class LCDRange extends TQVBox {
label = new TQLabel(" ", this, "label", 0);
label.setAlignment(AlignCenter);
- 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/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);
diff --git a/qtjava/javalib/tutorial/t13/CannonField.java b/qtjava/javalib/tutorial/t13/CannonField.java
index b53dfed9..db35ce1b 100644
--- a/qtjava/javalib/tutorial/t13/CannonField.java
+++ b/qtjava/javalib/tutorial/t13/CannonField.java
@@ -21,8 +21,8 @@ public class CannonField extends TQWidget {
f = 0;
timerCount = 0;
autoShootTimer = new TQTimer(this, "movement handler");
- connect(autoShootTimer, SIGNAL("timeout()"),
- this, SLOT("moveShot()"));
+ connect(autoShootTimer, TQ_SIGNAL("timeout()"),
+ this, TQ_SLOT("moveShot()"));
shoot_ang = 0;
shoot_f = 0;
target = new TQPoint(0, 0);
diff --git a/qtjava/javalib/tutorial/t13/GameBoard.java b/qtjava/javalib/tutorial/t13/GameBoard.java
index 25ff0a1e..c887498f 100644
--- a/qtjava/javalib/tutorial/t13/GameBoard.java
+++ b/qtjava/javalib/tutorial/t13/GameBoard.java
@@ -9,7 +9,7 @@ public class GameBoard 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);
@@ -19,32 +19,32 @@ public class GameBoard extends TQWidget {
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)"));
- connect(cannonField, SIGNAL("hit()"),
- this, SLOT("hit()"));
- connect(cannonField, SIGNAL("missed()"),
- this, SLOT("missed()"));
+ connect(cannonField, TQ_SIGNAL("hit()"),
+ this, TQ_SLOT("hit()"));
+ connect(cannonField, TQ_SIGNAL("missed()"),
+ this, TQ_SLOT("missed()"));
TQPushButton shoot = new TQPushButton("&Shoot", this, "shoot");
shoot.setFont(new TQFont("Times", 18, TQFont.Bold, false));
- connect(shoot, SIGNAL("clicked()"), SLOT("fire()"));
- connect(cannonField, SIGNAL("canShoot(boolean)"),
- shoot, SLOT("setEnabled(boolean)"));
+ connect(shoot, TQ_SIGNAL("clicked()"), TQ_SLOT("fire()"));
+ connect(cannonField, TQ_SIGNAL("canShoot(boolean)"),
+ shoot, TQ_SLOT("setEnabled(boolean)"));
TQPushButton restart = new TQPushButton("&New Game", this, "newgame");
restart.setFont(new TQFont("Times", 18, TQFont.Bold, false));
- connect(restart, SIGNAL("clicked()"), this, SLOT("newGame()"));
+ connect(restart, TQ_SIGNAL("clicked()"), this, TQ_SLOT("newGame()"));
hits = new TQLCDNumber(2, this, "hits");
shotsLeft = new TQLCDNumber(2, this, "shotsleft");
diff --git a/qtjava/javalib/tutorial/t13/LCDRange.java b/qtjava/javalib/tutorial/t13/LCDRange.java
index 27741f89..794bc72b 100644
--- a/qtjava/javalib/tutorial/t13/LCDRange.java
+++ b/qtjava/javalib/tutorial/t13/LCDRange.java
@@ -24,10 +24,10 @@ public class LCDRange extends TQWidget {
label = new TQLabel(" ", this, "label", 0);
label.setAlignment(AlignCenter);
- 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/t14/CannonField.java b/qtjava/javalib/tutorial/t14/CannonField.java
index a38a71a3..e2a3037f 100644
--- a/qtjava/javalib/tutorial/t14/CannonField.java
+++ b/qtjava/javalib/tutorial/t14/CannonField.java
@@ -22,8 +22,8 @@ public class CannonField extends TQWidget {
f = 0;
timerCount = 0;
autoShootTimer = new TQTimer(this, "movement handler");
- connect(autoShootTimer, SIGNAL("timeout()"),
- this, SLOT("moveShot()"));
+ connect(autoShootTimer, TQ_SIGNAL("timeout()"),
+ this, TQ_SLOT("moveShot()"));
shoot_ang = 0;
shoot_f = 0;
target = new TQPoint(0, 0);
diff --git a/qtjava/javalib/tutorial/t14/GameBoard.java b/qtjava/javalib/tutorial/t14/GameBoard.java
index f44af538..6bc66b17 100644
--- a/qtjava/javalib/tutorial/t14/GameBoard.java
+++ b/qtjava/javalib/tutorial/t14/GameBoard.java
@@ -10,7 +10,7 @@ public class GameBoard 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);
@@ -23,30 +23,30 @@ public class GameBoard extends TQWidget {
cannonField = new CannonField(box, "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)"));
- connect(cannonField, SIGNAL("hit()"),
- this, SLOT("hit()"));
- connect(cannonField, SIGNAL("missed()"),
- this, SLOT("missed()"));
+ connect(cannonField, TQ_SIGNAL("hit()"),
+ this, TQ_SLOT("hit()"));
+ connect(cannonField, TQ_SIGNAL("missed()"),
+ this, TQ_SLOT("missed()"));
TQPushButton shoot = new TQPushButton("&Shoot", this, "shoot");
shoot.setFont(new TQFont("Times", 18, TQFont.Bold, false));
- connect(shoot, SIGNAL("clicked()"), SLOT("fire()"));
+ connect(shoot, TQ_SIGNAL("clicked()"), TQ_SLOT("fire()"));
TQPushButton restart = new TQPushButton("&New Game", this, "newgame");
restart.setFont(new TQFont("Times", 18, TQFont.Bold, false));
- connect(restart, SIGNAL("clicked()"), this, SLOT("newGame()"));
+ connect(restart, TQ_SIGNAL("clicked()"), this, TQ_SLOT("newGame()"));
hits = new TQLCDNumber(2, this, "hits");
shotsLeft = new TQLCDNumber(2, this, "shotsleft");
@@ -54,13 +54,13 @@ public class GameBoard extends TQWidget {
TQLabel shotsLeftL = new TQLabel("SHOTS LEFT", this, "shotsleftLabel", 0);
TQAccel accel = new TQAccel(this);
- accel.connectItem(accel.insertItem(new TQKeySequence(Key_Enter)), this, SLOT("fire()"));
- accel.connectItem(accel.insertItem(new TQKeySequence(Key_Return)), this, SLOT("fire()"));
- accel.connectItem(accel.insertItem(new TQKeySequence(CTRL+Key_Q)), tqApp(), SLOT("quit()"));
+ accel.connectItem(accel.insertItem(new TQKeySequence(Key_Enter)), this, TQ_SLOT("fire()"));
+ accel.connectItem(accel.insertItem(new TQKeySequence(Key_Return)), this, TQ_SLOT("fire()"));
+ accel.connectItem(accel.insertItem(new TQKeySequence(CTRL+Key_Q)), tqApp(), TQ_SLOT("quit()"));
/***
- accel.connectItem(accel.insertItem(Key_Enter), this, SLOT("fire()"));
- accel.connectItem(accel.insertItem(Key_Return), this, SLOT("fire()"));
- accel.connectItem(accel.insertItem(CTRL+Key_Q), tqApp(), SLOT("quit()"));
+ accel.connectItem(accel.insertItem(Key_Enter), this, TQ_SLOT("fire()"));
+ accel.connectItem(accel.insertItem(Key_Return), this, TQ_SLOT("fire()"));
+ accel.connectItem(accel.insertItem(CTRL+Key_Q), tqApp(), TQ_SLOT("quit()"));
***/
TQGridLayout grid = new TQGridLayout(this, 2, 2, 10, -1, null);
grid.addWidget(quit, 0, 0);
diff --git a/qtjava/javalib/tutorial/t14/LCDRange.java b/qtjava/javalib/tutorial/t14/LCDRange.java
index 27741f89..794bc72b 100644
--- a/qtjava/javalib/tutorial/t14/LCDRange.java
+++ b/qtjava/javalib/tutorial/t14/LCDRange.java
@@ -24,10 +24,10 @@ public class LCDRange extends TQWidget {
label = new TQLabel(" ", this, "label", 0);
label.setAlignment(AlignCenter);
- 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/t2/Tut2.java b/qtjava/javalib/tutorial/t2/Tut2.java
index f5a31bb2..7b27ff11 100644
--- a/qtjava/javalib/tutorial/t2/Tut2.java
+++ b/qtjava/javalib/tutorial/t2/Tut2.java
@@ -7,7 +7,7 @@ public class Tut2 extends TQObject {
quit.resize( 75, 30 );
quit.setFont(new TQFont("Times", 18, TQFont.Bold, false));
- connect(quit, SIGNAL("clicked()"), a, SLOT("quit()"));
+ connect(quit, TQ_SIGNAL("clicked()"), a, TQ_SLOT("quit()"));
a.setMainWidget(quit);
quit.show();
diff --git a/qtjava/javalib/tutorial/t3/Tut3.java b/qtjava/javalib/tutorial/t3/Tut3.java
index ef6fc013..119eec97 100644
--- a/qtjava/javalib/tutorial/t3/Tut3.java
+++ b/qtjava/javalib/tutorial/t3/Tut3.java
@@ -10,7 +10,7 @@ public class Tut3 extends TQObject {
TQPushButton quit = new TQPushButton("Quit", box);
quit.setFont(new TQFont("Times", 18, TQFont.Bold, false));
- connect(quit, SIGNAL("clicked()"), a, SLOT("quit()"));
+ connect(quit, TQ_SIGNAL("clicked()"), a, TQ_SLOT("quit()"));
a.setMainWidget(box);
box.show();
diff --git a/qtjava/javalib/tutorial/t4/Tut4.java b/qtjava/javalib/tutorial/t4/Tut4.java
index 6b14729d..801e7235 100644
--- a/qtjava/javalib/tutorial/t4/Tut4.java
+++ b/qtjava/javalib/tutorial/t4/Tut4.java
@@ -9,7 +9,7 @@ public class Tut4 extends TQWidget {
quit.setGeometry(62, 40, 75, 30);
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()"));
}
public static void main(String[] args) {
diff --git a/qtjava/javalib/tutorial/t5/Tut5.java b/qtjava/javalib/tutorial/t5/Tut5.java
index 61e02748..74802681 100644
--- a/qtjava/javalib/tutorial/t5/Tut5.java
+++ b/qtjava/javalib/tutorial/t5/Tut5.java
@@ -5,7 +5,7 @@ public class Tut5 extends TQVBox {
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()"));
TQLCDNumber lcd = new TQLCDNumber(2, this, "lcd");
@@ -13,7 +13,7 @@ public class Tut5 extends TQVBox {
slider.setRange(0, 99);
slider.setValue(0);
- connect(slider, SIGNAL("valueChanged(int)"), lcd, SLOT("display(int)"));
+ connect(slider, TQ_SIGNAL("valueChanged(int)"), lcd, TQ_SLOT("display(int)"));
}
public static void main(String[] args) {
diff --git a/qtjava/javalib/tutorial/t6/LCDRange.java b/qtjava/javalib/tutorial/t6/LCDRange.java
index a1d45a47..4d8e6c7c 100644
--- a/qtjava/javalib/tutorial/t6/LCDRange.java
+++ b/qtjava/javalib/tutorial/t6/LCDRange.java
@@ -7,7 +7,7 @@ public class LCDRange extends TQVBox {
TQSlider slider = new TQSlider(Horizontal, this, "slider");
slider.setRange(0, 99);
slider.setValue(0);
- connect(slider, SIGNAL("valueChanged(int)"), lcd, SLOT("display(int)"));
+ connect(slider, TQ_SIGNAL("valueChanged(int)"), lcd, TQ_SLOT("display(int)"));
}
public LCDRange(TQWidget parent) {
this(parent, null);
diff --git a/qtjava/javalib/tutorial/t6/Tut6.java b/qtjava/javalib/tutorial/t6/Tut6.java
index 011742c8..4d3da228 100644
--- a/qtjava/javalib/tutorial/t6/Tut6.java
+++ b/qtjava/javalib/tutorial/t6/Tut6.java
@@ -5,7 +5,7 @@ public class Tut6 extends TQVBox {
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()"));
TQGrid grid = new TQGrid(4, this, null, 0);
diff --git a/qtjava/javalib/tutorial/t7/LCDRange.java b/qtjava/javalib/tutorial/t7/LCDRange.java
index 62590013..2192de7c 100644
--- a/qtjava/javalib/tutorial/t7/LCDRange.java
+++ b/qtjava/javalib/tutorial/t7/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)"));
}
public LCDRange(TQWidget parent) {
this(parent, null);
diff --git a/qtjava/javalib/tutorial/t7/Tut7.java b/qtjava/javalib/tutorial/t7/Tut7.java
index b1bd1e87..4e63fdea 100644
--- a/qtjava/javalib/tutorial/t7/Tut7.java
+++ b/qtjava/javalib/tutorial/t7/Tut7.java
@@ -5,7 +5,7 @@ public class Tut7 extends TQVBox {
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()"));
TQGrid grid = new TQGrid(4, this, null, 0);
@@ -14,8 +14,8 @@ public class Tut7 extends TQVBox {
for(int c = 0; c < 4; c++) {
LCDRange lr = new LCDRange(grid);
if (previous!=null)
- connect(lr, SIGNAL("valueChanged(int)"),
- previous, SLOT("setValue(int)"));
+ connect(lr, TQ_SIGNAL("valueChanged(int)"),
+ previous, TQ_SLOT("setValue(int)"));
previous = lr;
}
}
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
diff --git a/qtjava/javalib/tutorial/t9/LCDRange.java b/qtjava/javalib/tutorial/t9/LCDRange.java
index 877c65de..71fdd7e0 100644
--- a/qtjava/javalib/tutorial/t9/LCDRange.java
+++ b/qtjava/javalib/tutorial/t9/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/t9/Tut9.java b/qtjava/javalib/tutorial/t9/Tut9.java
index cd8db787..d04c798d 100644
--- a/qtjava/javalib/tutorial/t9/Tut9.java
+++ b/qtjava/javalib/tutorial/t9/Tut9.java
@@ -5,17 +5,17 @@ public class Tut9 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