[Kde-bindings] [ruby] Qt::QEvent.type conflict with Object.type
rdale at foton.es
Tue Oct 30 09:29:48 UTC 2007
On Tuesday 30 October 2007 09:23:00 Magicloud Magiclouds wrote:
> My qtruby is 1.4.9, ruby is 18.104.22.168.
> I also tried "if event.type() == Qt::Event::KeyPress", same warning....
Thanks, but what sort of event is it?
> 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
> Kde-bindings mailing list
> Kde-bindings at kde.org
More information about the Kde-bindings