summaryrefslogtreecommitdiffstats
path: root/kivio/plugins/kiviozoomtool/tool_zoom.cpp
diff options
context:
space:
mode:
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());