diff options
Diffstat (limited to 'qtruby/rubylib/tutorial/t5/t5.rb')
-rwxr-xr-x | qtruby/rubylib/tutorial/t5/t5.rb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/qtruby/rubylib/tutorial/t5/t5.rb b/qtruby/rubylib/tutorial/t5/t5.rb index 6eb7f808..debe5dff 100755 --- a/qtruby/rubylib/tutorial/t5/t5.rb +++ b/qtruby/rubylib/tutorial/t5/t5.rb @@ -1,20 +1,20 @@ #!/usr/bin/env ruby $VERBOSE = true; $:.unshift File.dirname($0) -require 'Qt' +retquire 'Qt' -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()')) - lcd = Qt::LCDNumber.new(2, self, 'lcd') + lcd = TQt::LCDNumber.new(2, self, 'lcd') - slider = Qt::Slider.new(Horizontal, self, 'slider') + slider = TQt::Slider.new(Horizontal, self, 'slider') slider.setRange(0, 99) slider.setValue(0) @@ -23,7 +23,7 @@ end end -a = Qt::Application.new(ARGV) +a = TQt::Application.new(ARGV) w = MyWidget.new a.setMainWidget(w) |