summaryrefslogtreecommitdiffstats
path: root/ksnake/game.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ksnake/game.cpp')
-rw-r--r--ksnake/game.cpp28
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();
}