ruby bindings
Richard Dale
richard.j.dale at gmail.com
Fri Jan 9 14:35:50 CET 2009
On Fri, Jan 9, 2009 at 1:20 PM, Marco Martin <notmart at gmail.com> wrote:
> On Friday 09 January 2009, Marco Martin wrote:
> > on a slightly unrelated note about ruby bindings: on what criteria some
> > methods seems to be present others not?
> > i see for example that Svg has resize(int, int) and not resize(qsize)
> > and FrameSvg has no resizeFrame at all (making the whole class a bit
> well,
> > useless :/)
>
> eeeh, just forget what i said here, was just an issue of QSize->QSizeF
> so it actually works :p
Yes in C++ will use 'implicit constructors' (is that the right term?) to
convert a type you pass as an argument to the real type that the method
expects.
At the moment QtRuby doesn't emulate that behaviour, and it currently needs
to be special cased. For Plasma I've done a bit of special casing for
Qt::Variants in the scripting Data Engine methods, but I think special
casing all the QSizeF methods is more work than it's worth.
-- Richard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/plasma-devel/attachments/20090109/c07a78a5/attachment.htm
More information about the Plasma-devel
mailing list