summaryrefslogtreecommitdiffstats
path: root/klines/field.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 04:58:26 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 04:58:26 +0000
commit838baf3f99ec5ab81b063eb5449a3381d860f377 (patch)
treedd31abcfde08ca92e4623b8f50b3d762a87c997a /klines/field.cpp
parent2bf598bafa22fac4126fc8842df6b0119aadc0e9 (diff)
downloadtdegames-838baf3f99ec5ab81b063eb5449a3381d860f377.tar.gz
tdegames-838baf3f99ec5ab81b063eb5449a3381d860f377.zip
TQt4 port kdegames
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegames@1236074 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'klines/field.cpp')
-rw-r--r--klines/field.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/klines/field.cpp b/klines/field.cpp
index d8da8ec7..22211b76 100644
--- a/klines/field.cpp
+++ b/klines/field.cpp
@@ -19,8 +19,8 @@
#include "cfg.h"
#include "field.moc"
-Field::Field(TQWidget* parent, const char* name)
- : TQWidget( parent, name )
+Field::Field(TQWidget* tqparent, const char* name)
+ : TQWidget( tqparent, name )
{
clearField();
}
@@ -73,7 +73,7 @@ void Field::putBall(int x, int y, char color)
if( checkBounds(x,y) ){
field[y][x].setColor(color);
erase5Balls();
- repaint(FALSE);
+ tqrepaint(FALSE);
}
}*/
void Field::moveBall(int xa, int ya, int xb, int yb)
@@ -184,10 +184,10 @@ int Field::calcPosScore(int x, int y, int whatIf)
int score = -10;
int color = field[y][x].getColor();
field[y][x].setColor(whatIf);
- score = QMAX(score, calcRun(x, y-4, 0, 1));
- score = QMAX(score, calcRun(x-4, y-4, 1, 1));
- score = QMAX(score, calcRun(x-4, y, 1, 0));
- score = QMAX(score, calcRun(x-4, y+4, 1, -1));
+ score = TQMAX(score, calcRun(x, y-4, 0, 1));
+ score = TQMAX(score, calcRun(x-4, y-4, 1, 1));
+ score = TQMAX(score, calcRun(x-4, y, 1, 0));
+ score = TQMAX(score, calcRun(x-4, y+4, 1, -1));
field[y][x].setColor(color);
return score;
}