diff options
author | Michele Calgaro <[email protected]> | 2024-01-13 12:28:49 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2024-01-19 10:10:52 +0900 |
commit | 6374e2e62eef25945347ce2c9ae9f88e61765d11 (patch) | |
tree | 707d84dbca20d20dee68626dda0d35568d7dcb34 /klines/klines.cpp | |
parent | c26a225408c4759743b754453b07d0dca97aa749 (diff) | |
download | tdegames-6374e2e62eef25945347ce2c9ae9f88e61765d11.tar.gz tdegames-6374e2e62eef25945347ce2c9ae9f88e61765d11.zip |
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <[email protected]>
(cherry picked from commit c20f4d8f2cf03c69fcecc80d63fe3cbb80f51610)
Diffstat (limited to 'klines/klines.cpp')
-rw-r--r-- | klines/klines.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/klines/klines.cpp b/klines/klines.cpp index 43d60835..f813d0e1 100644 --- a/klines/klines.cpp +++ b/klines/klines.cpp @@ -64,10 +64,10 @@ KLines::KLines() setCentralWidget( mwidget ); lsb = mwidget->GetLsb(); - connect(lsb, TQT_SIGNAL(endTurn()), this, TQT_SLOT(makeTurn())); - connect(lsb, TQT_SIGNAL(eraseLine(int)), this, TQT_SLOT(addScore(int))); - connect(lsb, TQT_SIGNAL(endGame()), this, TQT_SLOT(endGame())); - connect(lsb, TQT_SIGNAL(userTurn()), this, TQT_SLOT(userTurn())); + connect(lsb, TQ_SIGNAL(endTurn()), this, TQ_SLOT(makeTurn())); + connect(lsb, TQ_SIGNAL(eraseLine(int)), this, TQ_SLOT(addScore(int))); + connect(lsb, TQ_SIGNAL(endGame()), this, TQ_SLOT(endGame())); + connect(lsb, TQ_SIGNAL(userTurn()), this, TQ_SLOT(userTurn())); lPrompt = mwidget->GetPrompt(); @@ -82,7 +82,7 @@ KLines::KLines() initTDEAction(); - connect(&demoTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotDemo())); + connect(&demoTimer, TQ_SIGNAL(timeout()), this, TQ_SLOT(slotDemo())); setFocusPolicy(TQWidget::StrongFocus); setFocus(); @@ -104,18 +104,18 @@ KLines::~KLines() */ void KLines::initTDEAction() { - KStdGameAction::gameNew(this, TQT_SLOT(startGame()), actionCollection()); - act_demo = KStdGameAction::demo(this, TQT_SLOT(startDemo()), actionCollection()); + KStdGameAction::gameNew(this, TQ_SLOT(startGame()), actionCollection()); + act_demo = KStdGameAction::demo(this, TQ_SLOT(startDemo()), actionCollection()); act_demo->setText(i18n("Start &Tutorial")); - KStdGameAction::highscores(this, TQT_SLOT(viewHighScore()), actionCollection()); - KStdGameAction::quit(this, TQT_SLOT(close()), actionCollection()); - endTurnAction = KStdGameAction::endTurn(this, TQT_SLOT(makeTurn()), actionCollection()); + KStdGameAction::highscores(this, TQ_SLOT(viewHighScore()), actionCollection()); + KStdGameAction::quit(this, TQ_SLOT(close()), actionCollection()); + endTurnAction = KStdGameAction::endTurn(this, TQ_SLOT(makeTurn()), actionCollection()); showNextAction = new TDEToggleAction(i18n("&Show Next"), TDEShortcut(CTRL+Key_P), - this, TQT_SLOT(switchPrompt()), actionCollection(), "options_show_next"); + this, TQ_SLOT(switchPrompt()), actionCollection(), "options_show_next"); showNextAction->setCheckedState(i18n("Hide Next")); showNumberedAction = new TDEToggleAction(i18n("&Use Numbered Balls"), TDEShortcut(), - this, TQT_SLOT(switchNumbered()), actionCollection(), "options_show_numbered"); - undoAction = KStdGameAction::undo(this, TQT_SLOT(undo()), actionCollection()); + this, TQ_SLOT(switchNumbered()), actionCollection(), "options_show_numbered"); + undoAction = KStdGameAction::undo(this, TQ_SLOT(undo()), actionCollection()); levelAction = KStdGameAction::chooseGameType(0, 0, actionCollection()); TQStringList items; @@ -128,11 +128,11 @@ void KLines::initTDEAction() showNumberedAction->setChecked(Prefs::numberedBalls()); lPrompt->setPrompt(Prefs::showNext()); - (void)new TDEAction(i18n("Move Left"), Key_Left, lsb, TQT_SLOT(moveLeft()), actionCollection(), "left"); - (void)new TDEAction(i18n("Move Right"), Key_Right, lsb, TQT_SLOT(moveRight()), actionCollection(), "right"); - (void)new TDEAction(i18n("Move Up"), Key_Up, lsb, TQT_SLOT(moveUp()), actionCollection(), "up"); - (void)new TDEAction(i18n("Move Down"), Key_Down, lsb, TQT_SLOT(moveDown()), actionCollection(), "down"); - (void)new TDEAction(i18n("Move Ball"), Key_Space, lsb, TQT_SLOT(placePlayerBall()), actionCollection(), "place_ball"); + (void)new TDEAction(i18n("Move Left"), Key_Left, lsb, TQ_SLOT(moveLeft()), actionCollection(), "left"); + (void)new TDEAction(i18n("Move Right"), Key_Right, lsb, TQ_SLOT(moveRight()), actionCollection(), "right"); + (void)new TDEAction(i18n("Move Up"), Key_Up, lsb, TQ_SLOT(moveUp()), actionCollection(), "up"); + (void)new TDEAction(i18n("Move Down"), Key_Down, lsb, TQ_SLOT(moveDown()), actionCollection(), "down"); + (void)new TDEAction(i18n("Move Ball"), Key_Space, lsb, TQ_SLOT(placePlayerBall()), actionCollection(), "place_ball"); setupGUI( TDEMainWindow::Save | Keys | StatusBar | Create ); } |