summaryrefslogtreecommitdiffstats
path: root/kate/kjswrapper/samples
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-18 17:00:31 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-18 17:00:31 +0000
commit395a904bff7b4d6ead445c342f7ac0c5fbf29121 (patch)
tree9829cadb79d2cc7c29a940627fadb28b11e54150 /kate/kjswrapper/samples
parent399f47c376fdf4d19192732a701ea9578d11619d (diff)
downloadtdeaddons-395a904bff7b4d6ead445c342f7ac0c5fbf29121.tar.gz
tdeaddons-395a904bff7b4d6ead445c342f7ac0c5fbf29121.zip
TQt4 port kdeaddons
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaddons@1237404 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kate/kjswrapper/samples')
-rw-r--r--kate/kjswrapper/samples/katekjstest1.js36
1 files changed, 18 insertions, 18 deletions
diff --git a/kate/kjswrapper/samples/katekjstest1.js b/kate/kjswrapper/samples/katekjstest1.js
index 7e4e041..a8b061b 100644
--- a/kate/kjswrapper/samples/katekjstest1.js
+++ b/kate/kjswrapper/samples/katekjstest1.js
@@ -1,7 +1,7 @@
/****************************************************************
First configuration page
****************************************************************/
-function Page1 (parentWidget) {
+function Page1 (tqparentWidget) {
this.defaults=function() {
alert("Defaults has been called");
}
@@ -11,7 +11,7 @@ function Page1 (parentWidget) {
this.reset=function() {
alert("Reset defaults has been called");
}
- box=new QVBox(parentWidget);
+ box=new QVBox(tqparentWidget);
this.button1=new QPushButton(box);
this.button1.text="P1 Button 1";
this.button1.show();
@@ -27,8 +27,8 @@ Page1.fullName="Test1/Page1";
Second configuration page
****************************************************************/
-function Page2 (parentWidget) {
- box=new QVBox(parentWidget);
+function Page2 (tqparentWidget) {
+ box=new QVBox(tqparentWidget);
this.button1=new QPushButton(box);
this.button1.text="P2 Button 1";
this.button1.show();
@@ -44,8 +44,8 @@ Page2.fullName="Test1/Page2";
Third configuration page
****************************************************************/
-function Page3 (parentWidget) {
- box=new QVBox(parentWidget);
+function Page3 (tqparentWidget) {
+ box=new QVBox(tqparentWidget);
this.button1=new QPushButton(box);
this.button1.text="P3 Button 1";
this.button1.show();
@@ -62,11 +62,11 @@ Page3.fullName="Test1/Page3";
First toolview
****************************************************************/
-function MyToolView1 (mainwindow,parentwidget) {
- parentwidget.caption="This is my first JS Toolview";
- parentwidget.icon=StdIcons.BarIcon("yes");
+function MyToolView1 (mainwindow,tqparentwidget) {
+ tqparentwidget.caption="This is my first JS Toolview";
+ tqparentwidget.icon=StdIcons.BarIcon("yes");
- this.lv = new KListView( parentwidget );
+ this.lv = new KListView( tqparentwidget );
this.lv.addColumn('Pix');
this.lv.addColumn('One');
@@ -99,11 +99,11 @@ MyToolView1.name="myfirstjstoolview"
Second toolview
****************************************************************/
-function MyToolView2 (mainwindow,parentwidget) {
- parentwidget.caption="This is my second JS Toolview";
- parentwidget.icon=StdIcons.BarIcon("no");
+function MyToolView2 (mainwindow,tqparentwidget) {
+ tqparentwidget.caption="This is my second JS Toolview";
+ tqparentwidget.icon=StdIcons.BarIcon("no");
- this.lb=new QListBox(parentwidget);
+ this.lb=new QListBox(tqparentwidget);
this.mainwindow=mainwindow;
this.cleanup=function() {
alert("Cleanup MyToolView2");
@@ -121,11 +121,11 @@ MyToolView2.name="mysecondjstoolview"
function newWindowCallBack(mainwindow) {
alert("New Window has been created");
/*
- anotherToolView = function (mainwindow,parentwidget) {
- parentwidget.caption="This is my third JS Toolview";
- parentwidget.icon=StdIcons.BarIcon("kate");
+ anotherToolView = function (mainwindow,tqparentwidget) {
+ tqparentwidget.caption="This is my third JS Toolview";
+ tqparentwidget.icon=StdIcons.BarIcon("kate");
- this.lb=new QListBox(parentwidget);
+ this.lb=new QListBox(tqparentwidget);
this.mainwindow=mainwindow;
this.cleanup=function() {
alert("Cleanup MyToolView3");