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

public class LCDRange extends QVBox {
	public LCDRange(QWidget parent, String name) {
		super(parent, name);
		QLCDNumber lcd = new QLCDNumber(2, this, "lcd");
		QSlider slider = new QSlider(Horizontal, this, "slider");
		slider.setRange(0, 99);
		slider.setValue(0);
		connect(slider, SIGNAL("valueChanged(int)"), lcd, SLOT("display(int)"));
	}
	public LCDRange(QWidget parent) {
		this(parent, null);
	}
}