summaryrefslogtreecommitdiffstats
path: root/kjsembed/docs/examples/eventhandling
diff options
context:
space:
mode:
Diffstat (limited to 'kjsembed/docs/examples/eventhandling')
-rw-r--r--kjsembed/docs/examples/eventhandling/jsboard.js10
-rw-r--r--kjsembed/docs/examples/eventhandling/mousetrack.js2
-rw-r--r--kjsembed/docs/examples/eventhandling/scribble.js2
3 files changed, 7 insertions, 7 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();
diff --git a/kjsembed/docs/examples/eventhandling/mousetrack.js b/kjsembed/docs/examples/eventhandling/mousetrack.js
index 9c970c42..0bf427c8 100644
--- a/kjsembed/docs/examples/eventhandling/mousetrack.js
+++ b/kjsembed/docs/examples/eventhandling/mousetrack.js
@@ -5,7 +5,7 @@
//
-var mousetrack = new QWidget(this);
+var mousetrack = new TQWidget(this);
mousetrack.setMouseTracking(true);
x=0;
y=0;
diff --git a/kjsembed/docs/examples/eventhandling/scribble.js b/kjsembed/docs/examples/eventhandling/scribble.js
index 0ffcdb07..95fafe7c 100644
--- a/kjsembed/docs/examples/eventhandling/scribble.js
+++ b/kjsembed/docs/examples/eventhandling/scribble.js
@@ -5,7 +5,7 @@
//
-var scribble = new QWidget(this);
+var scribble = new TQWidget(this);
scribble.line=false;
var x=0;
var y=0;