summaryrefslogtreecommitdiffstats
path: root/klickety/board.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'klickety/board.cpp')
-rw-r--r--klickety/board.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/klickety/board.cpp b/klickety/board.cpp
index 92969d6e..b60e766a 100644
--- a/klickety/board.cpp
+++ b/klickety/board.cpp
@@ -6,13 +6,13 @@
using namespace KGrid2D;
-void KLBoard::contentsMouseReleaseEvent(QMouseEvent *e)
+void KLBoard::contentsMouseReleaseEvent(TQMouseEvent *e)
{
if ( e->button()!=LeftButton || blocked ) return;
- QCanvasItemList list = canvas()->collisions(e->pos());
+ TQCanvasItemList list = canvas()->collisions(e->pos());
if ( list.count()==0 ) return;
- QCanvasSprite *spr = static_cast<QCanvasSprite *>(list.first());
+ TQCanvasSprite *spr = static_cast<TQCanvasSprite *>(list.first());
Coord c = findSprite(spr);
field.fill(0);
addRemoved = findGroup(field, c);
@@ -26,7 +26,7 @@ void KLBoard::contentsMouseReleaseEvent(QMouseEvent *e)
}
}
-KLBoard::KLBoard(QWidget *parent)
+KLBoard::KLBoard(TQWidget *parent)
: BaseBoard(true, parent),
field(matrix().width(), matrix().height()),
empty(matrix().width()),
@@ -52,7 +52,7 @@ void KLBoard::start(const GTInitData &data)
showBoard(true);
}
-Coord KLBoard::findSprite(QCanvasSprite *spr) const
+Coord KLBoard::findSprite(TQCanvasSprite *spr) const
{
for (uint i=0; i<matrix().width(); i++)
for (uint j=0; j<matrix().height(); j++) {
@@ -111,7 +111,7 @@ bool KLBoard::doSlide(bool doAll, bool first, bool lineByLine)
for (uint j=0; j<firstClearLine(); j++) {
// compute
uint h = 0;
- QMemArray<uint> heights(matrix().width());
+ TQMemArray<uint> heights(matrix().width());
for (uint i=1; i<matrix().width(); i++) { // first column cannot slide
Coord src(i, j);
if ( toSlide(src) ) h++;
@@ -157,7 +157,7 @@ bool KLBoard::afterAfterRemove()
{
// check if there are remaining groups
field.fill(0);
- QMemArray<uint> groups = findGroups(field, 2, true);
+ TQMemArray<uint> groups = findGroups(field, 2, true);
blocked = false;
return groups.size()!=0;
}