summaryrefslogtreecommitdiffstats
path: root/ksmiletris
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-19 10:10:52 +0900
commit6374e2e62eef25945347ce2c9ae9f88e61765d11 (patch)
tree707d84dbca20d20dee68626dda0d35568d7dcb34 /ksmiletris
parentc26a225408c4759743b754453b07d0dca97aa749 (diff)
downloadtdegames-6374e2e62eef25945347ce2c9ae9f88e61765d11.tar.gz
tdegames-6374e2e62eef25945347ce2c9ae9f88e61765d11.zip
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit c20f4d8f2cf03c69fcecc80d63fe3cbb80f51610)
Diffstat (limited to 'ksmiletris')
-rw-r--r--ksmiletris/gamewidget.cpp2
-rw-r--r--ksmiletris/gamewindow.cpp34
2 files changed, 18 insertions, 18 deletions
diff --git a/ksmiletris/gamewidget.cpp b/ksmiletris/gamewidget.cpp
index fa1ff075..b9ca5837 100644
--- a/ksmiletris/gamewidget.cpp
+++ b/ksmiletris/gamewidget.cpp
@@ -70,7 +70,7 @@ GameWidget::GameWidget(TQWidget *parent, const char *name)
next->setNextPieceSprites(next_piece);
timer = new TQTimer(this);
- connect(timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(timeout()));
+ connect(timer, TQ_SIGNAL(timeout()), this, TQ_SLOT(timeout()));
}
GameWidget::~GameWidget()
diff --git a/ksmiletris/gamewindow.cpp b/ksmiletris/gamewindow.cpp
index 04ddda8a..e566a8bb 100644
--- a/ksmiletris/gamewindow.cpp
+++ b/ksmiletris/gamewindow.cpp
@@ -47,32 +47,32 @@ GameWindow::GameWindow(TQWidget *, const char *name)
{
//New Games
(void)KStdGameAction::gameNew(this,
- TQT_SLOT(menu_newGame()),
+ TQ_SLOT(menu_newGame()),
actionCollection());
//Pause Game
(void)KStdGameAction::pause(this,
- TQT_SLOT(menu_pause()),
+ TQ_SLOT(menu_pause()),
actionCollection());
//End Game
(void)KStdGameAction::end(this,
- TQT_SLOT(menu_endGame()),
+ TQ_SLOT(menu_endGame()),
actionCollection());
//Highscores
(void)KStdGameAction::highscores(this,
- TQT_SLOT(menu_highScores()),
+ TQ_SLOT(menu_highScores()),
actionCollection());
//Quit
(void)KStdGameAction::quit(this,
- TQT_SLOT(close()),
+ TQ_SLOT(close()),
actionCollection());
TQStringList list;
TDESelectAction* piecesAct =
- new TDESelectAction(i18n("&Pieces"), 0, this, TQT_SLOT(menu_pieces()),
+ new TDESelectAction(i18n("&Pieces"), 0, this, TQ_SLOT(menu_pieces()),
actionCollection(), "settings_pieces");
list.append(i18n("&Smiles"));
list.append(i18n("S&ymbols"));
@@ -80,14 +80,14 @@ GameWindow::GameWindow(TQWidget *, const char *name)
piecesAct->setItems(list);
(void)new TDEToggleAction(i18n("&Sounds"), 0, this,
- TQT_SLOT(menu_sounds()), actionCollection(), "settings_sounds");
+ TQ_SLOT(menu_sounds()), actionCollection(), "settings_sounds");
- //connect(menu, TQT_SIGNAL(moved(menuPosition)),
- // this, TQT_SLOT(movedMenu(menuPosition))); ?
+ //connect(menu, TQ_SIGNAL(moved(menuPosition)),
+ // this, TQ_SLOT(movedMenu(menuPosition))); ?
status = new KStatusBar(this);
status->insertItem(i18n("Level: 99"), 1);
@@ -97,16 +97,16 @@ GameWindow::GameWindow(TQWidget *, const char *name)
game = new GameWidget(this);
setCentralWidget(game);
- connect(game, TQT_SIGNAL(changedStats(int, int)),
- this, TQT_SLOT(updateStats(int, int)));
- connect(game, TQT_SIGNAL(gameOver()), this, TQT_SLOT(gameOver()));
+ connect(game, TQ_SIGNAL(changedStats(int, int)),
+ this, TQ_SLOT(updateStats(int, int)));
+ connect(game, TQ_SIGNAL(gameOver()), this, TQ_SLOT(gameOver()));
//keys
- (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");
+ (void)new TDEAction(i18n("Move Left"), Key_Left, game, TQ_SLOT(keyLeft()), actionCollection(), "left");
+ (void)new TDEAction(i18n("Move Right"), Key_Right, game, TQ_SLOT(keyRight()), actionCollection(), "right");
+ (void)new TDEAction(i18n("Rotate Left"), Key_Up, game, TQ_SLOT(keyUp()), actionCollection(), "up");
+ (void)new TDEAction(i18n("Rotate Right"), Key_Down, game, TQ_SLOT(keyDown()), actionCollection(), "down");
+ (void)new TDEAction(i18n("Drop Down"), Key_Space, game, TQ_SLOT(keySpace()), actionCollection(), "space");
game->setFixedSize(default_width, default_height);
adjustSize();