summaryrefslogtreecommitdiffstats
path: root/kbattleship
diff options
context:
space:
mode:
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."));
}