Replace 'Event' #define strings

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/65/head
Michele Calgaro 6 months ago
parent 335c366622
commit 5dc12cbb83
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -563,7 +563,7 @@ bool QVideoStreamGLWidget::eventFilter(TQObject*, TQEvent* e)
// For some reason, KeyPress does not work (yields 2), TQEvent::KeyPress is unknown... What the f...???? // For some reason, KeyPress does not work (yields 2), TQEvent::KeyPress is unknown... What the f...????
// I am too lazy to scan the header files for the reason. // I am too lazy to scan the header files for the reason.
if(e->type() == 6) { if(e->type() == 6) {
TQKeyEvent* ke = TQT_TQKEYEVENT(e); TQKeyEvent* ke = static_cast<TQKeyEvent*>(e);
if(ke->key() == TQt::Key_Pause) { if(ke->key() == TQt::Key_Pause) {
_glfunTimer->start(500, true); _glfunTimer->start(500, true);
} else if (_glfunTimer->isActive() && (ke->key() == TQt::Key_Escape)) { } else if (_glfunTimer->isActive() && (ke->key() == TQt::Key_Escape)) {

@ -123,7 +123,7 @@ namespace KPF
case TQEvent::MouseButtonRelease: case TQEvent::MouseButtonRelease:
{ {
TQMouseEvent * e = TQT_TQMOUSEEVENT(ev); TQMouseEvent * e = static_cast<TQMouseEvent*>(ev);
if (0 == e) if (0 == e)
{ {
@ -159,7 +159,7 @@ namespace KPF
case TQEvent::MouseButtonPress: case TQEvent::MouseButtonPress:
{ {
TQMouseEvent * e = TQT_TQMOUSEEVENT(ev); TQMouseEvent * e = static_cast<TQMouseEvent*>(ev);
if (0 == e) if (0 == e)
{ {

@ -363,7 +363,7 @@ void aHistLineEdit::mousePressEvent ( TQMouseEvent *e )
bool aHistLineEdit::eventFilter( TQObject *o, TQEvent *e ) bool aHistLineEdit::eventFilter( TQObject *o, TQEvent *e )
{ {
if ( o == this && e->type() == TQEvent::AccelOverride ) if ( o == this && e->type() == TQEvent::AccelOverride )
if(processKeyEvent( TQT_TQKEYEVENT( e ) ) == true) if(processKeyEvent( static_cast<TQKeyEvent*>( e ) ) == true)
return true; return true;
return TQTextEdit::eventFilter( o, e ); return TQTextEdit::eventFilter( o, e );

Loading…
Cancel
Save