[Kde-bindings] Conversion operators

Richard Dale rdale at foton.es
Fri Apr 17 17:07:42 UTC 2009


On Thursday 16 April 2009 15:53:29 Tobias Rautenkranz wrote:
> Conversion operators (e.g.: QColor::operator QVariant() ) in Smoke do not
> work; they return void.
How are you actually using the conversion operators in a non-c++ language - do 
they make sense outside c++?

> The attached patch sets the return type for conversion operators. It works
> for me, but I do not know Perl and kalyptus.
OK, I fixed the code generation as you suggest with some minor changes to the 
patch so that it special cases conversion operators before calling 
newMethod(), rather than inside it.

-- Richard



More information about the Kde-bindings mailing list