diff options
author | Michele Calgaro <[email protected]> | 2023-11-30 21:30:28 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2023-12-02 14:46:25 +0900 |
commit | 8aea8afbc5fcc3bfd0d6234bf91436cbb290ed43 (patch) | |
tree | 9bb7ea2dce56ce30b2ea9a7006542a2a72ae323b /twin/clients | |
parent | 5590077e66774b629235516744993014360c3d25 (diff) | |
download | tdebase-8aea8afbc5fcc3bfd0d6234bf91436cbb290ed43.tar.gz tdebase-8aea8afbc5fcc3bfd0d6234bf91436cbb290ed43.zip |
Replace 'Event' #define strings
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'twin/clients')
-rw-r--r-- | twin/clients/b2/b2client.cpp | 12 | ||||
-rw-r--r-- | twin/clients/keramik/keramik.cpp | 10 | ||||
-rw-r--r-- | twin/clients/test/test.cpp | 2 |
3 files changed, 12 insertions, 12 deletions
diff --git a/twin/clients/b2/b2client.cpp b/twin/clients/b2/b2client.cpp index afef7799f..13375aaf0 100644 --- a/twin/clients/b2/b2client.cpp +++ b/twin/clients/b2/b2client.cpp @@ -1183,22 +1183,22 @@ bool B2Client::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: - titlebar->mouseDoubleClickEvent(TQT_TQMOUSEEVENT(e)); + titlebar->mouseDoubleClickEvent(static_cast<TQMouseEvent*>(e)); return true; case TQEvent::Wheel: - titlebar->wheelEvent(TQT_TQWHEELEVENT(e)); + titlebar->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/clients/keramik/keramik.cpp b/twin/clients/keramik/keramik.cpp index 0a9c7e2d5..fe7cc37d7 100644 --- a/twin/clients/keramik/keramik.cpp +++ b/twin/clients/keramik/keramik.cpp @@ -1802,23 +1802,23 @@ bool KeramikClient::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/clients/test/test.cpp b/twin/clients/test/test.cpp index 4b38692d1..e306520d5 100644 --- a/twin/clients/test/test.cpp +++ b/twin/clients/test/test.cpp @@ -106,7 +106,7 @@ bool Decoration::eventFilter( TQObject* o, TQEvent* e ) { case TQEvent::MouseButtonPress: { // FRAME - processMousePressEvent( TQT_TQMOUSEEVENT( e )); + processMousePressEvent( static_cast<TQMouseEvent*>( e )); return true; } case TQEvent::Show: |