summaryrefslogtreecommitdiffstats
path: root/kbattleship/kbattleship/kbattleshipview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kbattleship/kbattleship/kbattleshipview.cpp')
-rw-r--r--kbattleship/kbattleship/kbattleshipview.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/kbattleship/kbattleship/kbattleshipview.cpp b/kbattleship/kbattleship/kbattleshipview.cpp
index e938b77c..3e70a2a4 100644
--- a/kbattleship/kbattleship/kbattleshipview.cpp
+++ b/kbattleship/kbattleship/kbattleshipview.cpp
@@ -15,7 +15,7 @@
* *
***************************************************************************/
-#include <layout.h>
+#include <tqlayout.h>
#include <klocale.h>
#include <kdebug.h>
@@ -106,11 +106,11 @@ void KBattleshipView::drawEnemyShipsHuman(KMessage *msg, KShipList *list)
int posx, posy, placedLeft;
bool left;
int i = 3;
- while (!msg->field(TQString("ship%1").arg(i)).isNull())
+ while (!msg->field(TQString("ship%1").tqarg(i)).isNull())
{
- posx = msg->field(TQString("ship%1").arg(i)).section(" ", 0, 0).toInt();
- posy = msg->field(TQString("ship%1").arg(i)).section(" ", 1, 1).toInt();
- placedLeft = msg->field(TQString("ship%1").arg(i)).section(" ", 2, 2).toInt();
+ posx = msg->field(TQString("ship%1").tqarg(i)).section(" ", 0, 0).toInt();
+ posy = msg->field(TQString("ship%1").tqarg(i)).section(" ", 1, 1).toInt();
+ placedLeft = msg->field(TQString("ship%1").tqarg(i)).section(" ", 2, 2).toInt();
if (placedLeft == 0) left = false;
else left = true;
list->addNewShip(!left, posx, posy);