Re: Disabling the cancel button

Balatoni Denes <[email protected]> Fri, 29 Nov 2002 15:23:41 +0100
Newsgroups gmane.comp.handhelds.zaurus.devel
Message-ID <[email protected]>
Hi!

This is good to know. Were there some implementation changes, because 
on OZ3 the cancel events are thrown away when my mainwidget::keypressevent 
ev->ignore()s the escape key. Another good thing is after I switch to 
fullscreen and back, the ok button press is not passed to my app. Maybe 
that's niot a bug in opie/qpe, I will check.

bye
Denes


On 2002. november 29. 13:27, Russell Clarke wrote:
> QPEApplication reimplements QApplication::qwsEventFilter() - this is where
> the key event for Qt::Key_Escape is trapped and hardwired to
> QWidget::close().  The key event will still be delivered, by a different
> route, but only after this has happened.
>
> you can get round this by reimplementing QApplication::notify() and
> filtering off the cancel key event there.



-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power & Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en