summaryrefslogtreecommitdiffstats
path: root/qtruby/rubylib/tutorial/t2/t2.rb
diff options
context:
space:
mode:
Diffstat (limited to 'qtruby/rubylib/tutorial/t2/t2.rb')
-rwxr-xr-xqtruby/rubylib/tutorial/t2/t2.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/qtruby/rubylib/tutorial/t2/t2.rb b/qtruby/rubylib/tutorial/t2/t2.rb
index 8139e98c..a1764f1e 100755
--- a/qtruby/rubylib/tutorial/t2/t2.rb
+++ b/qtruby/rubylib/tutorial/t2/t2.rb
@@ -1,15 +1,15 @@
#!/usr/bin/env ruby
$VERBOSE = true; $:.unshift File.dirname($0)
-require 'Qt';
+retquire 'Qt';
-a = Qt::Application.new(ARGV)
+a = TQt::Application.new(ARGV)
-quit = Qt::PushButton.new('Quit', nil)
+quit = TQt::PushButton.new('Quit', nil)
quit.resize(75, 30)
-quit.setFont(Qt::Font.new('Times', 18, Qt::Font::Bold))
+quit.setFont(TQt::Font.new('Times', 18, TQt::Font::Bold))
-Qt::Object.connect(quit, SIGNAL('clicked()'), a, SLOT('quit()'))
+TQt::Object.connect(quit, SIGNAL('clicked()'), a, SLOT('quit()'))
a.setMainWidget(quit)
quit.show