diff options
author | Michele Calgaro <[email protected]> | 2023-11-30 20:43:20 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2023-11-30 23:46:05 +0900 |
commit | 5761876d3a71e9b3c5a93b5b535b071d2240b08e (patch) | |
tree | 0ea383b7af28380ecec4a4059b1ed0bdcdbe8338 /kivio | |
parent | 2891d3c2d54dea1e2dd2a6702ee209b6f01f73f4 (diff) | |
download | koffice-5761876d3a71e9b3c5a93b5b535b071d2240b08e.tar.gz koffice-5761876d3a71e9b3c5a93b5b535b071d2240b08e.zip |
Replace 'Event' #define strings
Signed-off-by: Michele Calgaro <[email protected]>
(cherry picked from commit d7ae9fb514226c126e04cfe4f34800beb9f4ea19)
Diffstat (limited to 'kivio')
-rw-r--r-- | kivio/kiviopart/addstenciltool.cpp | 6 | ||||
-rw-r--r-- | kivio/kiviopart/ui/kivio_birdeye_panel.cpp | 4 | ||||
-rw-r--r-- | kivio/plugins/kivioconnectortool/tool_connector.cpp | 6 | ||||
-rw-r--r-- | kivio/plugins/kivioselecttool/tool_select.cpp | 6 | ||||
-rw-r--r-- | kivio/plugins/kiviotargettool/kiviotargettool.cpp | 4 | ||||
-rw-r--r-- | kivio/plugins/kiviozoomtool/tool_zoom.cpp | 12 |
6 files changed, 19 insertions, 19 deletions
diff --git a/kivio/kiviopart/addstenciltool.cpp b/kivio/kiviopart/addstenciltool.cpp index ddbe38c5..4e3f14ec 100644 --- a/kivio/kiviopart/addstenciltool.cpp +++ b/kivio/kiviopart/addstenciltool.cpp @@ -51,7 +51,7 @@ bool AddStencilTool::processEvent(TQEvent* e) switch(e->type()) { case TQEvent::MouseButtonPress: { - TQMouseEvent* me = TQT_TQMOUSEEVENT(e); + TQMouseEvent* me = static_cast<TQMouseEvent*>(e); if(me->button() == TQt::LeftButton) { m_leftMouseButtonPressed = true; @@ -63,7 +63,7 @@ bool AddStencilTool::processEvent(TQEvent* e) } case TQEvent::MouseButtonRelease: { - TQMouseEvent* me = TQT_TQMOUSEEVENT(e); + TQMouseEvent* me = static_cast<TQMouseEvent*>(e); if(m_leftMouseButtonPressed && (me->button() == TQt::LeftButton)) { m_leftMouseButtonPressed = false; @@ -75,7 +75,7 @@ bool AddStencilTool::processEvent(TQEvent* e) } case TQEvent::MouseMove: { - TQMouseEvent* me = TQT_TQMOUSEEVENT(e); + TQMouseEvent* me = static_cast<TQMouseEvent*>(e); if(m_leftMouseButtonPressed) { resize(me->pos()); diff --git a/kivio/kiviopart/ui/kivio_birdeye_panel.cpp b/kivio/kiviopart/ui/kivio_birdeye_panel.cpp index 8cb18976..ed92bff8 100644 --- a/kivio/kiviopart/ui/kivio_birdeye_panel.cpp +++ b/kivio/kiviopart/ui/kivio_birdeye_panel.cpp @@ -99,7 +99,7 @@ bool KivioBirdEyePanel::eventFilter(TQObject* o, TQEvent* ev) } if (o == canvas && ev->type() == TQEvent::MouseMove) { - TQMouseEvent* me = TQT_TQMOUSEEVENT(ev); + TQMouseEvent* me = static_cast<TQMouseEvent*>(ev); if (me->state() == TQt::LeftButton) handleMouseMoveAction(me->pos()); else @@ -110,7 +110,7 @@ bool KivioBirdEyePanel::eventFilter(TQObject* o, TQEvent* ev) } if (o == canvas && ev->type() == TQEvent::MouseButtonPress) { - TQMouseEvent* me = TQT_TQMOUSEEVENT(ev); + TQMouseEvent* me = static_cast<TQMouseEvent*>(ev); if (me->button() == TQt::LeftButton) handleMousePress(me->pos()); diff --git a/kivio/plugins/kivioconnectortool/tool_connector.cpp b/kivio/plugins/kivioconnectortool/tool_connector.cpp index 5e45cc36..5ca46ebb 100644 --- a/kivio/plugins/kivioconnectortool/tool_connector.cpp +++ b/kivio/plugins/kivioconnectortool/tool_connector.cpp @@ -93,17 +93,17 @@ bool ConnectorTool::processEvent(TQEvent* e) switch (e->type()) { case TQEvent::MouseButtonPress: - mousePress( TQT_TQMOUSEEVENT(e) ); + mousePress( static_cast<TQMouseEvent*>(e) ); return true; break; case TQEvent::MouseButtonRelease: - mouseRelease( TQT_TQMOUSEEVENT(e) ); + mouseRelease( static_cast<TQMouseEvent*>(e) ); return true; break; case TQEvent::MouseMove: - mouseMove( TQT_TQMOUSEEVENT(e) ); + mouseMove( static_cast<TQMouseEvent*>(e) ); return true; break; diff --git a/kivio/plugins/kivioselecttool/tool_select.cpp b/kivio/plugins/kivioselecttool/tool_select.cpp index 86a05245..50cdecc7 100644 --- a/kivio/plugins/kivioselecttool/tool_select.cpp +++ b/kivio/plugins/kivioselecttool/tool_select.cpp @@ -128,13 +128,13 @@ bool SelectTool::processEvent(TQEvent* e) break; case TQEvent::MouseMove: - mouseMove( TQT_TQMOUSEEVENT(e)); + mouseMove( static_cast<TQMouseEvent*>(e)); return true; break; case TQEvent::KeyPress: - if((TQT_TQKEYEVENT(e)->key() >= Key_Left) && (TQT_TQKEYEVENT(e)->key() <= Key_Down)) { - keyPress(TQT_TQKEYEVENT(e)); + if((static_cast<TQKeyEvent*>(e)->key() >= Key_Left) && (static_cast<TQKeyEvent*>(e)->key() <= Key_Down)) { + keyPress(static_cast<TQKeyEvent*>(e)); return true; } break; diff --git a/kivio/plugins/kiviotargettool/kiviotargettool.cpp b/kivio/plugins/kiviotargettool/kiviotargettool.cpp index be6f60d8..46f6b5c5 100644 --- a/kivio/plugins/kiviotargettool/kiviotargettool.cpp +++ b/kivio/plugins/kiviotargettool/kiviotargettool.cpp @@ -49,10 +49,10 @@ namespace Kivio { bool TargetTool::processEvent(TQEvent* e) { if(e->type() == TQEvent::MouseButtonPress) { - mousePress(TQT_TQMOUSEEVENT(e)); + mousePress(static_cast<TQMouseEvent*>(e)); return true; } else if(e->type() == TQEvent::MouseMove) { - mouseMove(TQT_TQMOUSEEVENT(e)); + mouseMove(static_cast<TQMouseEvent*>(e)); return true; } diff --git a/kivio/plugins/kiviozoomtool/tool_zoom.cpp b/kivio/plugins/kiviozoomtool/tool_zoom.cpp index d2a10db8..2ae6cfea 100644 --- a/kivio/plugins/kiviozoomtool/tool_zoom.cpp +++ b/kivio/plugins/kiviozoomtool/tool_zoom.cpp @@ -110,14 +110,14 @@ bool ZoomTool::processEvent(TQEvent* e) if(!m_bHandMode) { switch(e->type()) { case TQEvent::KeyPress: - if (!m_bLockKeyboard && (TQT_TQKEYEVENT(e)->key() == Key_Shift)) { + if (!m_bLockKeyboard && (static_cast<TQKeyEvent*>(e)->key() == Key_Shift)) { m_pCurrent = m_pMinus; canvas->setCursor(*m_pMinusCursor); return true; } break; case TQEvent::KeyRelease: - if (!m_bLockKeyboard && (TQT_TQKEYEVENT(e)->key() == Key_Shift)) { + if (!m_bLockKeyboard && (static_cast<TQKeyEvent*>(e)->key() == Key_Shift)) { m_pCurrent = m_pPlus; canvas->setCursor(*m_pPlusCursor); return true; @@ -125,7 +125,7 @@ bool ZoomTool::processEvent(TQEvent* e) break; case TQEvent::MouseButtonPress: { - TQMouseEvent* me = TQT_TQMOUSEEVENT(e); + TQMouseEvent* me = static_cast<TQMouseEvent*>(e); if(me->button() == TQt::LeftButton) { if(m_pCurrent == m_pMinus) { @@ -153,7 +153,7 @@ bool ZoomTool::processEvent(TQEvent* e) break; case TQEvent::MouseMove: if (m_bDrawRubber) { - canvas->continueRectDraw(TQT_TQMOUSEEVENT(e)->pos(), KivioCanvas::Rubber); + canvas->continueRectDraw(static_cast<TQMouseEvent*>(e)->pos(), KivioCanvas::Rubber); return true; } break; @@ -164,7 +164,7 @@ bool ZoomTool::processEvent(TQEvent* e) switch(e->type()) { case TQEvent::MouseButtonPress: isHandMousePressed = true; - mousePos = TQT_TQMOUSEEVENT(e)->pos(); + mousePos = static_cast<TQMouseEvent*>(e)->pos(); return true; break; case TQEvent::MouseButtonRelease: @@ -174,7 +174,7 @@ bool ZoomTool::processEvent(TQEvent* e) case TQEvent::MouseMove: if (isHandMousePressed) { canvas->setUpdatesEnabled(false); - TQPoint newPos = TQT_TQMOUSEEVENT(e)->pos(); + TQPoint newPos = static_cast<TQMouseEvent*>(e)->pos(); mousePos -= newPos; canvas->scrollDx(-mousePos.x()); canvas->scrollDy(-mousePos.y()); |