diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-13 12:28:49 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-19 10:10:52 +0900 |
| commit | 6374e2e62eef25945347ce2c9ae9f88e61765d11 (patch) | |
| tree | 707d84dbca20d20dee68626dda0d35568d7dcb34 /ktron/tron.cpp | |
| parent | c26a225408c4759743b754453b07d0dca97aa749 (diff) | |
| download | tdegames-6374e2e6.tar.gz tdegames-6374e2e6.zip | |
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit c20f4d8f2cf03c69fcecc80d63fe3cbb80f51610)
Diffstat (limited to 'ktron/tron.cpp')
| -rw-r--r-- | ktron/tron.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/ktron/tron.cpp b/ktron/tron.cpp index 5e83a874..c76cef5c 100644 --- a/ktron/tron.cpp +++ b/ktron/tron.cpp @@ -59,8 +59,8 @@ Tron::Tron(TQWidget *parent,const char *name) timer = new TQTimer(this,"timer"); loadSettings(); - connect(timer, TQT_SIGNAL(timeout()), TQT_SLOT(doMove())); - TQTimer::singleShot(15000, this,TQT_SLOT(showBeginHint())); + connect(timer, TQ_SIGNAL(timeout()), TQ_SLOT(doMove())); + TQTimer::singleShot(15000, this,TQ_SLOT(showBeginHint())); } void Tron::loadSettings(){ @@ -150,7 +150,7 @@ void Tron::newGame() emit gameEnds(Nobody); reset(); - TQTimer::singleShot(15000,this,TQT_SLOT(showBeginHint())); + TQTimer::singleShot(15000,this,TQ_SLOT(showBeginHint())); } void Tron::reset() @@ -274,7 +274,7 @@ void Tron::showWinner(Player player) if(isComputer(Both)) { - TQTimer::singleShot(1000,this,TQT_SLOT(computerStart())); + TQTimer::singleShot(1000,this,TQ_SLOT(computerStart())); } } @@ -453,7 +453,7 @@ void Tron::setComputerplayer(Player player, bool flag) { players[1].setComputer(flag); if(isComputer(Both)) - TQTimer::singleShot(1000,this,TQT_SLOT(computerStart())); + TQTimer::singleShot(1000,this,TQ_SLOT(computerStart())); } bool Tron::isComputer(Player player) @@ -939,7 +939,7 @@ void Tron::doMove() { //this is for waiting 0,5s before starting next game gameBlocked=true; - TQTimer::singleShot(1000,this,TQT_SLOT(unblockGame())); + TQTimer::singleShot(1000,this,TQ_SLOT(unblockGame())); return; } } @@ -1056,7 +1056,7 @@ void Tron::doMove() { //this is for waiting 1s before starting next game gameBlocked=true; - TQTimer::singleShot(1000,this,TQT_SLOT(unblockGame())); + TQTimer::singleShot(1000,this,TQ_SLOT(unblockGame())); } } |
