summaryrefslogtreecommitdiffstats
path: root/kbattleship
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-11-06 11:39:06 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-11-07 11:02:18 +0900
commit4243c1195d662a4e6e0971cef547520ece2c6673 (patch)
treec2ad6162439ea0d563c5a094be51a756340b33ab /kbattleship
parent05581ab8401a949370656e30b27918af89675edc (diff)
downloadtdegames-4243c1195d662a4e6e0971cef547520ece2c6673.tar.gz
tdegames-4243c1195d662a4e6e0971cef547520ece2c6673.zip
Replace Qt with TQt
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kbattleship')
-rw-r--r--kbattleship/kbattleship/kbattleshipview.cpp4
-rw-r--r--kbattleship/kbattleship/kshiplist.cpp2
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."));
}