summaryrefslogtreecommitdiffstats
path: root/kenolaba/Move.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:42:31 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:42:31 +0000
commit576eb4299a00bc053db35414406f46372a0f70f2 (patch)
tree4c030922d533821db464af566188e7d40cc8848c /kenolaba/Move.cpp
parent0718336b6017d1a4fc1d626544180a5a2a29ddec (diff)
downloadtdegames-576eb4299a00bc053db35414406f46372a0f70f2.tar.gz
tdegames-576eb4299a00bc053db35414406f46372a0f70f2.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegames@1157643 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kenolaba/Move.cpp')
-rw-r--r--kenolaba/Move.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kenolaba/Move.cpp b/kenolaba/Move.cpp
index 40bc3938..27e7b53a 100644
--- a/kenolaba/Move.cpp
+++ b/kenolaba/Move.cpp
@@ -7,14 +7,14 @@
#include <assert.h>
#include <stdio.h>
-#include <qstring.h>
+#include <tqstring.h>
#include <klocale.h>
#include "Move.h"
#include "Board.h"
-const QString nameOfDir(int dir)
+const TQString nameOfDir(int dir)
{
dir = dir % 6;
return
@@ -23,22 +23,22 @@ const QString nameOfDir(int dir)
(dir == 3) ? i18n("LeftDown") :
(dir == 4) ? i18n("Left") :
(dir == 5) ? i18n("LeftUp") :
- (dir == 0) ? i18n("RightUp") : QString("??");
+ (dir == 0) ? i18n("RightUp") : TQString("??");
}
-QString nameOfPos(int p)
+TQString nameOfPos(int p)
{
static char tmp[3];
tmp[0] = 'A' + (p-12)/11;
tmp[1] = '1' + (p-12)%11;
tmp[2] = 0;
- return QString( tmp );
+ return TQString( tmp );
}
-QString Move::name() const
+TQString Move::name() const
{
- QString s,tmp;
+ TQString s,tmp;
/* sideway moves... */
if (type == left3 || type == right3) {
@@ -74,7 +74,7 @@ QString Move::name() const
s+= (type == left2) ? nameOfDir(direction-1): nameOfDir(direction+1);
}
else if (type == none) {
- s = QString("??");
+ s = TQString("??");
}
else {
s = nameOfPos( field );
@@ -82,7 +82,7 @@ QString Move::name() const
s += nameOfDir(direction);
tmp = (type <3 ) ? i18n("Out") :
- (type <6 ) ? i18n("Push") : QString("");
+ (type <6 ) ? i18n("Push") : TQString("");
if (!tmp.isEmpty()) {
s += '/';
s += tmp;