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

Magicloud Magiclouds magicloud.magiclouds at gmail.com
Tue Oct 30 09:23:00 UTC 2007

	My qtruby is 1.4.9, ruby is
	I also tried "if event.type() == Qt::Event::KeyPress", same warning....


Richard Dale wrote:
> 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
> _______________________________________________
> Kde-bindings mailing list
> Kde-bindings at kde.org
> https://mail.kde.org/mailman/listinfo/kde-bindings

More information about the Kde-bindings mailing list