From 9ba04742771370f59740e32e11c5f3a1e6a1b70a Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Mon, 5 Dec 2011 15:55:57 -0600 Subject: Initial TQt conversion --- qtruby/rubylib/tutorial/t5/t5.rb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'qtruby/rubylib/tutorial/t5') 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) -- cgit v1.2.1