summaryrefslogtreecommitdiffstats
path: root/kjsembed/docs/examples/treeview/tree2.js
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-05 15:55:57 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-05 15:55:57 -0600
commit9ba04742771370f59740e32e11c5f3a1e6a1b70a (patch)
treec81c34dae2b3b1ea73801bf18a960265dc4207f7 /kjsembed/docs/examples/treeview/tree2.js
parent1a96c45b22d01378202d9dc7ed9c47acd30f966e (diff)
downloadtdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.tar.gz
tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.zip
Initial TQt conversion
Diffstat (limited to 'kjsembed/docs/examples/treeview/tree2.js')
-rw-r--r--kjsembed/docs/examples/treeview/tree2.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/kjsembed/docs/examples/treeview/tree2.js b/kjsembed/docs/examples/treeview/tree2.js
index d8b8e09d..0999101f 100644
--- a/kjsembed/docs/examples/treeview/tree2.js
+++ b/kjsembed/docs/examples/treeview/tree2.js
@@ -1,10 +1,10 @@
#!/usr/bin/env kjscmd
-// Demo that creates a tree from a ui file using QHBox and QBox.
+// Demo that creates a tree from a ui file using TQHBox and TQBox.
function create_item( node, parent )
{
- var l = new QLabel( parent );
+ var l = new TQLabel( parent );
l.paletteBackgroundColor = '#aaaaee';
l.frameShape = 1;
l.frameWidth = 1;
@@ -16,7 +16,7 @@ function create_item( node, parent )
function create_subtree_layout( parent )
{
- var vb = new QVBox( parent );
+ var vb = new TQVBox( parent );
vb.margin = 12;
return vb;
@@ -24,7 +24,7 @@ function create_subtree_layout( parent )
function create_child_layout( parent )
{
- var hb = new QHBox( parent );
+ var hb = new TQHBox( parent );
hb.margin = 6;
return hb;
@@ -48,7 +48,7 @@ function create_tree( node, parent )
}
var ui = Factory.loadui( 'treetest.ui' );
-var top = new QHBox();
+var top = new TQHBox();
create_tree( ui, top );
top.show();