summaryrefslogtreecommitdiffstats
path: root/libksirtet/base/gtetris.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 /libksirtet/base/gtetris.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 'libksirtet/base/gtetris.cpp')
-rw-r--r--libksirtet/base/gtetris.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/libksirtet/base/gtetris.cpp b/libksirtet/base/gtetris.cpp
index 2141f9ef..6c2a66a9 100644
--- a/libksirtet/base/gtetris.cpp
+++ b/libksirtet/base/gtetris.cpp
@@ -166,7 +166,7 @@ bool GenericTetris::rotate(bool left)
Piece tmp;
tmp.copy(_currentPiece);
- QPoint p(0, 0);
+ TQPoint p(0, 0);
tmp.rotate(left, p);
if ( canPosition(_currentPos, &tmp) ) {
if (_graphic) p = toPoint(_currentPos);
@@ -192,7 +192,7 @@ void GenericTetris::setBlock(const Coord &c, Block *b)
Q_ASSERT( b && _matrix[c]==0 );
_matrix[c] = b;
if (_graphic) {
- QPoint p = toPoint(c);
+ TQPoint p = toPoint(c);
b->sprite()->move(p.x(), p.y());
}
}
@@ -212,7 +212,7 @@ void GenericTetris::moveBlock(const Coord &src, const Coord &dest)
}
}
-QPoint GenericTetris::toPoint(const Coord &c) const
+TQPoint GenericTetris::toPoint(const Coord &c) const
{
return _main->toPoint(Coord(c.first, _matrix.height() - 1 - c.second));
}
@@ -230,12 +230,12 @@ void GenericTetris::gluePiece()
void GenericTetris::bumpCurrentPiece(int dec)
{
Q_ASSERT( _graphic && _currentPiece );
- _currentPiece->move(toPoint(_currentPos) + QPoint(0, dec));
+ _currentPiece->move(toPoint(_currentPos) + TQPoint(0, dec));
}
-void GenericTetris::partialMoveBlock(const Coord &c, const QPoint &dec)
+void GenericTetris::partialMoveBlock(const Coord &c, const TQPoint &dec)
{
Q_ASSERT( _graphic && _matrix[c]!=0 );
- QPoint p = toPoint(c) + dec;
+ TQPoint p = toPoint(c) + dec;
_matrix[c]->sprite()->move(p.x(), p.y());
}