summaryrefslogtreecommitdiffstats
path: root/kjsembed/tests/test_connect.js
blob: abeb14bb978f07344253aad569cfa9fd9fd19388 (plain)
1
2
3
4
5
6
7
8
9
10
11
var box = new QHBox( 'tree_view' );
box.margin = 6;

var led = new KLed( box );

var btn = new QCheckBox(box);
btn.text = 'Light'

btn.connect( 'toggled(bool)', led, 'toggle()' );

box.show();