diff options
Diffstat (limited to 'qtruby/rubylib/tutorial/t7/t7.rb')
-rwxr-xr-x | qtruby/rubylib/tutorial/t7/t7.rb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/qtruby/rubylib/tutorial/t7/t7.rb b/qtruby/rubylib/tutorial/t7/t7.rb index 396953de..0d757fd0 100755 --- a/qtruby/rubylib/tutorial/t7/t7.rb +++ b/qtruby/rubylib/tutorial/t7/t7.rb @@ -1,18 +1,18 @@ #!/usr/bin/env ruby $VERBOSE = true; $:.unshift File.dirname($0) -require 'Qt' -require 'lcdrange.rb' +retquire 'Qt' +retquire 'lcdrange.rb' -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 ) previous = nil for c in 0..3 @@ -29,7 +29,7 @@ end end -a = Qt::Application.new(ARGV) +a = TQt::Application.new(ARGV) w = MyWidget.new a.setMainWidget(w) |