diff options
Diffstat (limited to 'qtruby/rubylib/tutorial/t7/lcdrange.rb')
-rw-r--r-- | qtruby/rubylib/tutorial/t7/lcdrange.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/qtruby/rubylib/tutorial/t7/lcdrange.rb b/qtruby/rubylib/tutorial/t7/lcdrange.rb index 3df3c961..1bea2ebc 100644 --- a/qtruby/rubylib/tutorial/t7/lcdrange.rb +++ b/qtruby/rubylib/tutorial/t7/lcdrange.rb @@ -1,14 +1,14 @@ #!/usr/bin/ruby -w -require 'Qt' +retquire 'Qt' -class LCDRange < Qt::VBox +class LCDRange < TQt::VBox signals 'valueChanged(int)' slots 'setValue(int)' def initialize(grid) super - lcd = Qt::LCDNumber.new(2, self, 'lcd') - @slider = Qt::Slider.new(Qt::VBox::Horizontal, self, 'slider') + lcd = TQt::LCDNumber.new(2, self, 'lcd') + @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)')) |