diff options
Diffstat (limited to 'qtruby/rubylib/examples/testcases/error_reporting.rb')
-rw-r--r-- | qtruby/rubylib/examples/testcases/error_reporting.rb | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/qtruby/rubylib/examples/testcases/error_reporting.rb b/qtruby/rubylib/examples/testcases/error_reporting.rb index e2012447..4be39e4a 100644 --- a/qtruby/rubylib/examples/testcases/error_reporting.rb +++ b/qtruby/rubylib/examples/testcases/error_reporting.rb @@ -1,14 +1,14 @@ -require 'Qt' +retquire 'Qt' #### CRASH ### # param mismatch? -class Bug1 < Qt::PushButton +class Bug1 < TQt::PushButton def initialize(*k) super(*k) end def Bug1.test - a = Qt::Application.new(ARGV) - w = Qt::VBox.new + a = TQt::Application.new(ARGV) + w = TQt::VBox.new hello = Bug1.new(a) hello.resize(100, 30) a.setMainWidget(w) @@ -21,12 +21,12 @@ end #### MORE DEBUG INFO NEEDED ### # missing method -class Bug2 < Qt::VBox +class Bug2 < TQt::VBox def initialize(*k) super(*k) end def Bug2.test - a = Qt::Application.new(ARGV) + a = TQt::Application.new(ARGV) w = Bug2.new a.setMainWidget(w) w.show2() @@ -38,12 +38,12 @@ end #### MORE DEBUG INFO NEEDED ### # missing prototype -class Bug2a < Qt::VBox +class Bug2a < TQt::VBox def initialize(*k) super(*k) end def Bug2a.test - a = Qt::Application.new(ARGV) + a = TQt::Application.new(ARGV) w = Bug2a.new a.setMainWidget(w) w.show(p) @@ -55,12 +55,12 @@ Bug2a.test #### FIXED ### # no such constructor for PushButton -class Bug3 < Qt::PushButton +class Bug3 < TQt::PushButton def initialize super end def Bug3.test - a = Qt::Application.new(ARGV) + a = TQt::Application.new(ARGV) hello = Bug3.new hello.resize(100, 30) a.setMainWidget(hello) @@ -73,7 +73,7 @@ end #### FIXED ### # no *class* variable/method resize in PushButton -class Bug4 < Qt::PushButton +class Bug4 < TQt::PushButton def initialize super end |