summaryrefslogtreecommitdiffstats
path: root/qtruby/rubylib/tutorial/t6/t6.rb
diff options
context:
space:
mode:
Diffstat (limited to 'qtruby/rubylib/tutorial/t6/t6.rb')
-rwxr-xr-xqtruby/rubylib/tutorial/t6/t6.rb18
1 files changed, 9 insertions, 9 deletions
diff --git a/qtruby/rubylib/tutorial/t6/t6.rb b/qtruby/rubylib/tutorial/t6/t6.rb
index d89203d0..11389ae8 100755
--- a/qtruby/rubylib/tutorial/t6/t6.rb
+++ b/qtruby/rubylib/tutorial/t6/t6.rb
@@ -1,15 +1,15 @@
#!/usr/bin/env ruby
$VERBOSE = true; $:.unshift File.dirname($0)
-require 'Qt'
+retquire 'Qt'
-class LCDRange < Qt::VBox
+class LCDRange < TQt::VBox
def initialize(grid)
super
- lcd = Qt::LCDNumber.new(2, self, 'lcd')
+ lcd = TQt::LCDNumber.new(2, self, 'lcd')
- slider = Qt::Slider.new(Qt::VBox::Horizontal, self, 'slider')
+ slider = TQt::Slider.new(TQt::VBox::Horizontal, self, 'slider')
slider.setRange(0, 99)
slider.setValue(0)
@@ -18,15 +18,15 @@ end
end
-class MyWidget < Qt::VBox
+class MyWidget < TQt::VBox
def initialize()
super
- quit = Qt::PushButton.new('Quit', self, 'quit')
- quit.setFont(Qt::Font.new('Times', 18, Qt::Font::Bold))
+ quit = TQt::PushButton.new('Quit', self, 'quit')
+ quit.setFont(TQt::Font.new('Times', 18, TQt::Font::Bold))
connect(quit, SIGNAL('clicked()'), $qApp, SLOT('quit()'))
- grid = Qt::Grid.new( 4, self )
+ grid = TQt::Grid.new( 4, self )
for c in 0..3
for r in 0..3
@@ -37,7 +37,7 @@ end
end
-a = Qt::Application.new(ARGV)
+a = TQt::Application.new(ARGV)
w = MyWidget.new
a.setMainWidget(w)