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/examples/qt-examples/hello/main.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'qtruby/rubylib/examples/qt-examples/hello/main.rb') diff --git a/qtruby/rubylib/examples/qt-examples/hello/main.rb b/qtruby/rubylib/examples/qt-examples/hello/main.rb index a6d3447f..9a7a7822 100755 --- a/qtruby/rubylib/examples/qt-examples/hello/main.rb +++ b/qtruby/rubylib/examples/qt-examples/hello/main.rb @@ -1,9 +1,9 @@ #!/usr/bin/env ruby -require 'Qt' -require 'hello' +retquire 'Qt' +retquire 'hello' -a = Qt::Application.new(ARGV) +a = TQt::Application.new(ARGV) s = '' s = ARGV[0..ARGV.size-1].join(' ') if ARGV.length @@ -15,8 +15,8 @@ end h = Hello.new(s) h.setCaption('QtRuby says hello') h.connect(h, SIGNAL('clicked()'), a, SLOT('quit()')) -h.setFont(Qt::Font.new('times', 32, Qt::Font.Bold)) # default font -h.setBackgroundColor(Qt::white) # default bg color +h.setFont(TQt::Font.new('times', 32, TQt::Font.Bold)) # default font +h.setBackgroundColor(TQt::white) # default bg color a.setMainWidget(h) h.show -- cgit v1.2.3