summaryrefslogtreecommitdiffstats
path: root/kivio/plugins/kiviozoomtool/tool_zoom.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-11-30 20:43:20 +0900
committerMichele Calgaro <[email protected]>2023-11-30 21:03:28 +0900
commitd7ae9fb514226c126e04cfe4f34800beb9f4ea19 (patch)
tree4d12f786f3541b9ff0225f0ceb2bec0b9268a163 /kivio/plugins/kiviozoomtool/tool_zoom.cpp
parentb727f4b3b1957bec28a350575237b93f8f278cdb (diff)
downloadkoffice-d7ae9fb514226c126e04cfe4f34800beb9f4ea19.tar.gz
koffice-d7ae9fb514226c126e04cfe4f34800beb9f4ea19.zip
Replace 'Event' #define strings
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'kivio/plugins/kiviozoomtool/tool_zoom.cpp')
-rw-r--r--kivio/plugins/kiviozoomtool/tool_zoom.cpp12
1 files changed, 6 insertions, 6 deletions
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());