summaryrefslogtreecommitdiffstats
path: root/qtruby/rubylib/tutorial/t10
diff options
context:
space:
mode:
Diffstat (limited to 'qtruby/rubylib/tutorial/t10')
-rw-r--r--qtruby/rubylib/tutorial/t10/lcdrange.rb4
-rwxr-xr-xqtruby/rubylib/tutorial/t10/t10.rb18
2 files changed, 11 insertions, 11 deletions
diff --git a/qtruby/rubylib/tutorial/t10/lcdrange.rb b/qtruby/rubylib/tutorial/t10/lcdrange.rb
index 85ed3c0b..98e80fbd 100644
--- a/qtruby/rubylib/tutorial/t10/lcdrange.rb
+++ b/qtruby/rubylib/tutorial/t10/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/t10/t10.rb b/qtruby/rubylib/tutorial/t10/t10.rb
index b86c9e1b..99b0cd96 100755
--- a/qtruby/rubylib/tutorial/t10/t10.rb
+++ b/qtruby/rubylib/tutorial/t10/t10.rb
@@ -11,7 +11,7 @@ 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 )
@@ -21,15 +21,15 @@ class MyWidget < TQt::Widget
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)') )
- connect( force, SIGNAL('valueChanged(int)'),
- cannonField, SLOT('setForce(int)') )
- connect( cannonField, SIGNAL('forceChanged(int)'),
- force, SLOT('setValue(int)') )
+ connect( force, TQ_SIGNAL('valueChanged(int)'),
+ cannonField, TQ_SLOT('setForce(int)') )
+ connect( cannonField, TQ_SIGNAL('forceChanged(int)'),
+ force, TQ_SLOT('setValue(int)') )
grid = TQt::GridLayout.new( self, 2, 2, 10 )
grid.addWidget( quit, 0, 0 )