summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/tutorial/t6/LCDRange.java
blob: 4d8e6c7c5e69a02d12401cc789f2c0d5a14be680 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import org.trinitydesktop.qt.*;

public class LCDRange extends TQVBox {
	public LCDRange(TQWidget parent, String name) {
		super(parent, name);
		TQLCDNumber lcd = new TQLCDNumber(2, this, "lcd");
		TQSlider slider = new TQSlider(Horizontal, this, "slider");
		slider.setRange(0, 99);
		slider.setValue(0);
		connect(slider, TQ_SIGNAL("valueChanged(int)"), lcd, TQ_SLOT("display(int)"));
	}
	public LCDRange(TQWidget parent) {
		this(parent, null);
	}
}