diff options
Diffstat (limited to 'kjsembed/tests/test_connect.js')
-rw-r--r-- | kjsembed/tests/test_connect.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/kjsembed/tests/test_connect.js b/kjsembed/tests/test_connect.js new file mode 100644 index 00000000..abeb14bb --- /dev/null +++ b/kjsembed/tests/test_connect.js @@ -0,0 +1,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(); |