Replace 'Event' #define strings

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 33b2598a0e)
r14.1.x
Michele Calgaro 12 months ago
parent d31a7027d0
commit 2d0252be2c
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -131,7 +131,7 @@ bool PPixmapEdit::eventFilter(TQObject *o, TQEvent *ev)
}
if(ev->type() == TQEvent::KeyPress)
{
TQKeyEvent* e = TQT_TQKEYEVENT(ev);
TQKeyEvent* e = static_cast<TQKeyEvent*>(ev);
if((e->key() == Key_Enter) || (e->key()== Key_Space) || (e->key() == Key_Return))
{
m_button->animateClick();

@ -32,7 +32,7 @@ bool CommitDlg::eventFilter( TQObject* obj, TQEvent* ev )
{
if( ev->type() == TQEvent::KeyPress )
{
TQKeyEvent* k = TQT_TQKEYEVENT(ev);
TQKeyEvent* k = static_cast<TQKeyEvent*>(ev);
if( ( k->key() == TQt::Key_Return || k->key() == TQt::Key_Enter ) && k->state() == TQt::ControlButton )
{
accept();

Loading…
Cancel
Save