summaryrefslogtreecommitdiffstats
path: root/kreversi/Position.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 /kreversi/Position.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 'kreversi/Position.cpp')
-rw-r--r--kreversi/Position.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/kreversi/Position.cpp b/kreversi/Position.cpp
index 22ffb3cf..80daa7ac 100644
--- a/kreversi/Position.cpp
+++ b/kreversi/Position.cpp
@@ -207,7 +207,7 @@ bool Position::moveIsAtAllPossible() const
//
// Return true if the move was legal, otherwise return false.
//
-bool Position::doMove(SimpleMove &move, QValueList<char> *turned)
+bool Position::doMove(SimpleMove &move, TQValueList<char> *turned)
{
if (move.color() == Nobody)
return false;
@@ -293,7 +293,7 @@ bool Position::undoMove(Move &move)
}
// 2. All turned pieces must be on the board anb be of the right color.
- QValueList<char>::iterator it;
+ TQValueList<char>::iterator it;
for (it = move.m_turnedPieces.begin();
it != move.m_turnedPieces.end();
++it) {
@@ -345,9 +345,9 @@ MoveList Position::generateMoves(Color color) const
}
-QString Position::asString() const
+TQString Position::asString() const
{
- QString result;
+ TQString result;
for (uint y = 1; y < 9; ++y) {
for (uint x = 1; x < 9; ++x) {