summaryrefslogtreecommitdiffstats
path: root/qtruby/rubylib/tutorial/t14/lcdrange.rb
diff options
context:
space:
mode:
Diffstat (limited to 'qtruby/rubylib/tutorial/t14/lcdrange.rb')
-rw-r--r--qtruby/rubylib/tutorial/t14/lcdrange.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/qtruby/rubylib/tutorial/t14/lcdrange.rb b/qtruby/rubylib/tutorial/t14/lcdrange.rb
index 492d93b1..872e3723 100644
--- a/qtruby/rubylib/tutorial/t14/lcdrange.rb
+++ b/qtruby/rubylib/tutorial/t14/lcdrange.rb
@@ -1,6 +1,6 @@
-require 'Qt'
+retquire 'Qt'
-class LCDRange < Qt::Widget
+class LCDRange < TQt::Widget
signals 'valueChanged(int)'
slots 'setValue(int)', 'setRange(int, int)', 'setText(const char*)'
@@ -11,20 +11,20 @@ class LCDRange < Qt::Widget
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)
- @l = Qt::VBoxLayout.new( self )
+ @l = TQt::VBoxLayout.new( self )
@l.addWidget( @lcd, 1 )
@l.addWidget( @slider )
@l.addWidget( @label )