diff options
author | Michele Calgaro <[email protected]> | 2024-01-13 12:28:49 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2024-01-13 12:28:49 +0900 |
commit | c20f4d8f2cf03c69fcecc80d63fe3cbb80f51610 (patch) | |
tree | 50b08262da538c5b91f77e83e4b80d7fd6dbe0de /ksnake/game.cpp | |
parent | 51f65427771c47f6d34cda56b07d9d82bd0bfd33 (diff) | |
download | tdegames-c20f4d8f2cf03c69fcecc80d63fe3cbb80f51610.tar.gz tdegames-c20f4d8f2cf03c69fcecc80d63fe3cbb80f51610.zip |
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'ksnake/game.cpp')
-rw-r--r-- | ksnake/game.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/ksnake/game.cpp b/ksnake/game.cpp index a4d61c18..54ea84f9 100644 --- a/ksnake/game.cpp +++ b/ksnake/game.cpp @@ -67,14 +67,14 @@ Game::Game(TQWidget *parent, const char *name) : TDEMainWindow(parent,name) rattler->reloadRoomPixmap(); rattler->setFocus(); - connect(rattler, TQT_SIGNAL(setPoints(int)), this, TQT_SLOT(scoreChanged(int))); - connect(rattler, TQT_SIGNAL(setTrys(int)), this, TQT_SLOT(setTrys(int))); - connect(rattler, TQT_SIGNAL(rewind()), view->progress, TQT_SLOT(rewind())); - connect(rattler, TQT_SIGNAL(advance()), view->progress, TQT_SLOT(advance())); - connect(view->progress, TQT_SIGNAL(restart()), rattler, TQT_SLOT(restartTimer())); + connect(rattler, TQ_SIGNAL(setPoints(int)), this, TQ_SLOT(scoreChanged(int))); + connect(rattler, TQ_SIGNAL(setTrys(int)), this, TQ_SLOT(setTrys(int))); + connect(rattler, TQ_SIGNAL(rewind()), view->progress, TQ_SLOT(rewind())); + connect(rattler, TQ_SIGNAL(advance()), view->progress, TQ_SLOT(advance())); + connect(view->progress, TQ_SIGNAL(restart()), rattler, TQ_SLOT(restartTimer())); - connect(rattler, TQT_SIGNAL(togglePaused()), this, TQT_SLOT(togglePaused())); - connect(rattler, TQT_SIGNAL(setScore(int)), this, TQT_SLOT(gameEnd(int))); + connect(rattler, TQ_SIGNAL(togglePaused()), this, TQ_SLOT(togglePaused())); + connect(rattler, TQ_SIGNAL(setScore(int)), this, TQ_SLOT(gameEnd(int))); setCentralWidget(view); @@ -120,16 +120,16 @@ void Game::createMenu() actionCollection()->setAutoConnectShortcuts(true); rattler->setActionCollection(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()); + KStdGameAction::gameNew(rattler, TQ_SLOT(restart()), actionCollection()); + pause = KStdGameAction::pause(rattler, TQ_SLOT(pause()), actionCollection()); + KStdGameAction::highscores(this, TQ_SLOT(showHighScores()), actionCollection()); + KStdGameAction::quit( this, TQ_SLOT(close()), actionCollection()); - KStdAction::preferences(this, TQT_SLOT(showSettings()), actionCollection()); + KStdAction::preferences(this, TQ_SLOT(showSettings()), actionCollection()); // TODO change and make custom function that pauses game or // modify widget to pause when loosing focus and remove this - KStdAction::keyBindings(guiFactory(), TQT_SLOT(configureShortcuts()), + KStdAction::keyBindings(guiFactory(), TQ_SLOT(configureShortcuts()), actionCollection()); } @@ -173,7 +173,7 @@ void Game::showSettings(){ dialog->addPage(a, i18n("Appearance"), "style"); dialog->addPage(new StartRoom(0, "StartRoom"), i18n("First Level"), "folder_home"); - connect(dialog, TQT_SIGNAL(settingsChanged()), rattler, TQT_SLOT(loadSettings())); + connect(dialog, TQ_SIGNAL(settingsChanged()), rattler, TQ_SLOT(loadSettings())); dialog->show(); } |