[Kde-bindings] exception raised by calling super in override of KDE::Dialog#exec
Stefano Crocco
stefano.crocco at alice.it
Sun Sep 7 09:33:19 UTC 2008
If I derive a class from KDE::Dialog, override its exec method and call super
from the overriding method, I get an ArgumentError exception. Here's some code
which displays this behaviour:
require 'korundum4'
class MyDlg < KDE::Dialog
def exec
puts "exec"
super
end
end
data = KDE::AboutData.new "kruby", "", KDE::ki18n("KRuby"), "0.0.1"
KDE::CmdLineArgs.init [], data
a = KDE::Application.new
MyDlg.new.exec
running this code gives:
exec
./prova.rb:7:in `exec': wrong number of arguments (ArgumentError)
from ./prova.rb:7:in `exec'
from ./prova.rb:17
If MyDialog is derived from Qt::Dialog instead of KDE::Dialog, everything
works correctly.
Stefano
More information about the Kde-bindings
mailing list