Replace 'Event' #define strings

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/34/head
Michele Calgaro 12 months ago
parent f6494efdde
commit 5e5046aefa
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -758,22 +758,22 @@ bool CdeClient::eventFilter(TQObject *o, TQEvent *e)
return false; return false;
switch (e->type()) { switch (e->type()) {
case TQEvent::Resize: case TQEvent::Resize:
resizeEvent(TQT_TQRESIZEEVENT(e)); resizeEvent(static_cast<TQResizeEvent*>(e));
return true; return true;
case TQEvent::Paint: case TQEvent::Paint:
paintEvent(TQT_TQPAINTEVENT(e)); paintEvent(static_cast<TQPaintEvent*>(e));
return true; return true;
case TQEvent::MouseButtonDblClick: case TQEvent::MouseButtonDblClick:
mouseDoubleClickEvent(TQT_TQMOUSEEVENT(e)); mouseDoubleClickEvent(static_cast<TQMouseEvent*>(e));
return true; return true;
case TQEvent::MouseButtonPress: case TQEvent::MouseButtonPress:
processMousePressEvent(TQT_TQMOUSEEVENT(e)); processMousePressEvent(static_cast<TQMouseEvent*>(e));
return true; return true;
case TQEvent::Show: case TQEvent::Show:
showEvent(TQT_TQSHOWEVENT(e)); showEvent(static_cast<TQShowEvent*>(e));
return true; return true;
case TQEvent::Wheel: case TQEvent::Wheel:
wheelEvent( TQT_TQWHEELEVENT( e )); wheelEvent( static_cast<TQWheelEvent*>( e ));
return true; return true;
default: default:
break; break;

@ -865,22 +865,22 @@ bool GlowClient::eventFilter( TQObject* o, TQEvent* e )
switch( e->type()) switch( e->type())
{ {
case TQEvent::Resize: case TQEvent::Resize:
resizeEvent( TQT_TQRESIZEEVENT( e )); resizeEvent( static_cast<TQResizeEvent*>( e ));
return true; return true;
case TQEvent::Paint: case TQEvent::Paint:
paintEvent( TQT_TQPAINTEVENT( e )); paintEvent( static_cast<TQPaintEvent*>( e ));
return true; return true;
case TQEvent::MouseButtonDblClick: case TQEvent::MouseButtonDblClick:
mouseDoubleClickEvent( TQT_TQMOUSEEVENT( e )); mouseDoubleClickEvent( static_cast<TQMouseEvent*>( e ));
return true; return true;
case TQEvent::MouseButtonPress: case TQEvent::MouseButtonPress:
processMousePressEvent( TQT_TQMOUSEEVENT( e )); processMousePressEvent( static_cast<TQMouseEvent*>( e ));
return true; return true;
case TQEvent::Show: case TQEvent::Show:
showEvent( TQT_TQSHOWEVENT( e )); showEvent( static_cast<TQShowEvent*>( e ));
return true; return true;
case TQEvent::Wheel: case TQEvent::Wheel:
wheelEvent( TQT_TQWHEELEVENT( e )); wheelEvent( static_cast<TQWheelEvent*>( e ));
return true; return true;
default: default:
break; break;

@ -1669,19 +1669,19 @@ bool IceWMClient::eventFilter( TQObject* o, TQEvent* e )
switch( e->type()) switch( e->type())
{ {
case TQEvent::Resize: case TQEvent::Resize:
resizeEvent(TQT_TQRESIZEEVENT( e ) ); resizeEvent(static_cast<TQResizeEvent*>( e ) );
return true; return true;
case TQEvent::Paint: case TQEvent::Paint:
paintEvent(TQT_TQPAINTEVENT( e ) ); paintEvent(static_cast<TQPaintEvent*>( e ) );
return true; return true;
case TQEvent::MouseButtonDblClick: case TQEvent::MouseButtonDblClick:
mouseDoubleClickEvent(TQT_TQMOUSEEVENT( e ) ); mouseDoubleClickEvent(static_cast<TQMouseEvent*>( e ) );
return true; return true;
case TQEvent::MouseButtonPress: case TQEvent::MouseButtonPress:
processMousePressEvent(TQT_TQMOUSEEVENT( e ) ); processMousePressEvent(static_cast<TQMouseEvent*>( e ) );
return true; return true;
case TQEvent::Wheel: case TQEvent::Wheel:
wheelEvent( TQT_TQWHEELEVENT( e )); wheelEvent( static_cast<TQWheelEvent*>( e ));
return true; return true;
default: default:
break; break;

@ -549,23 +549,23 @@ bool StdClient::eventFilter( TQObject* o, TQEvent* e )
switch ( e->type() ) { switch ( e->type() ) {
case TQEvent::Resize: case TQEvent::Resize:
resizeEvent( TQT_TQRESIZEEVENT( e ) ); resizeEvent( static_cast<TQResizeEvent*>( e ) );
return true; return true;
case TQEvent::Paint: case TQEvent::Paint:
paintEvent( TQT_TQPAINTEVENT( e ) ); paintEvent( static_cast<TQPaintEvent*>( e ) );
return true; return true;
case TQEvent::MouseButtonDblClick: case TQEvent::MouseButtonDblClick:
mouseDoubleClickEvent( TQT_TQMOUSEEVENT( e ) ); mouseDoubleClickEvent( static_cast<TQMouseEvent*>( e ) );
return true; return true;
case TQEvent::MouseButtonPress: case TQEvent::MouseButtonPress:
processMousePressEvent( TQT_TQMOUSEEVENT( e ) ); processMousePressEvent( static_cast<TQMouseEvent*>( e ) );
return true; return true;
case TQEvent::Wheel: case TQEvent::Wheel:
wheelEvent( TQT_TQWHEELEVENT( e )); wheelEvent( static_cast<TQWheelEvent*>( e ));
return true; return true;
default: default:
@ -698,23 +698,23 @@ bool StdToolClient::eventFilter( TQObject* o, TQEvent* e )
switch ( e->type() ) { switch ( e->type() ) {
case TQEvent::Resize: case TQEvent::Resize:
resizeEvent( TQT_TQRESIZEEVENT( e ) ); resizeEvent( static_cast<TQResizeEvent*>( e ) );
return true; return true;
case TQEvent::Paint: case TQEvent::Paint:
paintEvent( TQT_TQPAINTEVENT( e ) ); paintEvent( static_cast<TQPaintEvent*>( e ) );
return true; return true;
case TQEvent::MouseButtonDblClick: case TQEvent::MouseButtonDblClick:
mouseDoubleClickEvent( TQT_TQMOUSEEVENT( e ) ); mouseDoubleClickEvent( static_cast<TQMouseEvent*>( e ) );
return true; return true;
case TQEvent::MouseButtonPress: case TQEvent::MouseButtonPress:
processMousePressEvent( TQT_TQMOUSEEVENT( e ) ); processMousePressEvent( static_cast<TQMouseEvent*>( e ) );
return true; return true;
case TQEvent::Wheel: case TQEvent::Wheel:
wheelEvent( TQT_TQWHEELEVENT( e )); wheelEvent( static_cast<TQWheelEvent*>( e ));
return true; return true;
default: default:

@ -880,22 +880,22 @@ bool NextClient::eventFilter(TQObject *o, TQEvent *e)
return false; return false;
switch (e->type()) { switch (e->type()) {
case TQEvent::Resize: case TQEvent::Resize:
resizeEvent(TQT_TQRESIZEEVENT( e )); resizeEvent(static_cast<TQResizeEvent*>( e ));
return true; return true;
case TQEvent::Paint: case TQEvent::Paint:
paintEvent(TQT_TQPAINTEVENT( e )); paintEvent(static_cast<TQPaintEvent*>( e ));
return true; return true;
case TQEvent::MouseButtonDblClick: case TQEvent::MouseButtonDblClick:
mouseDoubleClickEvent(TQT_TQMOUSEEVENT( e )); mouseDoubleClickEvent(static_cast<TQMouseEvent*>( e ));
return true; return true;
case TQEvent::Wheel: case TQEvent::Wheel:
wheelEvent( TQT_TQWHEELEVENT( e )); wheelEvent( static_cast<TQWheelEvent*>( e ));
return true; return true;
case TQEvent::MouseButtonPress: case TQEvent::MouseButtonPress:
processMousePressEvent(TQT_TQMOUSEEVENT( e )); processMousePressEvent(static_cast<TQMouseEvent*>( e ));
return true; return true;
case TQEvent::Show: case TQEvent::Show:
showEvent(TQT_TQSHOWEVENT( e )); showEvent(static_cast<TQShowEvent*>( e ));
return true; return true;
default: default:
break; break;

@ -168,30 +168,30 @@ bool OpenLook::eventFilter(TQObject *o, TQEvent *e)
if (o != widget()) return false; if (o != widget()) return false;
switch (e->type()) { switch (e->type()) {
case TQEvent::Resize: case TQEvent::Resize:
resizeEvent(TQT_TQRESIZEEVENT(e)); resizeEvent(static_cast<TQResizeEvent*>(e));
return true; return true;
case TQEvent::Paint: case TQEvent::Paint:
paintEvent(TQT_TQPAINTEVENT(e)); paintEvent(static_cast<TQPaintEvent*>(e));
return true; return true;
case TQEvent::MouseButtonDblClick: case TQEvent::MouseButtonDblClick:
mouseDoubleClickEvent(TQT_TQMOUSEEVENT(e)); mouseDoubleClickEvent(static_cast<TQMouseEvent*>(e));
return true; return true;
case TQEvent::Wheel: case TQEvent::Wheel:
wheelEvent( TQT_TQWHEELEVENT( e )); wheelEvent( static_cast<TQWheelEvent*>( e ));
return true; return true;
case TQEvent::MouseButtonPress: case TQEvent::MouseButtonPress:
if (!isButtonPress(TQT_TQMOUSEEVENT(e))) { if (!isButtonPress(static_cast<TQMouseEvent*>(e))) {
processMousePressEvent(TQT_TQMOUSEEVENT(e)); processMousePressEvent(static_cast<TQMouseEvent*>(e));
} }
return true; return true;
case TQEvent::MouseButtonRelease: case TQEvent::MouseButtonRelease:
if (isButtonRelease(TQT_TQMOUSEEVENT(e))) { if (isButtonRelease(static_cast<TQMouseEvent*>(e))) {
return true; return true;
} else { } else {
return false; return false;
} }
case TQEvent::Show: case TQEvent::Show:
showEvent(TQT_TQSHOWEVENT(e)); showEvent(static_cast<TQShowEvent*>(e));
return true; return true;
default: default:
break; break;

@ -86,19 +86,19 @@ bool Manager::eventFilter(TQObject *o, TQEvent *e)
switch (e->type()) switch (e->type())
{ {
case TQEvent::Resize: case TQEvent::Resize:
resizeEvent(TQT_TQRESIZEEVENT(e)); resizeEvent(static_cast<TQResizeEvent*>(e));
return true; return true;
case TQEvent::Paint: case TQEvent::Paint:
paintEvent(TQT_TQPAINTEVENT(e)); paintEvent(static_cast<TQPaintEvent*>(e));
return true; return true;
case TQEvent::MouseButtonDblClick: case TQEvent::MouseButtonDblClick:
mouseDoubleClickEvent(TQT_TQMOUSEEVENT(e)); mouseDoubleClickEvent(static_cast<TQMouseEvent*>(e));
return true; return true;
case TQEvent::MouseButtonPress: case TQEvent::MouseButtonPress:
processMousePressEvent(TQT_TQMOUSEEVENT(e)); processMousePressEvent(static_cast<TQMouseEvent*>(e));
return true; return true;
case TQEvent::Wheel: case TQEvent::Wheel:
wheelEvent( TQT_TQWHEELEVENT( e )); wheelEvent( static_cast<TQWheelEvent*>( e ));
return true; return true;
case TQEvent::MouseButtonRelease: case TQEvent::MouseButtonRelease:
return false; return false;

@ -1047,27 +1047,27 @@ bool smoothblendClient::eventFilter(TQObject *obj, TQEvent *e) {
switch (e->type()) { switch (e->type()) {
case TQEvent::MouseButtonDblClick: { case TQEvent::MouseButtonDblClick: {
mouseDoubleClickEvent(TQT_TQMOUSEEVENT(e)); mouseDoubleClickEvent(static_cast<TQMouseEvent*>(e));
return true; return true;
} }
case TQEvent::MouseButtonPress: { case TQEvent::MouseButtonPress: {
processMousePressEvent(TQT_TQMOUSEEVENT(e)); processMousePressEvent(static_cast<TQMouseEvent*>(e));
return true; return true;
} }
case TQEvent::Paint: { case TQEvent::Paint: {
paintEvent(TQT_TQPAINTEVENT(e)); paintEvent(static_cast<TQPaintEvent*>(e));
return true; return true;
} }
case TQEvent::Resize: { case TQEvent::Resize: {
resizeEvent(TQT_TQRESIZEEVENT(e)); resizeEvent(static_cast<TQResizeEvent*>(e));
return true; return true;
} }
case TQEvent::Show: { case TQEvent::Show: {
showEvent(TQT_TQSHOWEVENT(e)); showEvent(static_cast<TQShowEvent*>(e));
return true; return true;
} }
case TQEvent::Wheel: { case TQEvent::Wheel: {
wheelEvent(TQT_TQWHEELEVENT( e )); wheelEvent(static_cast<TQWheelEvent*>( e ));
return true; return true;
} }
default: { default: {

@ -417,19 +417,19 @@ bool SystemClient::eventFilter( TQObject* o, TQEvent* e )
switch( e->type()) switch( e->type())
{ {
case TQEvent::Resize: case TQEvent::Resize:
resizeEvent(TQT_TQRESIZEEVENT( e ) ); resizeEvent(static_cast<TQResizeEvent*>( e ) );
return true; return true;
case TQEvent::Paint: case TQEvent::Paint:
paintEvent(TQT_TQPAINTEVENT( e ) ); paintEvent(static_cast<TQPaintEvent*>( e ) );
return true; return true;
case TQEvent::MouseButtonDblClick: case TQEvent::MouseButtonDblClick:
mouseDoubleClickEvent(TQT_TQMOUSEEVENT( e ) ); mouseDoubleClickEvent(static_cast<TQMouseEvent*>( e ) );
return true; return true;
case TQEvent::MouseButtonPress: case TQEvent::MouseButtonPress:
processMousePressEvent(TQT_TQMOUSEEVENT( e ) ); processMousePressEvent(static_cast<TQMouseEvent*>( e ) );
return true; return true;
case TQEvent::Wheel: case TQEvent::Wheel:
wheelEvent( TQT_TQWHEELEVENT( e )); wheelEvent( static_cast<TQWheelEvent*>( e ));
return true; return true;
default: default:
break; break;

Loading…
Cancel
Save