summaryrefslogtreecommitdiffstats
path: root/kjsembed/docs/examples/eventhandling/jsboard.js
diff options
context:
space:
mode:
Diffstat (limited to 'kjsembed/docs/examples/eventhandling/jsboard.js')
-rw-r--r--kjsembed/docs/examples/eventhandling/jsboard.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/kjsembed/docs/examples/eventhandling/jsboard.js b/kjsembed/docs/examples/eventhandling/jsboard.js
index 91e9a0f2..03dc01e3 100644
--- a/kjsembed/docs/examples/eventhandling/jsboard.js
+++ b/kjsembed/docs/examples/eventhandling/jsboard.js
@@ -1,7 +1,7 @@
#!/usr/bin/env kjscmd
// Globals
-var frame = new QFrame(this);
+var frame = new TQFrame(this);
var labels = new Array();
var startPos = new Point(0,0);
var lastPos = new Point(0,0);
@@ -23,7 +23,7 @@ function Target( parent, text)
var w = 100;
var h = 100;
- this.label = new QLabel(parent);
+ this.label = new TQLabel(parent);
this.text = text;
this.label.paletteBackgroundColor = "green";
this.label.geometry = new Rect(x,y,w,h);
@@ -37,15 +37,15 @@ function Target( parent, text)
function Block(parent,text)
{
- this.label = new QLabel(parent);
+ this.label = new TQLabel(parent);
var x = Math.floor( Math.random() * parent.width );
var y = Math.floor( Math.random() * parent.height );
var w = 25;
var h = 25;
this.label.text = text;
this.label.geometry = new Rect(x,y,w,h);
- this.label.frameShape = QFrame.WinPanel;
- this.label.frameShadow = QFrame.Plain;
+ this.label.frameShape = TQFrame.WinPanel;
+ this.label.frameShadow = TQFrame.Plain;
this.label.paletteBackgroundColor = "white";
this.label.setMouseTracking(true);
this.label.adjustSize();