diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-12-20 22:30:18 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-12-20 22:39:59 +0900 |
commit | 7909152750670148360093b2519955fbfa555154 (patch) | |
tree | 86544c17c877637743df75e42369e8114c38abf3 /ksmiletris | |
parent | 2d872f6fb68350f9ee5b0b5c86ab3240b0d09aae (diff) | |
download | tdegames-7909152750670148360093b2519955fbfa555154.tar.gz tdegames-7909152750670148360093b2519955fbfa555154.zip |
Replace various '#define' strings - part 6
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'ksmiletris')
-rw-r--r-- | ksmiletris/gamewindow.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/ksmiletris/gamewindow.cpp b/ksmiletris/gamewindow.cpp index 5337868f..04ddda8a 100644 --- a/ksmiletris/gamewindow.cpp +++ b/ksmiletris/gamewindow.cpp @@ -46,40 +46,40 @@ GameWindow::GameWindow(TQWidget *, const char *name) : TDEMainWindow(0, name) { //New Games - (void)KStdGameAction::gameNew(TQT_TQOBJECT(this), + (void)KStdGameAction::gameNew(this, TQT_SLOT(menu_newGame()), actionCollection()); //Pause Game - (void)KStdGameAction::pause(TQT_TQOBJECT(this), + (void)KStdGameAction::pause(this, TQT_SLOT(menu_pause()), actionCollection()); //End Game - (void)KStdGameAction::end(TQT_TQOBJECT(this), + (void)KStdGameAction::end(this, TQT_SLOT(menu_endGame()), actionCollection()); //Highscores - (void)KStdGameAction::highscores(TQT_TQOBJECT(this), + (void)KStdGameAction::highscores(this, TQT_SLOT(menu_highScores()), actionCollection()); //Quit - (void)KStdGameAction::quit(TQT_TQOBJECT(this), + (void)KStdGameAction::quit(this, TQT_SLOT(close()), actionCollection()); TQStringList list; TDESelectAction* piecesAct = - new TDESelectAction(i18n("&Pieces"), 0, TQT_TQOBJECT(this), TQT_SLOT(menu_pieces()), + new TDESelectAction(i18n("&Pieces"), 0, this, TQT_SLOT(menu_pieces()), actionCollection(), "settings_pieces"); list.append(i18n("&Smiles")); list.append(i18n("S&ymbols")); list.append(i18n("&Icons")); piecesAct->setItems(list); - (void)new TDEToggleAction(i18n("&Sounds"), 0, TQT_TQOBJECT(this), + (void)new TDEToggleAction(i18n("&Sounds"), 0, this, TQT_SLOT(menu_sounds()), actionCollection(), "settings_sounds"); @@ -99,14 +99,14 @@ GameWindow::GameWindow(TQWidget *, const char *name) setCentralWidget(game); connect(game, TQT_SIGNAL(changedStats(int, int)), this, TQT_SLOT(updateStats(int, int))); - connect(game, TQT_SIGNAL(gameOver()), TQT_TQOBJECT(this), TQT_SLOT(gameOver())); + connect(game, TQT_SIGNAL(gameOver()), this, TQT_SLOT(gameOver())); //keys - (void)new TDEAction(i18n("Move Left"), Key_Left, TQT_TQOBJECT(game), TQT_SLOT(keyLeft()), actionCollection(), "left"); - (void)new TDEAction(i18n("Move Right"), Key_Right, TQT_TQOBJECT(game), TQT_SLOT(keyRight()), actionCollection(), "right"); - (void)new TDEAction(i18n("Rotate Left"), Key_Up, TQT_TQOBJECT(game), TQT_SLOT(keyUp()), actionCollection(), "up"); - (void)new TDEAction(i18n("Rotate Right"), Key_Down, TQT_TQOBJECT(game), TQT_SLOT(keyDown()), actionCollection(), "down"); - (void)new TDEAction(i18n("Drop Down"), Key_Space, TQT_TQOBJECT(game), TQT_SLOT(keySpace()), actionCollection(), "space"); + (void)new TDEAction(i18n("Move Left"), Key_Left, game, TQT_SLOT(keyLeft()), actionCollection(), "left"); + (void)new TDEAction(i18n("Move Right"), Key_Right, game, TQT_SLOT(keyRight()), actionCollection(), "right"); + (void)new TDEAction(i18n("Rotate Left"), Key_Up, game, TQT_SLOT(keyUp()), actionCollection(), "up"); + (void)new TDEAction(i18n("Rotate Right"), Key_Down, game, TQT_SLOT(keyDown()), actionCollection(), "down"); + (void)new TDEAction(i18n("Drop Down"), Key_Space, game, TQT_SLOT(keySpace()), actionCollection(), "space"); game->setFixedSize(default_width, default_height); adjustSize(); |