On Fri, Jan 9, 2009 at 1:20 PM, Marco Martin <notm...@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
_______________________________________________ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel