diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:42:31 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:42:31 +0000 |
commit | 576eb4299a00bc053db35414406f46372a0f70f2 (patch) | |
tree | 4c030922d533821db464af566188e7d40cc8848c /kreversi/Position.cpp | |
parent | 0718336b6017d1a4fc1d626544180a5a2a29ddec (diff) | |
download | tdegames-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.cpp | 8 |
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) { |