[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bindings
Subject:    Re: [Kde-bindings] Qt::CheckBox#checked missing from recent qtruby?
From:       Richard Dale <rdale () foton ! es>
Date:       2010-02-01 11:33:55
Message-ID: 201002011133.55394.rdale () foton ! es
[Download RAW message or body]

On Monday 01 February 2010 10:16:32 am Stefano Crocco wrote:
> I just noticed that with recent versions of korundum from the 4.4 branch,
> Qt::CheckBox doesn't have a "checked" method, which existed with smoke
> generated with the old generator. Is this intentional? I guess so, since in
> the C++ api, the getter method for the checked property is isChecked(),
>  which correctly exists in qtruby together with its rubysh variants
>  "is_checked" and "checked?", but I wanted to be sure.
'checked' would have never been in the Smoke library as it is a Q_PROPERTY of 
QAbstractButton. The other methods will call the isChecked() C++ method. 

If a method isn't in the Smoke lib, and the target class is a subclass of 
QObject, then the QtRuby runtime will look for a slot or a property that it 
can call using the QMetaObject for the class. So what seems to have happened 
is the mechanism to call Q_PROPERTYs dynamically isn't working at the moment.

-- Richard
_______________________________________________
Kde-bindings mailing list
Kde-bindings@kde.org
https://mail.kde.org/mailman/listinfo/kde-bindings
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic