[Kde-bindings] qtruby WFlags bugs?
jm
jm at transact.com.au
Tue Jun 29 07:51:52 UTC 2004
version: qtruby cvs 2004-06-22
example code,
#!/usr/local/bin/ruby
require 'Qt'
a = Qt::Application.new(ARGV)
b = Qt::PushButton.new("abutton",nil)
a.setMainWidget(b)
b.show()
p a.getWFlags() #<-- bug here
a.exec()
gives
./bugstest.rb:10:in `method_missing': unresolved method call
(ArgumentError)
from ./bugstest.rb:10
while
rbqtapi -ir "wflags\("
gives
void QWidget::clearWFlags(Qt::WFlags)
Qt::WFlags QWidget::getWFlags() const
void QWidget::setWFlags(Qt::WFlags)
Qt::WFlags QWidget::testWFlags(Qt::WFlags) const
so what is with the const on the end? Is this caused by a parsing
problem in the generation of the library or is there something a miss
in the script?
Jeff.
More information about the Kde-bindings
mailing list