summaryrefslogtreecommitdiffstats
path: root/ksnake/rattler.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 09:58:53 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 09:58:53 -0600
commit84ace1135cac57993b72fee7105b92def1638d32 (patch)
treeb8871eb76e3db4a062731b0ce7c99c24fac119e8 /ksnake/rattler.cpp
parent97d1732e257f8700488d7ca1660ae7eba8fc6065 (diff)
downloadtdegames-84ace1135cac57993b72fee7105b92def1638d32.tar.gz
tdegames-84ace1135cac57993b72fee7105b92def1638d32.zip
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit 97d1732e257f8700488d7ca1660ae7eba8fc6065.
Diffstat (limited to 'ksnake/rattler.cpp')
-rw-r--r--ksnake/rattler.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/ksnake/rattler.cpp b/ksnake/rattler.cpp
index 86ab1528..4c68f316 100644
--- a/ksnake/rattler.cpp
+++ b/ksnake/rattler.cpp
@@ -114,7 +114,7 @@ void Rattler::paintEvent( TQPaintEvent *e)
return;
TQPixmap levelPix = pix->levelPix();
- basket->repaint(true);
+ basket->tqrepaint(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->repaint(false);
+ c->tqrepaint(false);
}
}
for (Ball *b = balls->first(); b != 0; b = balls->next()){
if (b) {
b->nextMove();
- b->repaint();
+ b->tqrepaint();
}
}
@@ -147,10 +147,10 @@ void Rattler::timerEvent( TQTimerEvent * )
if(!gameState.testBit(Demo))
{
state = samy->nextMove(direction);
- samy->repaint( false );
+ samy->tqrepaint( false );
}
- basket->repaint( false);
+ basket->tqrepaint( false);
if (state == ko)
newTry();
@@ -313,8 +313,8 @@ 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")
- .arg(tempPauseAction->shortcutText()));
- label->setAlignment( AlignCenter );
+ .tqarg(tempPauseAction->shortcutText()));
+ label->tqsetAlignment( AlignCenter );
label->setFrameStyle( TQFrame::Panel | TQFrame::Raised );
label->setGeometry(182, 206, 198, 80);
label->show();
@@ -351,7 +351,7 @@ void Rattler::restartDemo()
level->create(Intro);
pix->initRoomPixmap();
init(false);
- repaint();
+ tqrepaint();
start();
}
@@ -374,7 +374,7 @@ void Rattler::demo()
level->create(Intro);
pix->initRoomPixmap();
}
- repaint(rect(), false);
+ tqrepaint(rect(), false);
init(false);
run();
first_time = false;
@@ -413,7 +413,7 @@ void Rattler::restart()
cleanLabel();
- repaint();
+ tqrepaint();
TQTimer::singleShot( 2000, this, TQT_SLOT(showRoom()) );
}
@@ -426,7 +426,7 @@ void Rattler::newTry()
gameState.setBit(Over);
level->create(GameOver);
pix->initRoomPixmap();
- repaint();
+ tqrepaint();
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);
- repaint();
+ tqrepaint();
TQTimer::singleShot( 1000, this, TQT_SLOT(run()) );
}
@@ -456,7 +456,7 @@ void Rattler::levelUp()
level->nextLevel();
level->create(Banner);
pix->initRoomPixmap();
- repaint();
+ tqrepaint();
TQTimer::singleShot( 2000, this, TQT_SLOT(showRoom()) );
}
@@ -493,7 +493,7 @@ void Rattler::showRoom()
level->create(Room);
pix->initRoomPixmap();
init(true);
- repaint();
+ tqrepaint();
TQTimer::singleShot( 1000, this, TQT_SLOT(run()) );
}