summaryrefslogtreecommitdiffstats
path: root/kjsembed/tests/test_connectsignal.js
blob: 0e6bff5f6edd1f849bfdb3e8031eaf3d698abc38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
var box = new TQHBox( 'tree_view' );
box.margin = 6;

var led = new KLed( box );
var check = new TQCheckBox(box);
var check2 = new TQCheckBox(box);

check.text = 'Light';
check2.text = 'Bounce';

check.connect( 'toggled(bool)', led, 'toggle()' );
check2.connect( 'toggled(bool)', check, 'toggled(bool)' );

box.show();