summaryrefslogtreecommitdiffstats
path: root/kjsembed/docs/examples/treeview
diff options
context:
space:
mode:
Diffstat (limited to 'kjsembed/docs/examples/treeview')
-rw-r--r--kjsembed/docs/examples/treeview/showtree.js10
-rw-r--r--kjsembed/docs/examples/treeview/tree2.js10
-rw-r--r--kjsembed/docs/examples/treeview/treetest.ui22
3 files changed, 21 insertions, 21 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();
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();
diff --git a/kjsembed/docs/examples/treeview/treetest.ui b/kjsembed/docs/examples/treeview/treetest.ui
index c645e9c2..4c75034d 100644
--- a/kjsembed/docs/examples/treeview/treetest.ui
+++ b/kjsembed/docs/examples/treeview/treetest.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.1" stdsetdef="1">
<class>Form1</class>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>Form1</cstring>
</property>
@@ -12,7 +12,7 @@
<height>116</height>
</rect>
</property>
- <widget class="QSplitter">
+ <widget class="TQSplitter">
<property name="name">
<cstring>splitter1</cstring>
</property>
@@ -27,7 +27,7 @@
<property name="orientation">
<enum>Horizontal</enum>
</property>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
<cstring>layout1</cstring>
</property>
@@ -35,7 +35,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QPushButton">
+ <widget class="TQPushButton">
<property name="name">
<cstring>pushButton1</cstring>
</property>
@@ -43,7 +43,7 @@
<string>pushButton1</string>
</property>
</widget>
- <widget class="QPushButton">
+ <widget class="TQPushButton">
<property name="name">
<cstring>pushButton2</cstring>
</property>
@@ -51,7 +51,7 @@
<string>pushButton2</string>
</property>
</widget>
- <widget class="QPushButton">
+ <widget class="TQPushButton">
<property name="name">
<cstring>pushButton3</cstring>
</property>
@@ -61,7 +61,7 @@
</widget>
</vbox>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
<cstring>layout3</cstring>
</property>
@@ -69,7 +69,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
<cstring>layout2</cstring>
</property>
@@ -77,7 +77,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QPushButton">
+ <widget class="TQPushButton">
<property name="name">
<cstring>pushButton4</cstring>
</property>
@@ -85,7 +85,7 @@
<string>pushButton4</string>
</property>
</widget>
- <widget class="QPushButton">
+ <widget class="TQPushButton">
<property name="name">
<cstring>pushButton5</cstring>
</property>
@@ -95,7 +95,7 @@
</widget>
</hbox>
</widget>
- <widget class="QPushButton">
+ <widget class="TQPushButton">
<property name="name">
<cstring>pushButton6</cstring>
</property>