summaryrefslogtreecommitdiffstats
path: root/kjumpingcube
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 /kjumpingcube
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 'kjumpingcube')
-rw-r--r--kjumpingcube/kcubeboxwidget.cpp16
-rw-r--r--kjumpingcube/kcubewidget.cpp2
-rw-r--r--kjumpingcube/kjumpingcube.cpp32
3 files changed, 25 insertions, 25 deletions
diff --git a/kjumpingcube/kcubeboxwidget.cpp b/kjumpingcube/kcubeboxwidget.cpp
index 9b589b96..3a03ad4b 100644
--- a/kjumpingcube/kcubeboxwidget.cpp
+++ b/kjumpingcube/kcubeboxwidget.cpp
@@ -435,12 +435,12 @@ void KCubeBoxWidget::init()
KCubeWidget::enableClicks(true);
loadSettings();
- connect(moveTimer,TQT_SIGNAL(timeout()),TQT_SLOT(nextLoopStep()));
- connect(this,TQT_SIGNAL(startedThinking()),TQT_SLOT(setWaitCursor()));
- connect(this,TQT_SIGNAL(stoppedThinking()),TQT_SLOT(setNormalCursor()));
- connect(this,TQT_SIGNAL(startedMoving()),TQT_SLOT(setWaitCursor()));
- connect(this,TQT_SIGNAL(stoppedMoving()),TQT_SLOT(setNormalCursor()));
- connect(this,TQT_SIGNAL(playerWon(int)),TQT_SLOT(stopActivities()));
+ connect(moveTimer,TQ_SIGNAL(timeout()),TQ_SLOT(nextLoopStep()));
+ connect(this,TQ_SIGNAL(startedThinking()),TQ_SLOT(setWaitCursor()));
+ connect(this,TQ_SIGNAL(stoppedThinking()),TQ_SLOT(setNormalCursor()));
+ connect(this,TQ_SIGNAL(startedMoving()),TQ_SLOT(setWaitCursor()));
+ connect(this,TQ_SIGNAL(stoppedMoving()),TQ_SLOT(setNormalCursor()));
+ connect(this,TQ_SIGNAL(playerWon(int)),TQ_SLOT(stopActivities()));
setNormalCursor();
@@ -476,8 +476,8 @@ void KCubeBoxWidget::initCubes()
cubes[i][j]->setCoordinates(i,j);
layout->addWidget(cubes[i][j],i,j);
cubes[i][j]->show();
- connect(cubes[i][j],TQT_SIGNAL(clicked(int,int,bool)),TQT_SLOT(stopHint()));
- connect(cubes[i][j],TQT_SIGNAL(clicked(int,int,bool)),TQT_SLOT(checkClick(int,int,bool)));
+ connect(cubes[i][j],TQ_SIGNAL(clicked(int,int,bool)),TQ_SLOT(stopHint()));
+ connect(cubes[i][j],TQ_SIGNAL(clicked(int,int,bool)),TQ_SLOT(checkClick(int,int,bool)));
}
// initialize cubes
diff --git a/kjumpingcube/kcubewidget.cpp b/kjumpingcube/kcubewidget.cpp
index 9b3e0b56..d832d21e 100644
--- a/kjumpingcube/kcubewidget.cpp
+++ b/kjumpingcube/kcubewidget.cpp
@@ -88,7 +88,7 @@ KCubeWidget::KCubeWidget(TQWidget* parent,const char* name
// will be automatically destroyed by the parent
hintTimer = new TQTimer(this);
hintCounter=0;
- connect(hintTimer,TQT_SIGNAL(timeout()),TQT_SLOT(hint()));
+ connect(hintTimer,TQ_SIGNAL(timeout()),TQ_SLOT(hint()));
setPalette(kapp->palette());
diff --git a/kjumpingcube/kjumpingcube.cpp b/kjumpingcube/kjumpingcube.cpp
index 42eea056..dc5ba705 100644
--- a/kjumpingcube/kjumpingcube.cpp
+++ b/kjumpingcube/kjumpingcube.cpp
@@ -49,12 +49,12 @@
KJumpingCube::KJumpingCube()
: view(new KCubeBoxWidget(5, this, "KCubeBoxWidget"))
{
- connect(view,TQT_SIGNAL(playerChanged(int)),TQT_SLOT(changePlayer(int)));
- connect(view,TQT_SIGNAL(stoppedMoving()),TQT_SLOT(disableStop()));
- connect(view,TQT_SIGNAL(stoppedThinking()),TQT_SLOT(disableStop()));
- connect(view,TQT_SIGNAL(startedMoving()),TQT_SLOT(enableStop_Moving()));
- connect(view,TQT_SIGNAL(startedThinking()),TQT_SLOT(enableStop_Thinking()));
- connect(view,TQT_SIGNAL(playerWon(int)),TQT_SLOT(showWinner(int)));
+ connect(view,TQ_SIGNAL(playerChanged(int)),TQ_SLOT(changePlayer(int)));
+ connect(view,TQ_SIGNAL(stoppedMoving()),TQ_SLOT(disableStop()));
+ connect(view,TQ_SIGNAL(stoppedThinking()),TQ_SLOT(disableStop()));
+ connect(view,TQ_SIGNAL(startedMoving()),TQ_SLOT(enableStop_Moving()));
+ connect(view,TQ_SIGNAL(startedThinking()),TQ_SLOT(enableStop_Thinking()));
+ connect(view,TQ_SIGNAL(playerWon(int)),TQ_SLOT(showWinner(int)));
// tell the TDEMainWindow that this is indeed the main widget
setCentralWidget(view);
@@ -76,19 +76,19 @@ KJumpingCube::KJumpingCube()
}
void KJumpingCube::initTDEAction() {
- KStdGameAction::gameNew(this, TQT_SLOT(newGame()), actionCollection());
- KStdGameAction::load(this, TQT_SLOT(openGame()), actionCollection());
- KStdGameAction::save(this, TQT_SLOT(save()), actionCollection());
- KStdGameAction::saveAs(this, TQT_SLOT(saveAs()), actionCollection());
- KStdGameAction::quit(this, TQT_SLOT(close()), actionCollection());
+ KStdGameAction::gameNew(this, TQ_SLOT(newGame()), actionCollection());
+ KStdGameAction::load(this, TQ_SLOT(openGame()), actionCollection());
+ KStdGameAction::save(this, TQ_SLOT(save()), actionCollection());
+ KStdGameAction::saveAs(this, TQ_SLOT(saveAs()), actionCollection());
+ KStdGameAction::quit(this, TQ_SLOT(close()), actionCollection());
- hintAction = KStdGameAction::hint(view, TQT_SLOT(getHint()), actionCollection());
+ hintAction = KStdGameAction::hint(view, TQ_SLOT(getHint()), actionCollection());
stopAction = new TDEAction(i18n("Stop &Thinking"), "process-stop",
- TQt::Key_Escape, this, TQT_SLOT(stop()), actionCollection(), "game_stop");
+ TQt::Key_Escape, this, TQ_SLOT(stop()), actionCollection(), "game_stop");
stopAction->setEnabled(false);
- undoAction = KStdGameAction::undo(this, TQT_SLOT(undo()), actionCollection());
+ undoAction = KStdGameAction::undo(this, TQ_SLOT(undo()), actionCollection());
undoAction->setEnabled(false);
- KStdAction::preferences(this, TQT_SLOT(showOptions()), actionCollection());
+ KStdAction::preferences(this, TQ_SLOT(showOptions()), actionCollection());
setupGUI();
}
@@ -270,7 +270,7 @@ void KJumpingCube::showOptions(){
TDEConfigDialog *dialog = new TDEConfigDialog(this, "settings", Prefs::self(), KDialogBase::Swallow);
dialog->addPage(new Settings(0, "General"), i18n("General"), "package_settings");
- connect(dialog, TQT_SIGNAL(settingsChanged()), view, TQT_SLOT(loadSettings()));
+ connect(dialog, TQ_SIGNAL(settingsChanged()), view, TQ_SLOT(loadSettings()));
dialog->show();
}