diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-11-30 21:30:19 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-11-30 21:30:19 +0900 |
commit | 5e5046aefa744f5dd80a1742a10212a25d133912 (patch) | |
tree | 332d4a45b7c65ed95e844201522e3f353fb83e64 | |
parent | f6494efdde0a3cf0f93fd8e51f2f84accaeb19c1 (diff) | |
download | tdeartwork-5e5046aefa744f5dd80a1742a10212a25d133912.tar.gz tdeartwork-5e5046aefa744f5dd80a1742a10212a25d133912.zip |
Replace 'Event' #define strings
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-rw-r--r-- | twin-styles/cde/cdeclient.cpp | 12 | ||||
-rw-r--r-- | twin-styles/glow/glowclient.cpp | 12 | ||||
-rw-r--r-- | twin-styles/icewm/icewm.cpp | 10 | ||||
-rw-r--r-- | twin-styles/kde1/kde1client.cpp | 20 | ||||
-rw-r--r-- | twin-styles/kstep/nextclient.cpp | 12 | ||||
-rw-r--r-- | twin-styles/openlook/OpenLook.cpp | 16 | ||||
-rw-r--r-- | twin-styles/riscos/Manager.cpp | 10 | ||||
-rw-r--r-- | twin-styles/smooth-blend/client/smoothblend.cpp | 12 | ||||
-rw-r--r-- | 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<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; 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<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; 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<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; 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<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: 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<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; 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<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; 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<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; 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<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: { 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<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; |