diff options
author | Michele Calgaro <[email protected]> | 2024-01-13 12:28:49 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2024-01-19 10:10:52 +0900 |
commit | 6374e2e62eef25945347ce2c9ae9f88e61765d11 (patch) | |
tree | 707d84dbca20d20dee68626dda0d35568d7dcb34 /ksnake/rattler.cpp | |
parent | c26a225408c4759743b754453b07d0dca97aa749 (diff) | |
download | tdegames-6374e2e62eef25945347ce2c9ae9f88e61765d11.tar.gz tdegames-6374e2e62eef25945347ce2c9ae9f88e61765d11.zip |
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <[email protected]>
(cherry picked from commit c20f4d8f2cf03c69fcecc80d63fe3cbb80f51610)
Diffstat (limited to 'ksnake/rattler.cpp')
-rw-r--r-- | ksnake/rattler.cpp | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/ksnake/rattler.cpp b/ksnake/rattler.cpp index 8c1db1ed..d94307be 100644 --- a/ksnake/rattler.cpp +++ b/ksnake/rattler.cpp @@ -67,16 +67,16 @@ Rattler::Rattler( TQWidget *parent, const char *name ) balls = new TQPtrList<Ball>; balls->setAutoDelete( true ); - connect( samy, TQT_SIGNAL(closeGate(int)), this, TQT_SLOT(closeGate(int))); - connect( samy, TQT_SIGNAL(score(bool, int)), this, TQT_SLOT(scoring(bool,int))); - connect( samy, TQT_SIGNAL(goingOut()), this, TQT_SLOT(speedUp())); - connect( basket, TQT_SIGNAL(openGate()), this, TQT_SLOT(openGate())); + connect( samy, TQ_SIGNAL(closeGate(int)), this, TQ_SLOT(closeGate(int))); + connect( samy, TQ_SIGNAL(score(bool, int)), this, TQ_SLOT(scoring(bool,int))); + connect( samy, TQ_SIGNAL(goingOut()), this, TQ_SLOT(speedUp())); + connect( basket, TQ_SIGNAL(openGate()), this, TQ_SLOT(openGate())); gameState.fill(false); gameState.setBit(Demo); timerCount = 0; - TQTimer::singleShot( 2000, this, TQT_SLOT(demo()) ); // Why wait? + TQTimer::singleShot( 2000, this, TQ_SLOT(demo()) ); // Why wait? backgroundPixmaps = TDEGlobal::dirs()->findAllResources("appdata", "backgrounds/*.png"); @@ -345,7 +345,7 @@ void Rattler::restartDemo() return; int r = 50000+ (kapp->random() % 30000); - TQTimer::singleShot( r, this, TQT_SLOT(restartDemo()) ); + TQTimer::singleShot( r, this, TQ_SLOT(restartDemo()) ); stop(); level->create(Intro); @@ -364,7 +364,7 @@ void Rattler::demo() stop(); - TQTimer::singleShot( 60000, this, TQT_SLOT(restartDemo()) ); + TQTimer::singleShot( 60000, this, TQ_SLOT(restartDemo()) ); gameState.fill(false); gameState.setBit(Init); gameState.setBit(Demo); @@ -414,7 +414,7 @@ void Rattler::restart() cleanLabel(); repaint(); - TQTimer::singleShot( 2000, this, TQT_SLOT(showRoom()) ); + TQTimer::singleShot( 2000, this, TQ_SLOT(showRoom()) ); } void Rattler::newTry() @@ -427,7 +427,7 @@ void Rattler::newTry() level->create(GameOver); pix->initRoomPixmap(); repaint(); - TQTimer::singleShot( 5000, this, TQT_SLOT(demo()) ); + TQTimer::singleShot( 5000, this, TQ_SLOT(demo()) ); emit setScore(points); return; } @@ -440,7 +440,7 @@ void Rattler::newTry() pix->initRoomPixmap(); init(true); repaint(); - TQTimer::singleShot( 1000, this, TQT_SLOT(run()) ); + TQTimer::singleShot( 1000, this, TQ_SLOT(run()) ); } void Rattler::levelUp() @@ -458,7 +458,7 @@ void Rattler::levelUp() pix->initRoomPixmap(); repaint(); - TQTimer::singleShot( 2000, this, TQT_SLOT(showRoom()) ); + TQTimer::singleShot( 2000, this, TQ_SLOT(showRoom()) ); } /* this slot is called by the progressBar when value() == 0 @@ -494,7 +494,7 @@ void Rattler::showRoom() pix->initRoomPixmap(); init(true); repaint(); - TQTimer::singleShot( 1000, this, TQT_SLOT(run()) ); + TQTimer::singleShot( 1000, this, TQ_SLOT(run()) ); } void Rattler::init(bool play) @@ -557,10 +557,10 @@ void Rattler::restartComputerSnakes(bool play) as = new KillerCompuSnake(board, pix); break; } - connect( as, TQT_SIGNAL(closeGate(int)), this, TQT_SLOT(closeGate(int))); - connect( as, TQT_SIGNAL(restartTimer()), this, TQT_SLOT(restartTimer())); - connect( as, TQT_SIGNAL(score(bool, int)), this, TQT_SLOT(scoring(bool,int))); - connect( as, TQT_SIGNAL(killed()), this, TQT_SLOT(killedComputerSnake())); + connect( as, TQ_SIGNAL(closeGate(int)), this, TQ_SLOT(closeGate(int))); + connect( as, TQ_SIGNAL(restartTimer()), this, TQ_SLOT(restartTimer())); + connect( as, TQ_SIGNAL(score(bool, int)), this, TQ_SLOT(scoring(bool,int))); + connect( as, TQ_SIGNAL(killed()), this, TQ_SLOT(killedComputerSnake())); computerSnakes->append(as); } } @@ -643,10 +643,10 @@ void Rattler::setCompuSnakes(int i) as = new KillerCompuSnake(board, pix); break; } - connect( as, TQT_SIGNAL(closeGate(int)), this, TQT_SLOT(closeGate(int))); - connect( as, TQT_SIGNAL(restartTimer()), this, TQT_SLOT(restartTimer())); - connect( as, TQT_SIGNAL(score(bool, int)), this, TQT_SLOT(scoring(bool,int))); - connect( as, TQT_SIGNAL(killed()), this, TQT_SLOT(killedComputerSnake())); + connect( as, TQ_SIGNAL(closeGate(int)), this, TQ_SLOT(closeGate(int))); + connect( as, TQ_SIGNAL(restartTimer()), this, TQ_SLOT(restartTimer())); + connect( as, TQ_SIGNAL(score(bool, int)), this, TQ_SLOT(scoring(bool,int))); + connect( as, TQ_SIGNAL(killed()), this, TQ_SLOT(killedComputerSnake())); computerSnakes->append(as); i--; } |