diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-05 15:55:57 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-05 15:55:57 -0600 |
commit | 9ba04742771370f59740e32e11c5f3a1e6a1b70a (patch) | |
tree | c81c34dae2b3b1ea73801bf18a960265dc4207f7 /kjsembed/docs/examples/dcop/signalslot.js | |
parent | 1a96c45b22d01378202d9dc7ed9c47acd30f966e (diff) | |
download | tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.tar.gz tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.zip |
Initial TQt conversion
Diffstat (limited to 'kjsembed/docs/examples/dcop/signalslot.js')
-rwxr-xr-x | kjsembed/docs/examples/dcop/signalslot.js | 14 |
1 files changed, 7 insertions, 7 deletions
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(); } |