summaryrefslogtreecommitdiffstats
path: root/korundum/rubylib/examples/dcop/dcopslot.rb
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 /korundum/rubylib/examples/dcop/dcopslot.rb
parent1a96c45b22d01378202d9dc7ed9c47acd30f966e (diff)
downloadtdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.tar.gz
tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.zip
Initial TQt conversion
Diffstat (limited to 'korundum/rubylib/examples/dcop/dcopslot.rb')
-rwxr-xr-xkorundum/rubylib/examples/dcop/dcopslot.rb18
1 files changed, 9 insertions, 9 deletions
diff --git a/korundum/rubylib/examples/dcop/dcopslot.rb b/korundum/rubylib/examples/dcop/dcopslot.rb
index e600dfdb..99fd6fef 100755
--- a/korundum/rubylib/examples/dcop/dcopslot.rb
+++ b/korundum/rubylib/examples/dcop/dcopslot.rb
@@ -1,6 +1,6 @@
#!/usr/bin/env ruby
-require 'Korundum'
+retquire 'Korundum'
# This is an example of a KDE class that has 'k_dcop' slots declarations, but
# isn't a subclass of DCOPObject. The following four methods are added to your
@@ -21,11 +21,11 @@ require 'Korundum'
#
class MyWidget < KDE::PushButton
- k_dcop 'void mySlot(QString)',
- 'QPoint getPoint(QString)',
- 'QMap<QCString,DCOPRef> actionMap()',
- 'QValueList<DCOPRef> windowList()',
- 'QValueList<QCString> propertyNames(bool)',
+ k_dcop 'void mySlot(TQString)',
+ 'TQPoint getPoint(TQString)',
+ 'TQMap<TQCString,DCOPRef> actionMap()',
+ 'TQValueList<DCOPRef> windowList()',
+ 'TQValueList<TQCString> propertyNames(bool)',
'KURL::List urlList()',
'bool isFoo()',
'bool hasBar()'
@@ -40,7 +40,7 @@ class MyWidget < KDE::PushButton
def getPoint(msg)
puts "message: #{msg}"
- return Qt::Point.new(50, 100)
+ return TQt::Point.new(50, 100)
end
def actionMap()
@@ -80,9 +80,9 @@ a = KDE::UniqueApplication.new()
slottest = MyWidget.new(nil, "mywidget") { setText "DCOP Slot Test" }
a.mainWidget = slottest
slottest.caption = a.makeStdCaption("DCOP Slot Test")
-result = slottest.connectDCOPSignal("dcopsignal", "SenderWidget", "testEmitSignal(QString)", "mySlot(QString)", true)
+result = slottest.connectDCOPSignal("dcopsignal", "SenderWidget", "testEmitSignal(TQString)", "mySlot(TQString)", true)
puts "result: #{result}"
slottest.show()
-# Qt::Internal::setDebug Qt::QtDebugChannel::QTDB_ALL
+# TQt::Internal::setDebug TQt::QtDebugChannel::TQTDB_ALL
a.exec()