summaryrefslogtreecommitdiffstats
path: root/kjsembed/tests
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/tests
parent1a96c45b22d01378202d9dc7ed9c47acd30f966e (diff)
downloadtdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.tar.gz
tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.zip
Initial TQt conversion
Diffstat (limited to 'kjsembed/tests')
-rw-r--r--kjsembed/tests/dcop.js6
-rw-r--r--kjsembed/tests/plugin.js2
-rw-r--r--kjsembed/tests/test.ui16
-rw-r--r--kjsembed/tests/test_childevent.js12
-rw-r--r--kjsembed/tests/test_connect.js4
-rw-r--r--kjsembed/tests/test_connectsignal.js6
-rw-r--r--kjsembed/tests/test_customslots.js4
-rw-r--r--kjsembed/tests/test_datetime.js2
-rwxr-xr-xkjsembed/tests/test_dcop_interface.js4
-rw-r--r--kjsembed/tests/test_dcopref2.js2
-rw-r--r--kjsembed/tests/test_dcopstart.js2
-rwxr-xr-xkjsembed/tests/test_gc.js4
-rwxr-xr-xkjsembed/tests/test_kio.js2
-rw-r--r--kjsembed/tests/test_kparts_args.js2
-rw-r--r--kjsembed/tests/test_kropart.js2
-rw-r--r--kjsembed/tests/test_pixmap_slots.js2
-rw-r--r--kjsembed/tests/test_popupmenu.js4
-rw-r--r--kjsembed/tests/test_qcanvas.js12
-rw-r--r--kjsembed/tests/test_qcombobox.js4
-rw-r--r--kjsembed/tests/test_qdir.js2
-rw-r--r--kjsembed/tests/test_qframe.js18
-rw-r--r--kjsembed/tests/test_qlistview.js10
-rwxr-xr-xkjsembed/tests/test_qtabctl.js12
-rw-r--r--kjsembed/tests/test_qtimeedit.js4
-rw-r--r--kjsembed/tests/test_qtimeedit2.js8
-rwxr-xr-xkjsembed/tests/test_qtoolbox.js8
-rw-r--r--kjsembed/tests/test_splashscreen.js4
27 files changed, 79 insertions, 79 deletions
diff --git a/kjsembed/tests/dcop.js b/kjsembed/tests/dcop.js
index 03e8ac87..7f0643cf 100644
--- a/kjsembed/tests/dcop.js
+++ b/kjsembed/tests/dcop.js
@@ -10,7 +10,7 @@ if ( d.attach())
if( d.isAttached() )
{
println( "send test..." )
- if (d.send( "kded","kmilod", "displayText(QString)", "Test") )
+ if (d.send( "kded","kmilod", "displayText(TQString)", "Test") )
println("send worked...");
else
println("send failed...");
@@ -18,11 +18,11 @@ if ( d.attach())
var dta = d.call( "kded","kmilod", "pollMilliSeconds()");
println( dta );
println( "call test with args" )
- var dta = d.call( "KWeatherService","WeatherService", "wind(QString)", "KMKE");
+ var dta = d.call( "KWeatherService","WeatherService", "wind(TQString)", "KMKE");
println( dta );
- var ref = d.call("rssservice", "RSSService", "add(QString)", "http://www.freshmeat.net/rdf.xml");
+ var ref = d.call("rssservice", "RSSService", "add(TQString)", "http://www.freshmeat.net/rdf.xml");
if( ref )
{
println( "Got ref");
diff --git a/kjsembed/tests/plugin.js b/kjsembed/tests/plugin.js
index 04d91a4f..900856b0 100644
--- a/kjsembed/tests/plugin.js
+++ b/kjsembed/tests/plugin.js
@@ -29,7 +29,7 @@ if( foo2.mode() == foo1.On )
}
-var foo4 = new MyCustomQObject(this);
+var foo4 = new MyCustomTQObject(this);
foo4.mode = foo4.On;
foo4.thing = "Test";
diff --git a/kjsembed/tests/test.ui b/kjsembed/tests/test.ui
index fb9cdc26..477d8c2d 100644
--- a/kjsembed/tests/test.ui
+++ b/kjsembed/tests/test.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.1" stdsetdef="1">
<class>Form1</class>
-<widget class="QDialog">
+<widget class="TQDialog">
<property name="name">
<cstring>Form1</cstring>
</property>
@@ -22,7 +22,7 @@
<property name="spacing">
<number>6</number>
</property>
- <widget class="QLabel" row="0" column="0" rowspan="1" colspan="3">
+ <widget class="TQLabel" row="0" column="0" rowspan="1" colspan="3">
<property name="name">
<cstring>TextLabel1</cstring>
</property>
@@ -30,12 +30,12 @@
<string>&lt;h1&gt;Test Dialog&lt;/h1&gt;</string>
</property>
</widget>
- <widget class="QDateEdit" row="2" column="1" rowspan="1" colspan="2">
+ <widget class="TQDateEdit" row="2" column="1" rowspan="1" colspan="2">
<property name="name">
<cstring>DateEdit1</cstring>
</property>
</widget>
- <widget class="QLabel" row="1" column="0">
+ <widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>TextLabel2</cstring>
</property>
@@ -43,7 +43,7 @@
<string>Line edit:</string>
</property>
</widget>
- <widget class="QTimeEdit" row="3" column="1" rowspan="1" colspan="2">
+ <widget class="TQTimeEdit" row="3" column="1" rowspan="1" colspan="2">
<property name="name">
<cstring>TimeEdit1</cstring>
</property>
@@ -53,7 +53,7 @@
<cstring>KLineEdit1</cstring>
</property>
</widget>
- <widget class="QLabel" row="2" column="0">
+ <widget class="TQLabel" row="2" column="0">
<property name="name">
<cstring>TextLabel2_3</cstring>
</property>
@@ -61,7 +61,7 @@
<string>Date edit:</string>
</property>
</widget>
- <widget class="QLabel" row="3" column="0">
+ <widget class="TQLabel" row="3" column="0">
<property name="name">
<cstring>TextLabel2_4</cstring>
</property>
@@ -86,7 +86,7 @@
</size>
</property>
</spacer>
- <widget class="QPushButton" row="4" column="2">
+ <widget class="TQPushButton" row="4" column="2">
<property name="name">
<cstring>pushButton1</cstring>
</property>
diff --git a/kjsembed/tests/test_childevent.js b/kjsembed/tests/test_childevent.js
index 363f3492..d1ef2746 100644
--- a/kjsembed/tests/test_childevent.js
+++ b/kjsembed/tests/test_childevent.js
@@ -1,15 +1,15 @@
#!/usr/bin/env kjscmd
/**
- * Test of QChildEvent handling. This example will not work at the moment
+ * Test of TQChildEvent handling. This example will not work at the moment
* because support for these events is disabled. The problem occurs because we
* reenter the interpreter if the object was created by js.
*/
-var top = new QVBox();
-var hbox = new QHBox(top, 'button_hbox');
-var add = new QPushButton(hbox, 'add_button');
-var del = new QPushButton(hbox, 'del_button');
+var top = new TQVBox();
+var hbox = new TQHBox(top, 'button_hbox');
+var add = new TQPushButton(hbox, 'add_button');
+var del = new TQPushButton(hbox, 'del_button');
add.text = 'Add';
del.text = 'Delete';
@@ -26,7 +26,7 @@ top.childRemoveEvent = function(ev)
top.addSlot = function()
{
- l = new QLabel( this, 'demo_label' );
+ l = new TQLabel( this, 'demo_label' );
l.text = 'Hello World';
l.show();
}
diff --git a/kjsembed/tests/test_connect.js b/kjsembed/tests/test_connect.js
index abeb14bb..fbd0aae4 100644
--- a/kjsembed/tests/test_connect.js
+++ b/kjsembed/tests/test_connect.js
@@ -1,9 +1,9 @@
-var box = new QHBox( 'tree_view' );
+var box = new TQHBox( 'tree_view' );
box.margin = 6;
var led = new KLed( box );
-var btn = new QCheckBox(box);
+var btn = new TQCheckBox(box);
btn.text = 'Light'
btn.connect( 'toggled(bool)', led, 'toggle()' );
diff --git a/kjsembed/tests/test_connectsignal.js b/kjsembed/tests/test_connectsignal.js
index e0392375..0e6bff5f 100644
--- a/kjsembed/tests/test_connectsignal.js
+++ b/kjsembed/tests/test_connectsignal.js
@@ -1,9 +1,9 @@
-var box = new QHBox( 'tree_view' );
+var box = new TQHBox( 'tree_view' );
box.margin = 6;
var led = new KLed( box );
-var check = new QCheckBox(box);
-var check2 = new QCheckBox(box);
+var check = new TQCheckBox(box);
+var check2 = new TQCheckBox(box);
check.text = 'Light';
check2.text = 'Bounce';
diff --git a/kjsembed/tests/test_customslots.js b/kjsembed/tests/test_customslots.js
index 0c1dd05c..9500a4d2 100644
--- a/kjsembed/tests/test_customslots.js
+++ b/kjsembed/tests/test_customslots.js
@@ -1,7 +1,7 @@
#!/usr/bin/env kjscmd
-var dateTime = new QDateTimeEdit(this);
-dateTime.connect( dateTime, 'valueChanged(const QDateTime&)', this, 'changed');
+var dateTime = new TQDateTimeEdit(this);
+dateTime.connect( dateTime, 'valueChanged(const TQDateTime&)', this, 'changed');
var jsDate = new Date();
dateTime.setDateTime( jsDate );
diff --git a/kjsembed/tests/test_datetime.js b/kjsembed/tests/test_datetime.js
index b35853ad..417e9844 100644
--- a/kjsembed/tests/test_datetime.js
+++ b/kjsembed/tests/test_datetime.js
@@ -1,7 +1,7 @@
#!/usr/bin/env kjscmd
var realDate = new Date();
-var dtEdit = new QDateTimeEdit(this);
+var dtEdit = new TQDateTimeEdit(this);
dtEdit.dateTime = realDate;
var dt = dtEdit.dateTime;
diff --git a/kjsembed/tests/test_dcop_interface.js b/kjsembed/tests/test_dcop_interface.js
index f0da8c27..37c11d5d 100755
--- a/kjsembed/tests/test_dcop_interface.js
+++ b/kjsembed/tests/test_dcop_interface.js
@@ -37,9 +37,9 @@ function makeRef()
var dcop = new DCOPInterface(this, "someInterface"); // Create the DCOP object.
dcop.publish("void exitJavascript(int)"); // Publish a javascript function.
-dcop.publish("QString doSomthing(QString,int)"); // Publish another javascript function.
+dcop.publish("TQString doSomthing(TQString,int)"); // Publish another javascript function.
dcop.publish("int test()");
-dcop.publish("QPixmap pixmap(QString)");
+dcop.publish("TQPixmap pixmap(TQString)");
dcop.publish("DCOPRef makeRef()");
application.exec(); // Start the event loop
diff --git a/kjsembed/tests/test_dcopref2.js b/kjsembed/tests/test_dcopref2.js
index 02cd3df3..349364d0 100644
--- a/kjsembed/tests/test_dcopref2.js
+++ b/kjsembed/tests/test_dcopref2.js
@@ -11,7 +11,7 @@ if ( d.attach())
{
var ref = new DCOPRef();
ref.setRef( "KWeatherService", "WeatherService" );
- println ( ref.call( "date(QString)", "KMKE") );
+ println ( ref.call( "date(TQString)", "KMKE") );
}
else
diff --git a/kjsembed/tests/test_dcopstart.js b/kjsembed/tests/test_dcopstart.js
index e2dee415..abba0e9f 100644
--- a/kjsembed/tests/test_dcopstart.js
+++ b/kjsembed/tests/test_dcopstart.js
@@ -11,7 +11,7 @@ if ( d.attach())
if( app != "" )
{
println( "Got ref");
- var worked = d.send(app, "EditInterface#1","setText(QString)", "This is a test");
+ var worked = d.send(app, "EditInterface#1","setText(TQString)", "This is a test");
println("Returned a : " + worked);
}
else
diff --git a/kjsembed/tests/test_gc.js b/kjsembed/tests/test_gc.js
index aa1e11af..b3885c53 100755
--- a/kjsembed/tests/test_gc.js
+++ b/kjsembed/tests/test_gc.js
@@ -3,14 +3,14 @@ var arr = new Array();
for( var idx = 0; idx < 500; ++idx )
{
- arr[idx] = new QLabel(this);
+ arr[idx] = new TQLabel(this);
arr[idx].text = "foo " + idx;
}
for( var idx = 0; idx < 500; ++idx )
{
println( arr[idx].text );
- arr[idx] = new QLabel(this);
+ arr[idx] = new TQLabel(this);
arr[idx].text = "bar " + idx;
}
diff --git a/kjsembed/tests/test_kio.js b/kjsembed/tests/test_kio.js
index 11bd6a1c..0c0125e5 100755
--- a/kjsembed/tests/test_kio.js
+++ b/kjsembed/tests/test_kio.js
@@ -17,7 +17,7 @@ if ( ret ) {
} else {
print( 'Image ' + loc + ' is OK \n' );
}
- var lbl = new QLabel(this);
+ var lbl = new TQLabel(this);
lbl.pixmap = img.pixmap();
lbl.show();
}
diff --git a/kjsembed/tests/test_kparts_args.js b/kjsembed/tests/test_kparts_args.js
index aee1745e..a719590a 100644
--- a/kjsembed/tests/test_kparts_args.js
+++ b/kjsembed/tests/test_kparts_args.js
@@ -1,7 +1,7 @@
#!/usr/bin/env kjscmd
var mw = new KMainWindow();
-var box = new QVBox( mw );
+var box = new TQVBox( mw );
mw.setCentralWidget( box );
var args = [ "WIDTH=300", "HEIGHT=250", "CODE=TestApplet.class", "CLASSPATH=.", "TEXT=Foobar" ]
diff --git a/kjsembed/tests/test_kropart.js b/kjsembed/tests/test_kropart.js
index 1e2d4344..8867580e 100644
--- a/kjsembed/tests/test_kropart.js
+++ b/kjsembed/tests/test_kropart.js
@@ -1,4 +1,4 @@
-var box = new QHBox( this );
+var box = new TQHBox( this );
var view = Factory.createROPart( "cat", box, "view" );
box.show();
diff --git a/kjsembed/tests/test_pixmap_slots.js b/kjsembed/tests/test_pixmap_slots.js
index f2ca40fa..db32ace2 100644
--- a/kjsembed/tests/test_pixmap_slots.js
+++ b/kjsembed/tests/test_pixmap_slots.js
@@ -4,7 +4,7 @@ var img = new Image();
img.load("test.png");
var pix = img.pixmap();
-var btn = new QToolButton(this);
+var btn = new TQToolButton(this);
btn.pixmap = pix;
btn.setIcon( pix );
btn.show();
diff --git a/kjsembed/tests/test_popupmenu.js b/kjsembed/tests/test_popupmenu.js
index 6d60231c..376ac638 100644
--- a/kjsembed/tests/test_popupmenu.js
+++ b/kjsembed/tests/test_popupmenu.js
@@ -1,6 +1,6 @@
#!/usr/bin/env kjscmd
-var menu = new QPopupMenu(this);
-var subMenu = new QPopupMenu(menu);
+var menu = new TQPopupMenu(this);
+var subMenu = new TQPopupMenu(menu);
var pix = new Pixmap();
pix.resize(12,12);
pix.fill("blue");
diff --git a/kjsembed/tests/test_qcanvas.js b/kjsembed/tests/test_qcanvas.js
index c5ffd7f9..4e17a5ce 100644
--- a/kjsembed/tests/test_qcanvas.js
+++ b/kjsembed/tests/test_qcanvas.js
@@ -1,24 +1,24 @@
#!/usr/bin/env kjscmd
-c = new QCanvas();
+c = new TQCanvas();
-item = new QCanvasText( '<font="blue">hi</font>', c );
+item = new TQCanvasText( '<font="blue">hi</font>', c );
item.move( 50, 50 );
item.show();
-item = new QCanvasText( '<font="blue">hi</font>', c );
+item = new TQCanvasText( '<font="blue">hi</font>', c );
item.move( 150, 50 );
item.show();
-item = new QCanvasText( '<font="blue">hixxx</font>', c );
+item = new TQCanvasText( '<font="blue">hixxx</font>', c );
item.move( 50, 150 );
item.show();
-item = new QCanvasText( '<font="blue">hixxxxxxx</font>', c );
+item = new TQCanvasText( '<font="blue">hixxxxxxx</font>', c );
item.move( 150, 150 );
item.show();
-view = new QCanvasView();
+view = new TQCanvasView();
view.setCanvas( c );
view.update();
diff --git a/kjsembed/tests/test_qcombobox.js b/kjsembed/tests/test_qcombobox.js
index 03111692..d8a9790a 100644
--- a/kjsembed/tests/test_qcombobox.js
+++ b/kjsembed/tests/test_qcombobox.js
@@ -1,5 +1,5 @@
-var h=new QHBox(this);
-var combo = new QComboBox(h, "combo");
+var h=new TQHBox(this);
+var combo = new TQComboBox(h, "combo");
combo.insertItem("Item 1");
combo.insertItem("Item 2");
combo.insertItem("Item 3");
diff --git a/kjsembed/tests/test_qdir.js b/kjsembed/tests/test_qdir.js
index c51f15e0..8b214fb9 100644
--- a/kjsembed/tests/test_qdir.js
+++ b/kjsembed/tests/test_qdir.js
@@ -1,6 +1,6 @@
#!/usr/bin/env kjscmd
-var dir = new QDir(); // CWD
+var dir = new TQDir(); // CWD
println( dir.path() );
var files = dir.entryList( '*.js' );
diff --git a/kjsembed/tests/test_qframe.js b/kjsembed/tests/test_qframe.js
index 218b2e7f..cf888b23 100644
--- a/kjsembed/tests/test_qframe.js
+++ b/kjsembed/tests/test_qframe.js
@@ -1,27 +1,27 @@
#!/usr/bin/env kjscmd
var mw = new KMainWindow(this);
-var hbox = new QHBox( mw );
+var hbox = new TQHBox( mw );
-var f1 = new QLabel( hbox );
-f1.frameShape = QLabel.Box;
-f1.frameShadow = QLabel.Raised;
+var f1 = new TQLabel( hbox );
+f1.frameShape = TQLabel.Box;
+f1.frameShadow = TQLabel.Raised;
f1.lineWidth = 4;
f1.margin = 4;
f1.midLineWidth = 1;
f1.paletteBackgroundColor = "red";
f1.text = "Frame 1";
-var f2 = new QLabel( hbox );
-f2.frameShape = QLabel.WinPanel;
-f2.frameShadow = QLabel.Sunken;
+var f2 = new TQLabel( hbox );
+f2.frameShape = TQLabel.WinPanel;
+f2.frameShadow = TQLabel.Sunken;
f2.lineWidth = 4;
f2.margin = 4;
f2.midLineWidth = 1;
f2.paletteBackgroundColor = "white";
f2.text = "Frame 2";
-var f3 = new QLabel( hbox );
-f3.frameShape = QLabel.Box;
+var f3 = new TQLabel( hbox );
+f3.frameShape = TQLabel.Box;
f3.lineWidth = 4;
f3.margin = 4;
f3.midLineWidth = 1;
diff --git a/kjsembed/tests/test_qlistview.js b/kjsembed/tests/test_qlistview.js
index 2f8f37bf..cec1ef55 100644
--- a/kjsembed/tests/test_qlistview.js
+++ b/kjsembed/tests/test_qlistview.js
@@ -1,21 +1,21 @@
-var lv = new QListView();
+var lv = new TQListView();
lv.rootIsDecorated = true;
lv.addColumn('Name');
lv.addColumn('Description');
-var i = new QListViewItem( lv );
+var i = new TQListViewItem( lv );
i.setText( 0, 'One' );
i.setText( 1, 'First item' );
-var j = new QListViewItem( lv );
+var j = new TQListViewItem( lv );
j.setText( 0, 'Two' );
j.setText( 1, 'Second item' );
-var k = new QListViewItem( i );
+var k = new TQListViewItem( i );
k.setText( 0, 'Three' );
k.setText( 1, 'Third item' );
-var l = new QCheckListItem( lv );
+var l = new TQCheckListItem( lv );
l.setText(0, 'Four' );
lv.show();
diff --git a/kjsembed/tests/test_qtabctl.js b/kjsembed/tests/test_qtabctl.js
index 60eebfdf..bb4ff563 100755
--- a/kjsembed/tests/test_qtabctl.js
+++ b/kjsembed/tests/test_qtabctl.js
@@ -1,13 +1,13 @@
#!/usr/bin/env kjscmd
-var vbox = new QVBox();
-var tw = new QTabWidget(vbox);
-var okButton = new QToolButton(vbox);
+var vbox = new TQVBox();
+var tw = new TQTabWidget(vbox);
+var okButton = new TQToolButton(vbox);
okButton.text = "Ok";
-var c1 = new QToolButton( tw );
-var c2 = new QToolButton( tw );
+var c1 = new TQToolButton( tw );
+var c2 = new TQToolButton( tw );
function tabchanged(q) {
alert( "Tab Changed, " + q.text );
@@ -19,7 +19,7 @@ c2.text = "Tab2's button";
tw.addTab(c1, "1");
tw.addTab(c2, "2");
-vbox.connect(tw, "currentChanged(QWidget*)", this, "tabchanged");
+vbox.connect(tw, "currentChanged(TQWidget*)", this, "tabchanged");
vbox.connect(okButton, "clicked()", this, "exit");
vbox.show();
diff --git a/kjsembed/tests/test_qtimeedit.js b/kjsembed/tests/test_qtimeedit.js
index 632c4929..1dc91c7d 100644
--- a/kjsembed/tests/test_qtimeedit.js
+++ b/kjsembed/tests/test_qtimeedit.js
@@ -1,5 +1,5 @@
-var h = new QHBox(this);
-var dt = new QTimeEdit(h, 'tc');
+var h = new TQHBox(this);
+var dt = new TQTimeEdit(h, 'tc');
var n = new Date(); // now
dt.time = n; // set the control to now
diff --git a/kjsembed/tests/test_qtimeedit2.js b/kjsembed/tests/test_qtimeedit2.js
index 825fa10f..c69e24c3 100644
--- a/kjsembed/tests/test_qtimeedit2.js
+++ b/kjsembed/tests/test_qtimeedit2.js
@@ -1,13 +1,13 @@
-var vbox=new QVBox();
-var te=new QTimeEdit(vbox);
-var okButton=new QToolButton(vbox);
+var vbox=new TQVBox();
+var te=new TQTimeEdit(vbox);
+var okButton=new TQToolButton(vbox);
okButton.text="Ok";
function TimeChanged(q) {
alert("Time Changed: " +q);
}
-vbox.connect(te, "valueChanged(const QTime&)", this, "TimeChanged");
+vbox.connect(te, "valueChanged(const TQTime&)", this, "TimeChanged");
vbox.connect(okButton, "clicked()", this, "exit");
vbox.show();
application.exec();
diff --git a/kjsembed/tests/test_qtoolbox.js b/kjsembed/tests/test_qtoolbox.js
index c56e1d4a..31f5b1f2 100755
--- a/kjsembed/tests/test_qtoolbox.js
+++ b/kjsembed/tests/test_qtoolbox.js
@@ -1,10 +1,10 @@
#!/usr/bin/env kjscmd
-var vbox = new QVBox(this);
-var tb = new QToolBox(vbox);
+var vbox = new TQVBox(this);
+var tb = new TQToolBox(vbox);
-var c1 = new QPushButton( tb );
-var c2 = new QPushButton( tb );
+var c1 = new TQPushButton( tb );
+var c2 = new TQPushButton( tb );
function itemchanged(idx) {
alert( "Tab Changed, " + tb.item(idx).text );
diff --git a/kjsembed/tests/test_splashscreen.js b/kjsembed/tests/test_splashscreen.js
index bb465df0..fe2477b5 100644
--- a/kjsembed/tests/test_splashscreen.js
+++ b/kjsembed/tests/test_splashscreen.js
@@ -1,5 +1,5 @@
-var lab = new QLabel(this);
-var splash = new QSplashScreen(this);
+var lab = new TQLabel(this);
+var splash = new TQSplashScreen(this);
var pix = new Pixmap();
pix.resize(128,128);
pix.fill("blue");