diff options
Diffstat (limited to 'kenolaba')
-rw-r--r-- | kenolaba/Board.cpp | 10 | ||||
-rw-r--r-- | kenolaba/EvalDlgImpl.cpp | 4 | ||||
-rw-r--r-- | kenolaba/EvalScheme.cpp | 2 |
3 files changed, 8 insertions, 8 deletions
diff --git a/kenolaba/Board.cpp b/kenolaba/Board.cpp index 119557d2..d939ad09 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.tqfind("#"))>=0) + if ((index = state.find("#"))>=0) moveNo = state.mid(index+1,3).toInt(); int f=12, row=0, rowEnd = 17; char c = ' '; - index=state.tqfind("/"); + index=state.find("/"); while(index>=0) { @@ -1420,17 +1420,17 @@ int Board::setASCIIState(const TQString& state) if (f == rowEnd) { row++; if (row <4) { - index = state.tqfind("/",index); + index = state.find("/",index); f = 12 + row*11; rowEnd = row*12+17; } else if (row==4) { - index = state.tqfind("|",index); + index = state.find("|",index); f = 56; rowEnd = 65; } else if (row <9) { - index = state.tqfind("\\",index); + index = state.find("\\",index); f = 8 + row*12; rowEnd = 21 + row*11; } diff --git a/kenolaba/EvalDlgImpl.cpp b/kenolaba/EvalDlgImpl.cpp index e0ab3006..14d0d0ac 100644 --- a/kenolaba/EvalDlgImpl.cpp +++ b/kenolaba/EvalDlgImpl.cpp @@ -254,10 +254,10 @@ void EvalDlgImpl::saveas() KConfig* config = kapp->config(); config->setGroup("General"); TQStringList list = config->readListEntry("EvalSchemes"); - TQListBoxItem *it = evalList->tqfindItem(name); + TQListBoxItem *it = evalList->findItem(name); if (!it) { evalList->insertItem(name); - it = evalList->tqfindItem(name); + it = evalList->findItem(name); list << name; config->writeEntry("EvalSchemes", list); } diff --git a/kenolaba/EvalScheme.cpp b/kenolaba/EvalScheme.cpp index 063ca5f2..0d179a85 100644 --- a/kenolaba/EvalScheme.cpp +++ b/kenolaba/EvalScheme.cpp @@ -184,7 +184,7 @@ void EvalScheme::setInARowValue(int stones, int value) EvalScheme* EvalScheme::create(TQString scheme) { - int pos = scheme.tqfind('='); + int pos = scheme.find('='); if (pos<0) return 0; EvalScheme* evalScheme = new EvalScheme( scheme.left(pos) ); |