summaryrefslogtreecommitdiffstats
path: root/kbackgammon/engines/offline/kbgoffline.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kbackgammon/engines/offline/kbgoffline.cpp')
-rw-r--r--kbackgammon/engines/offline/kbgoffline.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kbackgammon/engines/offline/kbgoffline.cpp b/kbackgammon/engines/offline/kbgoffline.cpp
index 19f08bf7..604d196e 100644
--- a/kbackgammon/engines/offline/kbgoffline.cpp
+++ b/kbackgammon/engines/offline/kbgoffline.cpp
@@ -24,7 +24,7 @@
#include "kbgoffline.moc"
#include "kbgoffline.h"
-#include <layout.h>
+#include <tqlayout.h>
#include <tqbuttongroup.h>
#include <tqcheckbox.h>
#include <tqtimer.h>
@@ -60,7 +60,7 @@ public:
/*
* Store two copies of the game: one backup and a working copy
*/
- KBgStatus mGame[2];
+ KBgtqStatus mGame[2];
/*
* Use the standard method of obtaining random numbers
@@ -318,14 +318,14 @@ void KBgEngineOffline::newGame()
u = getRandom();
t = getRandom();
emit infoText(i18n("%1 rolls %2, %3 rolls %4.").
- arg(d->mName[0]).arg(u).arg(d->mName[1]).arg(t));
+ tqarg(d->mName[0]).tqarg(u).tqarg(d->mName[1]).tqarg(t));
}
if (u > t) {
- emit infoText(i18n("%1 makes the first move.").arg(d->mName[0]));
+ emit infoText(i18n("%1 makes the first move.").tqarg(d->mName[0]));
d->mRoll = US;
} else {
- emit infoText(i18n("%1 makes the first move.").arg(d->mName[1]));
+ emit infoText(i18n("%1 makes the first move.").tqarg(d->mName[1]));
d->mRoll = THEM;
int n = u; u = t; t = n;
}
@@ -338,7 +338,7 @@ void KBgEngineOffline::newGame()
/*
* tell the user
*/
- emit statText(i18n("%1 vs. %2").arg(d->mName[0]).arg(d->mName[1]));
+ emit statText(i18n("%1 vs. %2").tqarg(d->mName[0]).tqarg(d->mName[1]));
}
/*
@@ -722,7 +722,7 @@ bool KBgEngineOffline::queryExit()
void KBgEngineOffline::handleCommand(const TQString& cmd)
{
emit infoText(i18n("Text commands are not yet working. "
- "The command '%1' has been ignored.").arg(cmd));
+ "The command '%1' has been ignored.").tqarg(cmd));
}
/*
@@ -791,11 +791,11 @@ void KBgEngineOffline::toggleEditMode()
emit allowCommand(Roll, false);
emit allowCommand(Done, false);
emit allowCommand(Cube, false);
- emit statText(i18n("%1 vs. %2 - Edit Mode").arg(d->mName[0]).arg(d->mName[1]));
+ emit statText(i18n("%1 vs. %2 - Edit Mode").tqarg(d->mName[0]).tqarg(d->mName[1]));
} else {
d->mNew->setEnabled(true);
d->mSwap->setEnabled(true);
- emit statText(i18n("%1 vs. %2").arg(d->mName[0]).arg(d->mName[1]));
+ emit statText(i18n("%1 vs. %2").tqarg(d->mName[0]).tqarg(d->mName[1]));
emit getState(&d->mGame[1]);
d->mGame[0] = d->mGame[1];
emit allowCommand(Done, d->mDoneFlag);