[Kde-bindings] Qt signal return values
Arno Rehn
arno at arnorehn.de
Tue Oct 10 23:24:02 UTC 2006
Am Mittwoch, 11. Oktober 2006 00:26 schrieb Arno Rehn:
> And how should I get the arguments Q_CLASSINFO into the QMetaObject?
>
> The core QMetaObject-data is set up here:
>
> ArrayList tmp = new ArrayList(new uint[] {
> 1, // revision
> handler[className], // classname
> 0, 0, // classinfo
> (uint)(signals.Count + slots.Count), 10, // methods
> 0, 0, // properties
> 0, 0
> });
>
> The equivalent in QtRuby is:
> data = [1, # revision
> string_table.call(classname), # classname
> classinfos.length, classinfos.length > 0 ? 10 : 0, # classinfo
> signals.length + slots.length,
> 10 + (2*classinfos.length), # methods
> 0, 0, # properties
> 0, 0] # enums/sets
>
> Quite clear, but (I'm not that good in ruby) what does
> classinfos.length > 0 ? 10 : 0
> mean? Of what type is "classinfos"?
> Then it still seems as only the length of "classinfos" is passed, but not
> the parameters...
OK, after some more looks on QtRuby code this also clear :-)
Still I wonder were to put Q_SCRIPTABLE. Should it be implemented as an
attribute to a class or to a signal/slot?
--
Arno Rehn
arno at arnorehn.de
More information about the Kde-bindings
mailing list