diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-05 15:55:57 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-05 15:55:57 -0600 |
commit | 9ba04742771370f59740e32e11c5f3a1e6a1b70a (patch) | |
tree | c81c34dae2b3b1ea73801bf18a960265dc4207f7 /kjsembed/docs/examples/customwidget/custom_widget.js | |
parent | 1a96c45b22d01378202d9dc7ed9c47acd30f966e (diff) | |
download | tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.tar.gz tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.zip |
Initial TQt conversion
Diffstat (limited to 'kjsembed/docs/examples/customwidget/custom_widget.js')
-rwxr-xr-x | kjsembed/docs/examples/customwidget/custom_widget.js | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/kjsembed/docs/examples/customwidget/custom_widget.js b/kjsembed/docs/examples/customwidget/custom_widget.js index dbab2d8f..c9df7f29 100755 --- a/kjsembed/docs/examples/customwidget/custom_widget.js +++ b/kjsembed/docs/examples/customwidget/custom_widget.js @@ -6,25 +6,25 @@ function createField( parent ) { - var hbox = new QHBox( box, 'hb' ); + var hbox = new TQHBox( box, 'hb' ); - var label = new QLabel( hbox ); + var label = new TQLabel( hbox ); label.text = 'Filename:'; - var ed = new QLineEdit( hbox, 'lineed' ); + var ed = new TQLineEdit( hbox, 'lineed' ); ed.text = './my_file.txt'; - var pb = new QPushButton( hbox, 'button' ); + var pb = new TQPushButton( hbox, 'button' ); pb.text = 'Br&owse'; var led = new KLed( hbox, 'led' ); } function createGroup( parent ) { - var grp = new QGroupBox( box, 'grp' ); + var grp = new TQGroupBox( box, 'grp' ); grp.columns = 1; - grp.title = 'A QGroupBox'; + grp.title = 'A TQGroupBox'; - var cb1 = new QCheckBox( grp, 'check1' ); - var cb2 = new QCheckBox( grp, 'check2' ); + var cb1 = new TQCheckBox( grp, 'check1' ); + var cb2 = new TQCheckBox( grp, 'check2' ); cb1.text = 'Check Box One'; cb2.text = 'Check Box Two'; @@ -32,20 +32,20 @@ function createGroup( parent ) } // Outer layout -var box = new QVBox(); +var box = new TQVBox(); box.margin = 6; // Title -var ttl = new QLabel( box, 'title' ); +var ttl = new TQLabel( box, 'title' ); ttl.text = '<qt><center><h3>KJSEmbed Object Creation Demo</h3></center><hr></qt>'; // Named field createField( box ); // Text editor -var l = new QLabel( box, 'tl' ); +var l = new TQLabel( box, 'tl' ); l.txt = 'Editable Text Widget:'; -var txt = new QTextEdit( box, 'text_edit' ); +var txt = new TQTextEdit( box, 'text_edit' ); txt.text = '<qt>This is an editable text widget created from <i>Javascript</i> using the ' + '<b>KJSEmbed</b> library. As you can see, the facilities are powerful enough ' + 'for many useful applications to be found.</qt>'; |