Replace 'Event' #define strings

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/34/head
Michele Calgaro 1 year 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;
switch (e->type()) {
case TQEvent::Resize:
resizeEvent(TQT_TQRESIZEEVENT(e));
resizeEvent(static_cast<TQResizeEvent*>(e));
return true;
case TQEvent::Paint:
paintEvent(TQT_TQPAINTEVENT(e));
paintEvent(static_cast<TQPaintEvent*>(e));
return true;
case TQEvent::MouseButtonDblClick:
mouseDoubleClickEvent(TQT_TQMOUSEEVENT(e));
mouseDoubleClickEvent(static_cast<TQMouseEvent*>(e));
return true;
case TQEvent::MouseButtonPress:
processMousePressEvent(TQT_TQMOUSEEVENT(e));
processMousePressEvent(static_cast<TQMouseEvent*>(e));
return true;
case TQEvent::Show:
showEvent(TQT_TQSHOWEVENT(e));
showEvent(static_cast<TQShowEvent*>(e));
return true;
case TQEvent::Wheel:
wheelEvent( TQT_TQWHEELEVENT( e ));
wheelEvent( static_cast<TQWheelEvent*>( e ));
return true;
default:
break;

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

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

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

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

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

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

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

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

Loading…
Cancel
Save