summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/tutorial/t7
diff options
context:
space:
mode:
Diffstat (limited to 'qtjava/javalib/tutorial/t7')
-rw-r--r--qtjava/javalib/tutorial/t7/LCDRange.java8
-rw-r--r--qtjava/javalib/tutorial/t7/Tut7.java6
2 files changed, 7 insertions, 7 deletions
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;
}
}