diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-11-30 21:30:36 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-11-30 21:30:36 +0900 |
commit | 6022ab632c2ecf160a9f6f1fbb532506aeca3633 (patch) | |
tree | f0893fd10e55913a8798d4db8e6cf556fc4c9114 /kbattleship | |
parent | 92b9acd170e1c8c4d7a3cb49bc20748a619b5c87 (diff) | |
download | tdegames-6022ab632c2ecf160a9f6f1fbb532506aeca3633.tar.gz tdegames-6022ab632c2ecf160a9f6f1fbb532506aeca3633.zip |
Replace 'Event' #define strings
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kbattleship')
-rw-r--r-- | kbattleship/kbattleship/kbattleshipview.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kbattleship/kbattleship/kbattleshipview.cpp b/kbattleship/kbattleship/kbattleshipview.cpp index 9d77653b..4008803e 100644 --- a/kbattleship/kbattleship/kbattleshipview.cpp +++ b/kbattleship/kbattleship/kbattleshipview.cpp @@ -152,7 +152,7 @@ bool KBattleshipView::eventFilter(TQObject *object, TQEvent *event) { if(event->type() == TQEvent::KeyPress && m_decide) { - TQKeyEvent *keyEvent = TQT_TQKEYEVENT(event); + TQKeyEvent *keyEvent = static_cast<TQKeyEvent*>(event); if(keyEvent->key() == Key_Shift){ emit sigMouseOverField(m_lastX, m_lastY); emit changeShipPlacementDirection(); @@ -160,7 +160,7 @@ bool KBattleshipView::eventFilter(TQObject *object, TQEvent *event) } else if(event->type() == TQEvent::KeyRelease && m_decide) { - TQKeyEvent *keyEvent = TQT_TQKEYEVENT(event); + TQKeyEvent *keyEvent = static_cast<TQKeyEvent*>(event); if(keyEvent->key() == Key_Shift){ emit sigMouseOverField(m_lastX, m_lastY); emit changeShipPlacementDirection(); @@ -170,7 +170,7 @@ bool KBattleshipView::eventFilter(TQObject *object, TQEvent *event) { m_decide = false; - TQMouseEvent *mouseEvent = TQT_TQMOUSEEVENT(event); + TQMouseEvent *mouseEvent = static_cast<TQMouseEvent*>(event); if(mouseEvent->button() == TQt::RightButton){ emit sigMouseOverField(m_lastX, m_lastY); @@ -237,7 +237,7 @@ bool KBattleshipView::eventFilter(TQObject *object, TQEvent *event) setFocus(); m_decide = true; - TQMouseEvent *mouseEvent = TQT_TQMOUSEEVENT(event); + TQMouseEvent *mouseEvent = static_cast<TQMouseEvent*>(event); TQPoint point(mouseEvent->x(), mouseEvent->y()); TQRect ownRect = m_battlefield->ownRect(); |