summaryrefslogtreecommitdiffstats
path: root/ktron
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-01-13 12:28:49 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-01-13 12:28:49 +0900
commitc20f4d8f2cf03c69fcecc80d63fe3cbb80f51610 (patch)
tree50b08262da538c5b91f77e83e4b80d7fd6dbe0de /ktron
parent51f65427771c47f6d34cda56b07d9d82bd0bfd33 (diff)
downloadtdegames-c20f4d8f2cf03c69fcecc80d63fe3cbb80f51610.tar.gz
tdegames-c20f4d8f2cf03c69fcecc80d63fe3cbb80f51610.zip
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'ktron')
-rw-r--r--ktron/ktron.cpp14
-rw-r--r--ktron/tron.cpp14
2 files changed, 14 insertions, 14 deletions
diff --git a/ktron/ktron.cpp b/ktron/ktron.cpp
index 25511fae..85478071 100644
--- a/ktron/ktron.cpp
+++ b/ktron/ktron.cpp
@@ -46,7 +46,7 @@ KTron::KTron(TQWidget *parent, const char *name) : TDEMainWindow(parent, name) {
playerPoints[0]=playerPoints[1]=0;
tron=new Tron(this, "Tron");
- connect(tron,TQT_SIGNAL(gameEnds(Player)),TQT_SLOT(changeStatus(Player)));
+ connect(tron,TQ_SIGNAL(gameEnds(Player)),TQ_SLOT(changeStatus(Player)));
setCentralWidget(tron);
tron->setMinimumSize(200,180);
@@ -81,10 +81,10 @@ KTron::KTron(TQWidget *parent, const char *name) : TDEMainWindow(parent, name) {
tron->setActionCollection(actionCollection());
- KStdGameAction::pause(tron, TQT_SLOT(togglePause()), actionCollection());
- KStdGameAction::gameNew( tron, TQT_SLOT( newGame() ), actionCollection() );
- KStdGameAction::quit(this, TQT_SLOT( close() ), actionCollection());
- KStdAction::preferences(this, TQT_SLOT(showSettings()), actionCollection());
+ KStdGameAction::pause(tron, TQ_SLOT(togglePause()), actionCollection());
+ KStdGameAction::gameNew( tron, TQ_SLOT( newGame() ), actionCollection() );
+ KStdGameAction::quit(this, TQ_SLOT( close() ), actionCollection());
+ KStdAction::preferences(this, TQ_SLOT(showSettings()), actionCollection());
setupGUI( TDEMainWindow::Keys | StatusBar | Save | Create);
loadSettings();
@@ -186,8 +186,8 @@ void KTron::showSettings(){
dialog->addPage(new General(0, "General"), i18n("General"), "package_settings");
dialog->addPage(new Ai(0, "Ai"), i18n("A.I."), "preferences-desktop-personal");
dialog->addPage(new Appearance(0, "Appearance"), i18n("Appearance"), "style");
- connect(dialog, TQT_SIGNAL(settingsChanged()), tron, TQT_SLOT(loadSettings()));
- connect(dialog, TQT_SIGNAL(settingsChanged()), this, TQT_SLOT(loadSettings()));
+ connect(dialog, TQ_SIGNAL(settingsChanged()), tron, TQ_SLOT(loadSettings()));
+ connect(dialog, TQ_SIGNAL(settingsChanged()), this, TQ_SLOT(loadSettings()));
dialog->show();
}
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()));
}
}