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 /klickety/board.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 'klickety/board.cpp')
-rw-r--r-- | klickety/board.cpp | 14 |
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; } |