summaryrefslogtreecommitdiffstats
path: root/kjsembed/docs/examples/dcop
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/dcop
parent1a96c45b22d01378202d9dc7ed9c47acd30f966e (diff)
downloadtdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.tar.gz
tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.zip
Initial TQt conversion
Diffstat (limited to 'kjsembed/docs/examples/dcop')
-rwxr-xr-xkjsembed/docs/examples/dcop/interface.js4
-rwxr-xr-xkjsembed/docs/examples/dcop/rss.js8
-rwxr-xr-xkjsembed/docs/examples/dcop/signalslot.js14
-rwxr-xr-xkjsembed/docs/examples/dcop/weather.js4
4 files changed, 15 insertions, 15 deletions
diff --git a/kjsembed/docs/examples/dcop/interface.js b/kjsembed/docs/examples/dcop/interface.js
index ed699768..8e8fad0b 100755
--- a/kjsembed/docs/examples/dcop/interface.js
+++ b/kjsembed/docs/examples/dcop/interface.js
@@ -11,7 +11,7 @@ function anotherInterface( bar )
}
var dcop = new DCOPInterface(this, "someInterface");
-dcop.publish("void someInterface(QString)");
-dcop.publish("QString anotherInterface(QString)");
+dcop.publish("void someInterface(TQString)");
+dcop.publish("TQString anotherInterface(TQString)");
application.exec();
diff --git a/kjsembed/docs/examples/dcop/rss.js b/kjsembed/docs/examples/dcop/rss.js
index c1eb3882..7ec9f2eb 100755
--- a/kjsembed/docs/examples/dcop/rss.js
+++ b/kjsembed/docs/examples/dcop/rss.js
@@ -3,9 +3,9 @@
function newArticles( articles )
{
- var box = new QVBox(main);
+ var box = new TQVBox(main);
var count = articles.call("count()");
- var label = new QLabel(box);
+ var label = new TQLabel(box);
var list = new KListBox(box);
@@ -19,7 +19,7 @@ function newArticles( articles )
return true;
}
-var main = new QHBox(this)
+var main = new TQHBox(this)
var dcop = new DCOPInterface(this, "news");
dcop.publish("void newArticles(DCOPRef)");
@@ -28,7 +28,7 @@ var feeds = client.call( "rssservice", "RSSService", "list()" );
for( var idx = 0; idx < feeds.length; ++idx)
{
- var doc = client.call( "rssservice", "RSSService", "add(QString)", feeds[idx] );
+ var doc = client.call( "rssservice", "RSSService", "add(TQString)", feeds[idx] );
client.connectDCOPSignal("rssservice", doc.obj(), "documentUpdated(DCOPRef)",
"news","newArticles(DCOPRef)");
doc.call("refresh()");
diff --git a/kjsembed/docs/examples/dcop/signalslot.js b/kjsembed/docs/examples/dcop/signalslot.js
index 884faa29..6774854c 100755
--- a/kjsembed/docs/examples/dcop/signalslot.js
+++ b/kjsembed/docs/examples/dcop/signalslot.js
@@ -2,9 +2,9 @@
function newWeather( station )
{
- var temp = client.call("KWeatherService", "WeatherService", "temperature(QString)", "KMKE");
- var name = client.call("KWeatherService", "WeatherService", "stationName(QString)", "KMKE");
- var label = new QLabel(this);
+ var temp = client.call("KWeatherService", "WeatherService", "temperature(TQString)", "KMKE");
+ var name = client.call("KWeatherService", "WeatherService", "stationName(TQString)", "KMKE");
+ var label = new TQLabel(this);
label.text = "The temperature at " + name + " is " + temp;
label.show();
}
@@ -13,13 +13,13 @@ var client = new DCOPClient(this);
if ( client.attach() )
{
var dcop = new DCOPInterface(this, "weather");
- dcop.publish("void newWeather(QString)");
+ dcop.publish("void newWeather(TQString)");
- client.connectDCOPSignal("KWeatherService", "WeatherService", "fileUpdate(QString)",
- "weather","newWeather(QString)");
+ client.connectDCOPSignal("KWeatherService", "WeatherService", "fileUpdate(TQString)",
+ "weather","newWeather(TQString)");
- client.send("KWeatherService", "WeatherService", "update(QString)", "KMKE");
+ client.send("KWeatherService", "WeatherService", "update(TQString)", "KMKE");
application.exec();
}
diff --git a/kjsembed/docs/examples/dcop/weather.js b/kjsembed/docs/examples/dcop/weather.js
index 8d8a59c3..00c16e0e 100755
--- a/kjsembed/docs/examples/dcop/weather.js
+++ b/kjsembed/docs/examples/dcop/weather.js
@@ -1,7 +1,7 @@
#!/usr/bin/env kjscmd
var dcop = new DCOPClient(this);
-var box = new QHBox(this);
+var box = new TQHBox(this);
var go = new KPushButton(box);
var loc = new KLineEdit(box);
@@ -16,7 +16,7 @@ function getWeather()
if ( dcop.isAttached() )
{
var icn = new Image(this);
- icn.pixmap = dcop.call("KWeatherService","WeatherService","icon(QString)", loc.text);
+ icn.pixmap = dcop.call("KWeatherService","WeatherService","icon(TQString)", loc.text);
icn.smoothScale(32,32);
go.pixmap = icn.pixmap;
}