summaryrefslogtreecommitdiffstats
path: root/kjsembed/docs/examples/treeview/showtree.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/showtree.js
parent1a96c45b22d01378202d9dc7ed9c47acd30f966e (diff)
downloadtdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.tar.gz
tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.zip
Initial TQt conversion
Diffstat (limited to 'kjsembed/docs/examples/treeview/showtree.js')
-rw-r--r--kjsembed/docs/examples/treeview/showtree.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/kjsembed/docs/examples/treeview/showtree.js b/kjsembed/docs/examples/treeview/showtree.js
index 76872d35..ea6b62d9 100644
--- a/kjsembed/docs/examples/treeview/showtree.js
+++ b/kjsembed/docs/examples/treeview/showtree.js
@@ -2,7 +2,7 @@
function buildViewNode( node, parent )
{
- var l = new QLabel( parent, 'node' );
+ var l = new TQLabel( parent, 'node' );
l.text = '<center><table cellspacing=0>'
+ '<tr><th bgcolor="#aaaaee"><b>' + node.text + '</b></th></tr>'
+ '<tr><td bgcolor="#ccccee">' + node.text + '</td></tr>'
@@ -20,14 +20,14 @@ function buildView( node, parent )
}
// Create container node
- var vbox = new QVBox( parent, 'subtree' );
+ var vbox = new TQVBox( parent, 'subtree' );
vbox.margin = 8;
vbox.spacing = 6;
var vnode = buildViewNode( node, vbox );
// Create children
- var hbox = new QHBox( vbox, 'child_nodes' );
+ var hbox = new TQHBox( vbox, 'child_nodes' );
hbox.spacing = 6;
for ( var i = 0 ; i < node.children.length ; i++ ) {
@@ -57,11 +57,11 @@ root.children[2].children = [ buildNode('One') ];
root.children[2].children = [ buildNode('One'), buildNode('Two'), buildNode('Three') ];
// Create View
-var box = new QVBox( 'tree_view' );
+var box = new TQVBox( 'tree_view' );
box.margin = 6;
var view = buildView( root, box );
-var spacer = new QLabel( box );
+var spacer = new TQLabel( box );
box.show();