summaryrefslogtreecommitdiffstats
path: root/ksnake
diff options
context:
space:
mode:
Diffstat (limited to 'ksnake')
-rw-r--r--ksnake/ball.cpp2
-rw-r--r--ksnake/ball.h2
-rw-r--r--ksnake/basket.cpp2
-rw-r--r--ksnake/basket.h2
-rw-r--r--ksnake/game.cpp4
-rw-r--r--ksnake/general.ui2
-rw-r--r--ksnake/pixServer.cpp2
-rw-r--r--ksnake/rattler.cpp26
-rw-r--r--ksnake/snake.cpp2
-rw-r--r--ksnake/snake.h2
10 files changed, 23 insertions, 23 deletions
diff --git a/ksnake/ball.cpp b/ksnake/ball.cpp
index dc86d7a0..2881beb9 100644
--- a/ksnake/ball.cpp
+++ b/ksnake/ball.cpp
@@ -73,7 +73,7 @@ void Ball::nextMove()
}
}
-void Ball::tqrepaint()
+void Ball::repaint()
{
static int i = 0;
static bool rotate = true;
diff --git a/ksnake/ball.h b/ksnake/ball.h
index 609eef95..e7796354 100644
--- a/ksnake/ball.h
+++ b/ksnake/ball.h
@@ -33,7 +33,7 @@ public:
Ball(Board *b, PixServer *p);
virtual ~Ball(){}
virtual void nextMove();
- void tqrepaint();
+ void repaint();
void zero();
protected:
Board *board;
diff --git a/ksnake/basket.cpp b/ksnake/basket.cpp
index 8d124a45..138336cd 100644
--- a/ksnake/basket.cpp
+++ b/ksnake/basket.cpp
@@ -81,7 +81,7 @@ void Basket::newApples()
}
}
-void Basket::tqrepaint(bool dirty )
+void Basket::repaint(bool dirty )
{
Kaffee *g;
for ( g = list->first(); g != 0; g = list->next()) {
diff --git a/ksnake/basket.h b/ksnake/basket.h
index 18386acc..5275d8a8 100644
--- a/ksnake/basket.h
+++ b/ksnake/basket.h
@@ -56,7 +56,7 @@ class Basket : public TQObject
public:
Basket(Board *b, PixServer *p);
~Basket();
- void tqrepaint(bool);
+ void repaint(bool);
void newApples();
void clear();
Fruits eaten( int i);
diff --git a/ksnake/game.cpp b/ksnake/game.cpp
index c1f66680..dfae1a4b 100644
--- a/ksnake/game.cpp
+++ b/ksnake/game.cpp
@@ -88,11 +88,11 @@ Game::~Game()
}
void Game::scoreChanged(int score){
- statusBar()->changeItem(i18n("Score: %1").tqarg(score), SCORE);
+ statusBar()->changeItem(i18n("Score: %1").arg(score), SCORE);
}
void Game::setTrys(int tries){
- statusBar()->changeItem(i18n("Lives: %1").tqarg(tries), LIVES);
+ statusBar()->changeItem(i18n("Lives: %1").arg(tries), LIVES);
}
void Game::gameEnd(int score){
diff --git a/ksnake/general.ui b/ksnake/general.ui
index e3a50cce..9d1eff19 100644
--- a/ksnake/general.ui
+++ b/ksnake/general.ui
@@ -59,7 +59,7 @@
<property name="text">
<string>Fast</string>
</property>
- <property name="tqalignment">
+ <property name="alignment">
<set>AlignVCenter|AlignRight</set>
</property>
</widget>
diff --git a/ksnake/pixServer.cpp b/ksnake/pixServer.cpp
index ed9a2113..244ff17d 100644
--- a/ksnake/pixServer.cpp
+++ b/ksnake/pixServer.cpp
@@ -181,7 +181,7 @@ void PixServer::initBrickPixmap()
{
TQPixmap pm = TQPixmap(locate("appdata", "pics/brick.png"));
if (pm.isNull()) {
- kdFatal() << i18n("error loading %1, aborting\n").tqarg("brick.png");
+ kdFatal() << i18n("error loading %1, aborting\n").arg("brick.png");
}
int pw = pm.width();
int ph = pm.height();
diff --git a/ksnake/rattler.cpp b/ksnake/rattler.cpp
index 97c166f8..86ab1528 100644
--- a/ksnake/rattler.cpp
+++ b/ksnake/rattler.cpp
@@ -114,7 +114,7 @@ void Rattler::paintEvent( TQPaintEvent *e)
return;
TQPixmap levelPix = pix->levelPix();
- basket->tqrepaint(true);
+ basket->repaint(true);
bitBlt(this, rect.x(), rect.y(),
&levelPix, rect.x(), rect.y(), rect.width(), rect.height());
@@ -130,14 +130,14 @@ void Rattler::timerEvent( TQTimerEvent * )
for (CompuSnake *c = computerSnakes->first(); c != 0; c = computerSnakes->next()){
if(c) {
c->nextMove();
- c->tqrepaint(false);
+ c->repaint(false);
}
}
for (Ball *b = balls->first(); b != 0; b = balls->next()){
if (b) {
b->nextMove();
- b->tqrepaint();
+ b->repaint();
}
}
@@ -147,10 +147,10 @@ void Rattler::timerEvent( TQTimerEvent * )
if(!gameState.testBit(Demo))
{
state = samy->nextMove(direction);
- samy->tqrepaint( false );
+ samy->repaint( false );
}
- basket->tqrepaint( false);
+ basket->repaint( false);
if (state == ko)
newTry();
@@ -313,7 +313,7 @@ void Rattler::pause()
label = new TQLabel(this);
label->setFont( TQFont( "Times", 14, TQFont::Bold ) );
label->setText(i18n("Game Paused\n Press %1 to resume\n")
- .tqarg(tempPauseAction->shortcutText()));
+ .arg(tempPauseAction->shortcutText()));
label->setAlignment( AlignCenter );
label->setFrameStyle( TQFrame::Panel | TQFrame::Raised );
label->setGeometry(182, 206, 198, 80);
@@ -351,7 +351,7 @@ void Rattler::restartDemo()
level->create(Intro);
pix->initRoomPixmap();
init(false);
- tqrepaint();
+ repaint();
start();
}
@@ -374,7 +374,7 @@ void Rattler::demo()
level->create(Intro);
pix->initRoomPixmap();
}
- tqrepaint(rect(), false);
+ repaint(rect(), false);
init(false);
run();
first_time = false;
@@ -413,7 +413,7 @@ void Rattler::restart()
cleanLabel();
- tqrepaint();
+ repaint();
TQTimer::singleShot( 2000, this, TQT_SLOT(showRoom()) );
}
@@ -426,7 +426,7 @@ void Rattler::newTry()
gameState.setBit(Over);
level->create(GameOver);
pix->initRoomPixmap();
- tqrepaint();
+ repaint();
TQTimer::singleShot( 5000, this, TQT_SLOT(demo()) );
emit setScore(points);
return;
@@ -439,7 +439,7 @@ void Rattler::newTry()
level->create(Room);
pix->initRoomPixmap();
init(true);
- tqrepaint();
+ repaint();
TQTimer::singleShot( 1000, this, TQT_SLOT(run()) );
}
@@ -456,7 +456,7 @@ void Rattler::levelUp()
level->nextLevel();
level->create(Banner);
pix->initRoomPixmap();
- tqrepaint();
+ repaint();
TQTimer::singleShot( 2000, this, TQT_SLOT(showRoom()) );
}
@@ -493,7 +493,7 @@ void Rattler::showRoom()
level->create(Room);
pix->initRoomPixmap();
init(true);
- tqrepaint();
+ repaint();
TQTimer::singleShot( 1000, this, TQT_SLOT(run()) );
}
diff --git a/ksnake/snake.cpp b/ksnake/snake.cpp
index 2d6337ac..c892452b 100644
--- a/ksnake/snake.cpp
+++ b/ksnake/snake.cpp
@@ -143,7 +143,7 @@ void Snake::reset(int index, int border)
}
}
-void Snake::tqrepaint( bool dirty)
+void Snake::repaint( bool dirty)
{
int x = 0;
for ( Samy *sam = list.first(); sam != 0; sam = list.next(), x++) {
diff --git a/ksnake/snake.h b/ksnake/snake.h
index 206ea126..9b5c1087 100644
--- a/ksnake/snake.h
+++ b/ksnake/snake.h
@@ -46,7 +46,7 @@ signals:
public:
Snake(Board *b, PixServer *p, Gate g, PixMap x);
~Snake() {}
- void tqrepaint( bool );
+ void repaint( bool );
void zero();
protected: