summaryrefslogtreecommitdiffstats
path: root/qtruby/rubylib/examples/qt-examples/hello
diff options
context:
space:
mode:
Diffstat (limited to 'qtruby/rubylib/examples/qt-examples/hello')
-rw-r--r--qtruby/rubylib/examples/qt-examples/hello/hello.rb2
-rwxr-xr-xqtruby/rubylib/examples/qt-examples/hello/main.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/qtruby/rubylib/examples/qt-examples/hello/hello.rb b/qtruby/rubylib/examples/qt-examples/hello/hello.rb
index ef70154f..4fbb6b69 100644
--- a/qtruby/rubylib/examples/qt-examples/hello/hello.rb
+++ b/qtruby/rubylib/examples/qt-examples/hello/hello.rb
@@ -13,7 +13,7 @@ class Hello < TQt::Widget
@text = text
@sin_tbl = [0, 38, 71, 92, 100, 92, 71, 38, 0, -38, -71, -92, -100, -92, -71, -38]
timer = TQt::Timer.new(self);
- connect(timer, SIGNAL('timeout()'), SLOT('animate()'))
+ connect(timer, TQ_SIGNAL('timeout()'), TQ_SLOT('animate()'))
timer.start(40);
resize(260, 130)
diff --git a/qtruby/rubylib/examples/qt-examples/hello/main.rb b/qtruby/rubylib/examples/qt-examples/hello/main.rb
index 5be3ce68..1b310551 100755
--- a/qtruby/rubylib/examples/qt-examples/hello/main.rb
+++ b/qtruby/rubylib/examples/qt-examples/hello/main.rb
@@ -14,7 +14,7 @@ end
h = Hello.new(s)
h.setCaption('QtRuby says hello')
-h.connect(h, SIGNAL('clicked()'), a, SLOT('quit()'))
+h.connect(h, TQ_SIGNAL('clicked()'), a, TQ_SLOT('quit()'))
h.setFont(TQt::Font.new('times', 32, TQt::Font.Bold)) # default font
h.setBackgroundColor(TQt::white) # default bg color
a.setMainWidget(h)