[Kde-bindings] [ruby] Qt::QEvent.type conflict with Object.type

Richard Dale rdale at foton.es
Tue Oct 30 07:56:26 UTC 2007

On Tuesday 30 October 2007 06:20:58 Magicloud Magiclouds wrote:
> Dear all,
>     Something like "if event.type == Qt::Event::KeyPress" only gives
> "warning: Object#type is deprecated; use Object#class", and does not
> work as expected.
>     How to resolve this?
That should work, but the type() method needs to be special cased for each 
Qt::Event class. Which version of QtRuby and which Qt::Event class is it?

-- Richard

More information about the Kde-bindings mailing list