Replace 'Event' #define strings

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/33/head
Michele Calgaro 12 months ago
parent 676a13490d
commit 33b2598a0e
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