diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-11-30 20:43:20 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-11-30 23:46:05 +0900 |
commit | 5761876d3a71e9b3c5a93b5b535b071d2240b08e (patch) | |
tree | 0ea383b7af28380ecec4a4059b1ed0bdcdbe8338 /karbon | |
parent | 2891d3c2d54dea1e2dd2a6702ee209b6f01f73f4 (diff) | |
download | koffice-5761876d3a71e9b3c5a93b5b535b071d2240b08e.tar.gz koffice-5761876d3a71e9b3c5a93b5b535b071d2240b08e.zip |
Replace 'Event' #define strings
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit d7ae9fb514226c126e04cfe4f34800beb9f4ea19)
Diffstat (limited to 'karbon')
-rw-r--r-- | karbon/dockers/vdocumentdocker.cpp | 2 | ||||
-rw-r--r-- | karbon/vtool.cpp | 4 | ||||
-rw-r--r-- | karbon/widgets/vstrokefillpreview.cpp | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/karbon/dockers/vdocumentdocker.cpp b/karbon/dockers/vdocumentdocker.cpp index dc676a85..cf02d2cd 100644 --- a/karbon/dockers/vdocumentdocker.cpp +++ b/karbon/dockers/vdocumentdocker.cpp @@ -102,7 +102,7 @@ VDocumentPreview::eventFilter( TQObject* object, TQEvent* event ) } KoRect rect = m_view->canvasWidget()->boundingBox(); - TQMouseEvent* mouseEvent = TQT_TQMOUSEEVENT( event ); + TQMouseEvent* mouseEvent = static_cast<TQMouseEvent*>( event ); if( event->type() == TQEvent::MouseButtonPress ) { m_firstPoint.setX( mouseEvent->pos().x() ); diff --git a/karbon/vtool.cpp b/karbon/vtool.cpp index a9b29ac8..906f53c9 100644 --- a/karbon/vtool.cpp +++ b/karbon/vtool.cpp @@ -150,7 +150,7 @@ VTool::keyEvent( TQEvent* event ) // Key press events. if( event->type() == TQEvent::KeyPress ) { - TQKeyEvent* keyEvent = TQT_TQKEYEVENT( event ); + TQKeyEvent* keyEvent = static_cast<TQKeyEvent*>( event ); // Terminate the current drawing with the Enter-key: if( @@ -211,7 +211,7 @@ VTool::keyEvent( TQEvent* event ) // Key release events: if( event->type() == TQEvent::KeyRelease ) { - TQKeyEvent* keyEvent = TQT_TQKEYEVENT( event ); + TQKeyEvent* keyEvent = static_cast<TQKeyEvent*>( event ); TQt::Key key = (TQt::Key)keyEvent->key(); if( key == TQt::Key_Shift ) diff --git a/karbon/widgets/vstrokefillpreview.cpp b/karbon/widgets/vstrokefillpreview.cpp index 5e05eecd..c7b165f4 100644 --- a/karbon/widgets/vstrokefillpreview.cpp +++ b/karbon/widgets/vstrokefillpreview.cpp @@ -84,7 +84,7 @@ VStrokeFillPreview::paintEvent( TQPaintEvent* event ) bool VStrokeFillPreview::eventFilter( TQObject *, TQEvent *event ) { - TQMouseEvent* e = TQT_TQMOUSEEVENT( event ); + TQMouseEvent* e = static_cast<TQMouseEvent*>( event ); int ex = e->x() - int( ( width() - PANEL_SIZEX ) / 2 ); int ey = e->y() - int( ( height() - PANEL_SIZEY ) / 2 ); |