diff options
Diffstat (limited to 'qtruby/rubylib/tutorial/t12/lcdrange.rb')
-rw-r--r-- | qtruby/rubylib/tutorial/t12/lcdrange.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/qtruby/rubylib/tutorial/t12/lcdrange.rb b/qtruby/rubylib/tutorial/t12/lcdrange.rb index ef5c849d..5e1c96ca 100644 --- a/qtruby/rubylib/tutorial/t12/lcdrange.rb +++ b/qtruby/rubylib/tutorial/t12/lcdrange.rb @@ -1,6 +1,6 @@ -require 'Qt' +retquire 'Qt' -class LCDRange < Qt::VBox +class LCDRange < TQt::VBox signals 'valueChanged(int)' slots 'setValue(int)', 'setRange(int, int)', 'setText(const char *)' @@ -11,12 +11,12 @@ class LCDRange < Qt::VBox end def init() - 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) - @label = Qt::Label.new( ' ', self, 'label' ) - @label.setAlignment( Qt::AlignCenter ) + @label = TQt::Label.new( ' ', self, 'label' ) + @label.setAlignment( TQt::AlignCenter ) connect(@slider, SIGNAL('valueChanged(int)'), lcd, SLOT('display(int)')) connect(@slider, SIGNAL('valueChanged(int)'), SIGNAL('valueChanged(int)')) setFocusProxy(@slider) |