summaryrefslogtreecommitdiffstats
path: root/twin
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-11-30 21:30:28 +0900
committerMichele Calgaro <[email protected]>2023-12-02 22:50:02 +0900
commitb19e4cab8888a6f486ebdb7242ea5f65435cb68c (patch)
treeb23c2cdc474711742f76fa71df81896c3f421c94 /twin
parent6b5d95d534223dc1d09d8d8f5eec1f146d8b1dec (diff)
downloadtdebase-b19e4cab8888a6f486ebdb7242ea5f65435cb68c.tar.gz
tdebase-b19e4cab8888a6f486ebdb7242ea5f65435cb68c.zip
Replace 'Event' #define strings
Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit 8aea8afbc5fcc3bfd0d6234bf91436cbb290ed43)
Diffstat (limited to 'twin')
-rw-r--r--twin/clients/b2/b2client.cpp12
-rw-r--r--twin/clients/keramik/keramik.cpp10
-rw-r--r--twin/clients/test/test.cpp2
-rw-r--r--twin/events.cpp10
-rw-r--r--twin/kcmtwin/twinrules/detectwidget.cpp2
-rw-r--r--twin/lib/kcommondecoration.cpp10
6 files changed, 23 insertions, 23 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:
diff --git a/twin/events.cpp b/twin/events.cpp
index 0c08d102e..10c06f93d 100644
--- a/twin/events.cpp
+++ b/twin/events.cpp
@@ -1300,25 +1300,25 @@ bool Client::eventFilter( TQObject* o, TQEvent* e )
return false;
if( e->type() == TQEvent::MouseButtonPress )
{
- TQMouseEvent* ev = TQT_TQMOUSEEVENT( e );
+ TQMouseEvent* ev = static_cast<TQMouseEvent*>( e );
return buttonPressEvent( decorationId(), qtToX11Button( ev->button()), qtToX11State( ev->state()),
ev->x(), ev->y(), ev->globalX(), ev->globalY() );
}
if( e->type() == TQEvent::MouseButtonRelease )
{
- TQMouseEvent* ev = TQT_TQMOUSEEVENT( e );
+ TQMouseEvent* ev = static_cast<TQMouseEvent*>( e );
return buttonReleaseEvent( decorationId(), qtToX11Button( ev->button()), qtToX11State( ev->state()),
ev->x(), ev->y(), ev->globalX(), ev->globalY() );
}
if( e->type() == TQEvent::MouseMove ) // FRAME i fake z enter/leave?
{
- TQMouseEvent* ev = TQT_TQMOUSEEVENT( e );
+ TQMouseEvent* ev = static_cast<TQMouseEvent*>( e );
return motionNotifyEvent( decorationId(), qtToX11State( ev->state()),
ev->x(), ev->y(), ev->globalX(), ev->globalY() );
}
if( e->type() == TQEvent::Wheel )
{
- TQWheelEvent* ev = TQT_TQWHEELEVENT( e );
+ TQWheelEvent* ev = static_cast<TQWheelEvent*>( e );
bool r = buttonPressEvent( decorationId(), ev->delta() > 0 ? Button4 : Button5, qtToX11State( ev->state()),
ev->x(), ev->y(), ev->globalX(), ev->globalY() );
r = r || buttonReleaseEvent( decorationId(), ev->delta() > 0 ? Button4 : Button5, qtToX11State( ev->state()),
@@ -1327,7 +1327,7 @@ bool Client::eventFilter( TQObject* o, TQEvent* e )
}
if( e->type() == TQEvent::Resize )
{
- TQResizeEvent* ev = TQT_TQRESIZEEVENT( e );
+ TQResizeEvent* ev = static_cast<TQResizeEvent*>( e );
// Filter out resize events that inform about size different than frame size.
// This will ensure that decoration->width() etc. and decoration->widget()->width() will be in sync.
// These events only seem to be delayed events from initial resizing before show() was called
diff --git a/twin/kcmtwin/twinrules/detectwidget.cpp b/twin/kcmtwin/twinrules/detectwidget.cpp
index 546db66db..b01066403 100644
--- a/twin/kcmtwin/twinrules/detectwidget.cpp
+++ b/twin/kcmtwin/twinrules/detectwidget.cpp
@@ -176,7 +176,7 @@ bool DetectDialog::eventFilter( TQObject* o, TQEvent* e )
return false;
delete grabber;
grabber = NULL;
- if( TQT_TQMOUSEEVENT( e )->button() != TQt::LeftButton )
+ if( static_cast<TQMouseEvent*>( e )->button() != TQt::LeftButton )
{
emit detectionDone( false );
return true;
diff --git a/twin/lib/kcommondecoration.cpp b/twin/lib/kcommondecoration.cpp
index 6bec9b928..7d219ae7f 100644
--- a/twin/lib/kcommondecoration.cpp
+++ b/twin/lib/kcommondecoration.cpp
@@ -849,19 +849,19 @@ bool KCommonDecoration::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:
return false;