diff options
author | Michele Calgaro <[email protected]> | 2023-11-06 11:39:06 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2023-11-07 11:03:40 +0900 |
commit | afc67225900e0375f32048f4df27f32986704a67 (patch) | |
tree | 1fe1cadfa3aef633b34a3a773d111c55f07213d0 /kbattleship | |
parent | 0195c436ad939e6c1cde8953a9bff70ccca701e5 (diff) | |
download | tdegames-afc67225900e0375f32048f4df27f32986704a67.tar.gz tdegames-afc67225900e0375f32048f4df27f32986704a67.zip |
Replace Qt with TQt
Signed-off-by: Michele Calgaro <[email protected]>
(cherry picked from commit 4243c1195d662a4e6e0971cef547520ece2c6673)
Diffstat (limited to 'kbattleship')
-rw-r--r-- | kbattleship/kbattleship/kbattleshipview.cpp | 4 | ||||
-rw-r--r-- | kbattleship/kbattleship/kshiplist.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/kbattleship/kbattleship/kbattleshipview.cpp b/kbattleship/kbattleship/kbattleshipview.cpp index 42b699bb..9d77653b 100644 --- a/kbattleship/kbattleship/kbattleshipview.cpp +++ b/kbattleship/kbattleship/kbattleshipview.cpp @@ -172,13 +172,13 @@ bool KBattleshipView::eventFilter(TQObject *object, TQEvent *event) TQMouseEvent *mouseEvent = TQT_TQMOUSEEVENT(event); - if(mouseEvent->button() == Qt::RightButton){ + if(mouseEvent->button() == TQt::RightButton){ emit sigMouseOverField(m_lastX, m_lastY); emit changeShipPlacementDirection(); return true; } - if(mouseEvent->button() != Qt::LeftButton) + if(mouseEvent->button() != TQt::LeftButton) return false; TQPoint point(mouseEvent->x(), mouseEvent->y()); diff --git a/kbattleship/kbattleship/kshiplist.cpp b/kbattleship/kbattleship/kshiplist.cpp index e490fd0a..538b57e3 100644 --- a/kbattleship/kbattleship/kshiplist.cpp +++ b/kbattleship/kbattleship/kshiplist.cpp @@ -118,7 +118,7 @@ bool KShipList::canAddShips() void KShipList::addNewShip(int button, int fieldx, int fieldy) { - if(!addNewShip(!(button == Qt::LeftButton), fieldx, fieldy)) + if(!addNewShip(!(button == TQt::LeftButton), fieldx, fieldy)) KMessageBox::information(0L, i18n("You cannot place the ship here.")); } |