summaryrefslogtreecommitdiffstats
path: root/kjsembed/docs/examples/eventhandling/jsboard.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/eventhandling/jsboard.js
parent1a96c45b22d01378202d9dc7ed9c47acd30f966e (diff)
downloadtdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.tar.gz
tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.zip
Initial TQt conversion
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();