Replace 'Event' #define strings

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/8/head
Michele Calgaro 1 year ago
parent 753b5724e1
commit cda5b603bc
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -84,7 +84,7 @@ bool GenericHexWordEditor::event(TQEvent *e)
TQTimer::singleShot(0, this, TQT_SLOT(selectAll())); // ugly but it works
break;
case TQEvent::KeyPress:
switch ( TQT_TQKEYEVENT(e)->key() ) {
switch ( static_cast<TQKeyEvent*>(e)->key() ) {
case Key_Next:
emit moveNextPage();
return true;

@ -49,7 +49,7 @@ bool ListView::eventFilter(TQObject *o, TQEvent *e)
//tqDebug("event %i", e->type());
switch (e->type()) {
case TQEvent::KeyPress: {
TQKeyEvent *ke = TQT_TQKEYEVENT(e);
TQKeyEvent *ke = static_cast<TQKeyEvent*>(e);
switch (ke->key()) {
case Key_Enter:
case Key_Return:

@ -83,7 +83,7 @@ void TextEditor::addToDebugManager()
bool TextEditor::eventFilter(TQObject *, TQEvent *e)
{
if ( e->type()==TQEvent::KeyPress ) {
if ( TQT_TQKEYEVENT(e)->key()==Key_Escape ) return true;
if ( static_cast<TQKeyEvent*>(e)->key()==Key_Escape ) return true;
}
return false;
}

Loading…
Cancel
Save