summaryrefslogtreecommitdiffstats
path: root/ksnake
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-12-20 22:30:18 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-12-20 22:39:59 +0900
commit7909152750670148360093b2519955fbfa555154 (patch)
tree86544c17c877637743df75e42369e8114c38abf3 /ksnake
parent2d872f6fb68350f9ee5b0b5c86ab3240b0d09aae (diff)
downloadtdegames-7909152750670148360093b2519955fbfa555154.tar.gz
tdegames-7909152750670148360093b2519955fbfa555154.zip
Replace various '#define' strings - part 6
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'ksnake')
-rw-r--r--ksnake/game.cpp10
-rw-r--r--ksnake/rattler.cpp2
2 files changed, 6 insertions, 6 deletions
diff --git a/ksnake/game.cpp b/ksnake/game.cpp
index 0641b7d3..a4d61c18 100644
--- a/ksnake/game.cpp
+++ b/ksnake/game.cpp
@@ -120,12 +120,12 @@ void Game::createMenu()
actionCollection()->setAutoConnectShortcuts(true);
rattler->setActionCollection(actionCollection());
- KStdGameAction::gameNew(TQT_TQOBJECT(rattler), TQT_SLOT(restart()), actionCollection());
- pause = KStdGameAction::pause(TQT_TQOBJECT(rattler), TQT_SLOT(pause()), actionCollection());
- KStdGameAction::highscores(TQT_TQOBJECT(this), TQT_SLOT(showHighScores()), actionCollection());
- KStdGameAction::quit( TQT_TQOBJECT(this), TQT_SLOT(close()), actionCollection());
+ KStdGameAction::gameNew(rattler, TQT_SLOT(restart()), actionCollection());
+ pause = KStdGameAction::pause(rattler, TQT_SLOT(pause()), actionCollection());
+ KStdGameAction::highscores(this, TQT_SLOT(showHighScores()), actionCollection());
+ KStdGameAction::quit( this, TQT_SLOT(close()), actionCollection());
- KStdAction::preferences(TQT_TQOBJECT(this), TQT_SLOT(showSettings()), actionCollection());
+ KStdAction::preferences(this, TQT_SLOT(showSettings()), actionCollection());
// TODO change and make custom function that pauses game or
// modify widget to pause when loosing focus and remove this
diff --git a/ksnake/rattler.cpp b/ksnake/rattler.cpp
index d7bc630c..8c1db1ed 100644
--- a/ksnake/rattler.cpp
+++ b/ksnake/rattler.cpp
@@ -534,7 +534,7 @@ void Rattler::start(int t)
void Rattler::stop()
{
- TQT_TQOBJECT(this)->killTimers();
+ this->killTimers();
}
void Rattler::restartComputerSnakes(bool play)