From 5e5046aefa744f5dd80a1742a10212a25d133912 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Thu, 30 Nov 2023 21:30:19 +0900 Subject: [PATCH] Replace 'Event' #define strings Signed-off-by: Michele Calgaro --- twin-styles/cde/cdeclient.cpp | 12 +++++------ twin-styles/glow/glowclient.cpp | 12 +++++------ twin-styles/icewm/icewm.cpp | 10 +++++----- twin-styles/kde1/kde1client.cpp | 20 +++++++++---------- twin-styles/kstep/nextclient.cpp | 12 +++++------ twin-styles/openlook/OpenLook.cpp | 16 +++++++-------- twin-styles/riscos/Manager.cpp | 10 +++++----- .../smooth-blend/client/smoothblend.cpp | 12 +++++------ twin-styles/system/systemclient.cpp | 10 +++++----- 9 files changed, 57 insertions(+), 57 deletions(-) diff --git a/twin-styles/cde/cdeclient.cpp b/twin-styles/cde/cdeclient.cpp index eaea2002..5aa8215e 100644 --- a/twin-styles/cde/cdeclient.cpp +++ b/twin-styles/cde/cdeclient.cpp @@ -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(e)); return true; case TQEvent::Paint: - paintEvent(TQT_TQPAINTEVENT(e)); + paintEvent(static_cast(e)); return true; case TQEvent::MouseButtonDblClick: - mouseDoubleClickEvent(TQT_TQMOUSEEVENT(e)); + mouseDoubleClickEvent(static_cast(e)); return true; case TQEvent::MouseButtonPress: - processMousePressEvent(TQT_TQMOUSEEVENT(e)); + processMousePressEvent(static_cast(e)); return true; case TQEvent::Show: - showEvent(TQT_TQSHOWEVENT(e)); + showEvent(static_cast(e)); return true; case TQEvent::Wheel: - wheelEvent( TQT_TQWHEELEVENT( e )); + wheelEvent( static_cast( e )); return true; default: break; diff --git a/twin-styles/glow/glowclient.cpp b/twin-styles/glow/glowclient.cpp index f2df7b4b..d4650246 100644 --- a/twin-styles/glow/glowclient.cpp +++ b/twin-styles/glow/glowclient.cpp @@ -865,22 +865,22 @@ bool GlowClient::eventFilter( TQObject* o, TQEvent* e ) switch( e->type()) { case TQEvent::Resize: - resizeEvent( TQT_TQRESIZEEVENT( e )); + resizeEvent( static_cast( e )); return true; case TQEvent::Paint: - paintEvent( TQT_TQPAINTEVENT( e )); + paintEvent( static_cast( e )); return true; case TQEvent::MouseButtonDblClick: - mouseDoubleClickEvent( TQT_TQMOUSEEVENT( e )); + mouseDoubleClickEvent( static_cast( e )); return true; case TQEvent::MouseButtonPress: - processMousePressEvent( TQT_TQMOUSEEVENT( e )); + processMousePressEvent( static_cast( e )); return true; case TQEvent::Show: - showEvent( TQT_TQSHOWEVENT( e )); + showEvent( static_cast( e )); return true; case TQEvent::Wheel: - wheelEvent( TQT_TQWHEELEVENT( e )); + wheelEvent( static_cast( e )); return true; default: break; diff --git a/twin-styles/icewm/icewm.cpp b/twin-styles/icewm/icewm.cpp index 3c8441ee..3e4b9c08 100644 --- a/twin-styles/icewm/icewm.cpp +++ b/twin-styles/icewm/icewm.cpp @@ -1669,19 +1669,19 @@ bool IceWMClient::eventFilter( TQObject* o, TQEvent* e ) switch( e->type()) { case TQEvent::Resize: - resizeEvent(TQT_TQRESIZEEVENT( e ) ); + resizeEvent(static_cast( e ) ); return true; case TQEvent::Paint: - paintEvent(TQT_TQPAINTEVENT( e ) ); + paintEvent(static_cast( e ) ); return true; case TQEvent::MouseButtonDblClick: - mouseDoubleClickEvent(TQT_TQMOUSEEVENT( e ) ); + mouseDoubleClickEvent(static_cast( e ) ); return true; case TQEvent::MouseButtonPress: - processMousePressEvent(TQT_TQMOUSEEVENT( e ) ); + processMousePressEvent(static_cast( e ) ); return true; case TQEvent::Wheel: - wheelEvent( TQT_TQWHEELEVENT( e )); + wheelEvent( static_cast( e )); return true; default: break; diff --git a/twin-styles/kde1/kde1client.cpp b/twin-styles/kde1/kde1client.cpp index 5e569d42..c06af33d 100644 --- a/twin-styles/kde1/kde1client.cpp +++ b/twin-styles/kde1/kde1client.cpp @@ -549,23 +549,23 @@ bool StdClient::eventFilter( TQObject* o, TQEvent* e ) switch ( e->type() ) { case TQEvent::Resize: - resizeEvent( TQT_TQRESIZEEVENT( e ) ); + resizeEvent( static_cast( e ) ); return true; case TQEvent::Paint: - paintEvent( TQT_TQPAINTEVENT( e ) ); + paintEvent( static_cast( e ) ); return true; case TQEvent::MouseButtonDblClick: - mouseDoubleClickEvent( TQT_TQMOUSEEVENT( e ) ); + mouseDoubleClickEvent( static_cast( e ) ); return true; case TQEvent::MouseButtonPress: - processMousePressEvent( TQT_TQMOUSEEVENT( e ) ); + processMousePressEvent( static_cast( e ) ); return true; case TQEvent::Wheel: - wheelEvent( TQT_TQWHEELEVENT( e )); + wheelEvent( static_cast( 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( e ) ); return true; case TQEvent::Paint: - paintEvent( TQT_TQPAINTEVENT( e ) ); + paintEvent( static_cast( e ) ); return true; case TQEvent::MouseButtonDblClick: - mouseDoubleClickEvent( TQT_TQMOUSEEVENT( e ) ); + mouseDoubleClickEvent( static_cast( e ) ); return true; case TQEvent::MouseButtonPress: - processMousePressEvent( TQT_TQMOUSEEVENT( e ) ); + processMousePressEvent( static_cast( e ) ); return true; case TQEvent::Wheel: - wheelEvent( TQT_TQWHEELEVENT( e )); + wheelEvent( static_cast( e )); return true; default: diff --git a/twin-styles/kstep/nextclient.cpp b/twin-styles/kstep/nextclient.cpp index 5bd5b0fd..a086400d 100644 --- a/twin-styles/kstep/nextclient.cpp +++ b/twin-styles/kstep/nextclient.cpp @@ -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( e )); return true; case TQEvent::Paint: - paintEvent(TQT_TQPAINTEVENT( e )); + paintEvent(static_cast( e )); return true; case TQEvent::MouseButtonDblClick: - mouseDoubleClickEvent(TQT_TQMOUSEEVENT( e )); + mouseDoubleClickEvent(static_cast( e )); return true; case TQEvent::Wheel: - wheelEvent( TQT_TQWHEELEVENT( e )); + wheelEvent( static_cast( e )); return true; case TQEvent::MouseButtonPress: - processMousePressEvent(TQT_TQMOUSEEVENT( e )); + processMousePressEvent(static_cast( e )); return true; case TQEvent::Show: - showEvent(TQT_TQSHOWEVENT( e )); + showEvent(static_cast( e )); return true; default: break; diff --git a/twin-styles/openlook/OpenLook.cpp b/twin-styles/openlook/OpenLook.cpp index 71489d91..b824b9a6 100644 --- a/twin-styles/openlook/OpenLook.cpp +++ b/twin-styles/openlook/OpenLook.cpp @@ -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(e)); return true; case TQEvent::Paint: - paintEvent(TQT_TQPAINTEVENT(e)); + paintEvent(static_cast(e)); return true; case TQEvent::MouseButtonDblClick: - mouseDoubleClickEvent(TQT_TQMOUSEEVENT(e)); + mouseDoubleClickEvent(static_cast(e)); return true; case TQEvent::Wheel: - wheelEvent( TQT_TQWHEELEVENT( e )); + wheelEvent( static_cast( e )); return true; case TQEvent::MouseButtonPress: - if (!isButtonPress(TQT_TQMOUSEEVENT(e))) { - processMousePressEvent(TQT_TQMOUSEEVENT(e)); + if (!isButtonPress(static_cast(e))) { + processMousePressEvent(static_cast(e)); } return true; case TQEvent::MouseButtonRelease: - if (isButtonRelease(TQT_TQMOUSEEVENT(e))) { + if (isButtonRelease(static_cast(e))) { return true; } else { return false; } case TQEvent::Show: - showEvent(TQT_TQSHOWEVENT(e)); + showEvent(static_cast(e)); return true; default: break; diff --git a/twin-styles/riscos/Manager.cpp b/twin-styles/riscos/Manager.cpp index ada3336f..9eb26720 100644 --- a/twin-styles/riscos/Manager.cpp +++ b/twin-styles/riscos/Manager.cpp @@ -86,19 +86,19 @@ bool Manager::eventFilter(TQObject *o, TQEvent *e) switch (e->type()) { case TQEvent::Resize: - resizeEvent(TQT_TQRESIZEEVENT(e)); + resizeEvent(static_cast(e)); return true; case TQEvent::Paint: - paintEvent(TQT_TQPAINTEVENT(e)); + paintEvent(static_cast(e)); return true; case TQEvent::MouseButtonDblClick: - mouseDoubleClickEvent(TQT_TQMOUSEEVENT(e)); + mouseDoubleClickEvent(static_cast(e)); return true; case TQEvent::MouseButtonPress: - processMousePressEvent(TQT_TQMOUSEEVENT(e)); + processMousePressEvent(static_cast(e)); return true; case TQEvent::Wheel: - wheelEvent( TQT_TQWHEELEVENT( e )); + wheelEvent( static_cast( e )); return true; case TQEvent::MouseButtonRelease: return false; diff --git a/twin-styles/smooth-blend/client/smoothblend.cpp b/twin-styles/smooth-blend/client/smoothblend.cpp index b097a32b..ba9d5973 100644 --- a/twin-styles/smooth-blend/client/smoothblend.cpp +++ b/twin-styles/smooth-blend/client/smoothblend.cpp @@ -1047,27 +1047,27 @@ bool smoothblendClient::eventFilter(TQObject *obj, TQEvent *e) { switch (e->type()) { case TQEvent::MouseButtonDblClick: { - mouseDoubleClickEvent(TQT_TQMOUSEEVENT(e)); + mouseDoubleClickEvent(static_cast(e)); return true; } case TQEvent::MouseButtonPress: { - processMousePressEvent(TQT_TQMOUSEEVENT(e)); + processMousePressEvent(static_cast(e)); return true; } case TQEvent::Paint: { - paintEvent(TQT_TQPAINTEVENT(e)); + paintEvent(static_cast(e)); return true; } case TQEvent::Resize: { - resizeEvent(TQT_TQRESIZEEVENT(e)); + resizeEvent(static_cast(e)); return true; } case TQEvent::Show: { - showEvent(TQT_TQSHOWEVENT(e)); + showEvent(static_cast(e)); return true; } case TQEvent::Wheel: { - wheelEvent(TQT_TQWHEELEVENT( e )); + wheelEvent(static_cast( e )); return true; } default: { diff --git a/twin-styles/system/systemclient.cpp b/twin-styles/system/systemclient.cpp index 822fb6df..17b93e20 100644 --- a/twin-styles/system/systemclient.cpp +++ b/twin-styles/system/systemclient.cpp @@ -417,19 +417,19 @@ bool SystemClient::eventFilter( TQObject* o, TQEvent* e ) switch( e->type()) { case TQEvent::Resize: - resizeEvent(TQT_TQRESIZEEVENT( e ) ); + resizeEvent(static_cast( e ) ); return true; case TQEvent::Paint: - paintEvent(TQT_TQPAINTEVENT( e ) ); + paintEvent(static_cast( e ) ); return true; case TQEvent::MouseButtonDblClick: - mouseDoubleClickEvent(TQT_TQMOUSEEVENT( e ) ); + mouseDoubleClickEvent(static_cast( e ) ); return true; case TQEvent::MouseButtonPress: - processMousePressEvent(TQT_TQMOUSEEVENT( e ) ); + processMousePressEvent(static_cast( e ) ); return true; case TQEvent::Wheel: - wheelEvent( TQT_TQWHEELEVENT( e )); + wheelEvent( static_cast( e )); return true; default: break;