diff options
Diffstat (limited to 'kjsembed/docs/examples/connect-cpp/connect-cpp.js')
-rw-r--r-- | kjsembed/docs/examples/connect-cpp/connect-cpp.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/kjsembed/docs/examples/connect-cpp/connect-cpp.js b/kjsembed/docs/examples/connect-cpp/connect-cpp.js index c79d1dea..2eab8db8 100644 --- a/kjsembed/docs/examples/connect-cpp/connect-cpp.js +++ b/kjsembed/docs/examples/connect-cpp/connect-cpp.js @@ -2,10 +2,10 @@ function item( parent ) { - var hbox = new QHBox( parent ); + var hbox = new TQHBox( parent ); var led = new KLed( hbox ); - var btn = new QCheckBox( hbox ); + var btn = new TQCheckBox( hbox ); btn.checked = true; btn.text = 'Toggle LED'; @@ -18,17 +18,17 @@ function item( parent ) led.connect( btn, 'toggled(bool)', 'toggle()' ); } -var vbox = new QVBox( 'test' ); +var vbox = new TQVBox( 'test' ); vbox.margin = 6; vbox.spacing = 4; -var ttl = new QLabel( vbox ); +var ttl = new TQLabel( vbox ); ttl.text = '<h1>Connections</h1>'; for ( var i = 0 ; i < 10 ; i++ ) item( vbox ); -var quit = new QPushButton( vbox ); +var quit = new TQPushButton( vbox ); quit.text = '&Quit'; vbox.connect( quit, 'clicked()', 'close()' ); |