summaryrefslogtreecommitdiffstats
path: root/kenolaba/Board.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 04:58:26 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 04:58:26 +0000
commit838baf3f99ec5ab81b063eb5449a3381d860f377 (patch)
treedd31abcfde08ca92e4623b8f50b3d762a87c997a /kenolaba/Board.cpp
parent2bf598bafa22fac4126fc8842df6b0119aadc0e9 (diff)
downloadtdegames-838baf3f99ec5ab81b063eb5449a3381d860f377.tar.gz
tdegames-838baf3f99ec5ab81b063eb5449a3381d860f377.zip
TQt4 port kdegames
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegames@1236074 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kenolaba/Board.cpp')
-rw-r--r--kenolaba/Board.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/kenolaba/Board.cpp b/kenolaba/Board.cpp
index d939ad09..119557d2 100644
--- a/kenolaba/Board.cpp
+++ b/kenolaba/Board.cpp
@@ -1386,13 +1386,13 @@ int Board::setASCIIState(const TQString& state)
int color2Count = 0;
/* get moveNo if supplied */
- if ((index = state.find("#"))>=0)
+ if ((index = state.tqfind("#"))>=0)
moveNo = state.mid(index+1,3).toInt();
int f=12, row=0, rowEnd = 17;
char c = ' ';
- index=state.find("/");
+ index=state.tqfind("/");
while(index>=0) {
@@ -1420,17 +1420,17 @@ int Board::setASCIIState(const TQString& state)
if (f == rowEnd) {
row++;
if (row <4) {
- index = state.find("/",index);
+ index = state.tqfind("/",index);
f = 12 + row*11;
rowEnd = row*12+17;
}
else if (row==4) {
- index = state.find("|",index);
+ index = state.tqfind("|",index);
f = 56;
rowEnd = 65;
}
else if (row <9) {
- index = state.find("\\",index);
+ index = state.tqfind("\\",index);
f = 8 + row*12;
rowEnd = 21 + row*11;
}