summaryrefslogtreecommitdiffstats
path: root/qtruby/rubylib/tutorial/t9
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-01-13 11:29:06 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-01-14 20:32:49 +0900
commit1eb017313b2ebc441dfc81e73a5d6573d03ea08d (patch)
tree8d37ac85ad8a529697fc81479852a039de534b8e /qtruby/rubylib/tutorial/t9
parent673e65a4a15e713643f4bb804f7af6dfdaa0d6d6 (diff)
downloadtdebindings-1eb017313b2ebc441dfc81e73a5d6573d03ea08d.tar.gz
tdebindings-1eb017313b2ebc441dfc81e73a5d6573d03ea08d.zip
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit faf33629bb6562a6f43f930afafe4b22e9cdb60b)
Diffstat (limited to 'qtruby/rubylib/tutorial/t9')
-rw-r--r--qtruby/rubylib/tutorial/t9/lcdrange.rb4
-rwxr-xr-xqtruby/rubylib/tutorial/t9/t9.rb10
2 files changed, 7 insertions, 7 deletions
diff --git a/qtruby/rubylib/tutorial/t9/lcdrange.rb b/qtruby/rubylib/tutorial/t9/lcdrange.rb
index 208650f3..dddbc381 100644
--- a/qtruby/rubylib/tutorial/t9/lcdrange.rb
+++ b/qtruby/rubylib/tutorial/t9/lcdrange.rb
@@ -10,8 +10,8 @@ class LCDRange < TQt::VBox
@slider = TQt::Slider.new(TQt::VBox::Horizontal, self, 'slider')
@slider.setRange(0, 99)
@slider.setValue(0)
- connect(@slider, SIGNAL('valueChanged(int)'), lcd, SLOT('display(int)'))
- connect(@slider, SIGNAL('valueChanged(int)'), SIGNAL('valueChanged(int)'))
+ connect(@slider, TQ_SIGNAL('valueChanged(int)'), lcd, TQ_SLOT('display(int)'))
+ connect(@slider, TQ_SIGNAL('valueChanged(int)'), TQ_SIGNAL('valueChanged(int)'))
setFocusProxy(@slider)
end
diff --git a/qtruby/rubylib/tutorial/t9/t9.rb b/qtruby/rubylib/tutorial/t9/t9.rb
index 8a9cf81d..090fc9b0 100755
--- a/qtruby/rubylib/tutorial/t9/t9.rb
+++ b/qtruby/rubylib/tutorial/t9/t9.rb
@@ -11,17 +11,17 @@ class MyWidget < TQt::Widget
quit = TQt::PushButton.new('Quit', self, 'quit')
quit.setFont(TQt::Font.new('Times', 18, TQt::Font::Bold))
- connect(quit, SIGNAL('clicked()'), $qApp, SLOT('quit()'))
+ connect(quit, TQ_SIGNAL('clicked()'), $qApp, TQ_SLOT('quit()'))
angle = LCDRange.new( self, 'angle' )
angle.setRange( 5, 70 )
cannonField = CannonField.new( self, 'cannonField' )
- connect( angle, SIGNAL('valueChanged(int)'),
- cannonField, SLOT('setAngle(int)') )
- connect( cannonField, SIGNAL('angleChanged(int)'),
- angle, SLOT('setValue(int)') )
+ connect( angle, TQ_SIGNAL('valueChanged(int)'),
+ cannonField, TQ_SLOT('setAngle(int)') )
+ connect( cannonField, TQ_SIGNAL('angleChanged(int)'),
+ angle, TQ_SLOT('setValue(int)') )
grid = TQt::GridLayout.new( self, 2, 2, 10 )
# 2x2, 10 pixel border