summaryrefslogtreecommitdiffstats
path: root/kreversi
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-13 12:28:49 +0900
commitc20f4d8f2cf03c69fcecc80d63fe3cbb80f51610 (patch)
tree50b08262da538c5b91f77e83e4b80d7fd6dbe0de /kreversi
parent51f65427771c47f6d34cda56b07d9d82bd0bfd33 (diff)
downloadtdegames-c20f4d8f2cf03c69fcecc80d63fe3cbb80f51610.tar.gz
tdegames-c20f4d8f2cf03c69fcecc80d63fe3cbb80f51610.zip
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kreversi')
-rw-r--r--kreversi/kreversi.cpp42
-rw-r--r--kreversi/kzoommainwindow.cpp8
-rw-r--r--kreversi/qreversigameview.cpp12
3 files changed, 31 insertions, 31 deletions
diff --git a/kreversi/kreversi.cpp b/kreversi/kreversi.cpp
index be02d428..12668301 100644
--- a/kreversi/kreversi.cpp
+++ b/kreversi/kreversi.cpp
@@ -116,15 +116,15 @@ KReversi::KReversi()
// The only part of the view that is left in this class is the
// indicator of whose turn it is in the status bar. The rest is
// in the game view.
- connect(m_game, TQT_SIGNAL(sig_newGame()), this, TQT_SLOT(showTurn()));
- connect(m_game, TQT_SIGNAL(sig_move(uint, Move&)),
- this, TQT_SLOT(handleMove(uint, Move&))); // Calls showTurn().
- connect(m_game, TQT_SIGNAL(sig_update()), this, TQT_SLOT(showTurn()));
- connect(m_game, TQT_SIGNAL(sig_gameOver()), this, TQT_SLOT(slotGameOver()));
+ connect(m_game, TQ_SIGNAL(sig_newGame()), this, TQ_SLOT(showTurn()));
+ connect(m_game, TQ_SIGNAL(sig_move(uint, Move&)),
+ this, TQ_SLOT(handleMove(uint, Move&))); // Calls showTurn().
+ connect(m_game, TQ_SIGNAL(sig_update()), this, TQ_SLOT(showTurn()));
+ connect(m_game, TQ_SIGNAL(sig_gameOver()), this, TQ_SLOT(slotGameOver()));
// Signal that is sent when the user clicks on the board.
- connect(m_gameView, TQT_SIGNAL(signalSquareClicked(int, int)),
- this, TQT_SLOT(slotSquareClicked(int, int)));
+ connect(m_gameView, TQ_SIGNAL(signalSquareClicked(int, int)),
+ this, TQ_SLOT(slotSquareClicked(int, int)));
loadSettings();
@@ -150,38 +150,38 @@ KReversi::~KReversi()
void KReversi::createTDEActions()
{
// Standard Game Actions.
- KStdGameAction::gameNew(this, TQT_SLOT(slotNewGame()), actionCollection(),
+ KStdGameAction::gameNew(this, TQ_SLOT(slotNewGame()), actionCollection(),
"game_new");
- KStdGameAction::load(this, TQT_SLOT(slotOpenGame()), actionCollection());
- KStdGameAction::save(this, TQT_SLOT(slotSave()), actionCollection());
- KStdGameAction::quit(this, TQT_SLOT(close()), actionCollection());
- KStdGameAction::hint(this, TQT_SLOT(slotHint()), actionCollection(),
+ KStdGameAction::load(this, TQ_SLOT(slotOpenGame()), actionCollection());
+ KStdGameAction::save(this, TQ_SLOT(slotSave()), actionCollection());
+ KStdGameAction::quit(this, TQ_SLOT(close()), actionCollection());
+ KStdGameAction::hint(this, TQ_SLOT(slotHint()), actionCollection(),
"game_hint");
- KStdGameAction::undo(this, TQT_SLOT(slotUndo()), actionCollection(),
+ KStdGameAction::undo(this, TQ_SLOT(slotUndo()), actionCollection(),
"game_undo");
// Non-standard Game Actions: Stop, Continue, Switch sides
stopAction = new TDEAction(i18n("&Stop Thinking"), "game_stop", TQt::Key_Escape,
- this, TQT_SLOT(slotInterrupt()), actionCollection(),
+ this, TQ_SLOT(slotInterrupt()), actionCollection(),
"game_stop");
continueAction = new TDEAction(i18n("&Continue Thinking"), "reload", 0,
- this, TQT_SLOT(slotContinue()), actionCollection(),
+ this, TQ_SLOT(slotContinue()), actionCollection(),
"game_continue");
new TDEAction(i18n("S&witch Sides"), 0, 0,
- this, TQT_SLOT(slotSwitchSides()), actionCollection(),
+ this, TQ_SLOT(slotSwitchSides()), actionCollection(),
"game_switch_sides");
// Some more standard game actions: Highscores, Settings.
- KStdGameAction::highscores(this, TQT_SLOT(showHighScoreDialog()), actionCollection());
- KStdAction::preferences(this, TQT_SLOT(slotEditSettings()), actionCollection());
+ KStdGameAction::highscores(this, TQ_SLOT(showHighScoreDialog()), actionCollection());
+ KStdAction::preferences(this, TQ_SLOT(slotEditSettings()), actionCollection());
// Actions for the view(s).
showLastMoveAction = new TDEToggleAction(i18n("Show Last Move"), "lastmoves", 0,
- this, TQT_SLOT(slotShowLastMove()),
+ this, TQ_SLOT(slotShowLastMove()),
actionCollection(),
"show_last_move");
showLegalMovesAction = new TDEToggleAction(i18n("Show Legal Moves"), "legalmoves", 0,
- this, TQT_SLOT(slotShowLegalMoves()),
+ this, TQ_SLOT(slotShowLegalMoves()),
actionCollection(),
"show_legal_moves");
}
@@ -755,7 +755,7 @@ void KReversi::slotEditSettings()
Settings *general = new Settings(0, "General");
dialog->addPage(general, i18n("General"), "package_settings");
- connect(dialog, TQT_SIGNAL(settingsChanged()), this, TQT_SLOT(loadSettings()));
+ connect(dialog, TQ_SIGNAL(settingsChanged()), this, TQ_SLOT(loadSettings()));
dialog->show();
}
diff --git a/kreversi/kzoommainwindow.cpp b/kreversi/kzoommainwindow.cpp
index 10953a2d..ca31e998 100644
--- a/kreversi/kzoommainwindow.cpp
+++ b/kreversi/kzoommainwindow.cpp
@@ -34,11 +34,11 @@ KZoomMainWindow::KZoomMainWindow(uint min, uint max, uint step,
installEventFilter(this);
m_zoomInAction =
- KStdAction::zoomIn(this, TQT_SLOT(zoomIn()), actionCollection());
+ KStdAction::zoomIn(this, TQ_SLOT(zoomIn()), actionCollection());
m_zoomOutAction =
- KStdAction::zoomOut(this, TQT_SLOT(zoomOut()), actionCollection());
+ KStdAction::zoomOut(this, TQ_SLOT(zoomOut()), actionCollection());
m_menu =
- KStdAction::showMenubar(this, TQT_SLOT(toggleMenubar()), actionCollection());
+ KStdAction::showMenubar(this, TQ_SLOT(toggleMenubar()), actionCollection());
}
@@ -71,7 +71,7 @@ void KZoomMainWindow::addWidget(TQWidget *widget)
Q_ASSERT(zm);
zm->m_widgets.append(widget);
- connect(widget, TQT_SIGNAL(destroyed()), zm, TQT_SLOT(widgetDestroyed()));
+ connect(widget, TQ_SIGNAL(destroyed()), zm, TQ_SLOT(widgetDestroyed()));
}
diff --git a/kreversi/qreversigameview.cpp b/kreversi/qreversigameview.cpp
index 02f1ad3d..5ae999a7 100644
--- a/kreversi/qreversigameview.cpp
+++ b/kreversi/qreversigameview.cpp
@@ -135,15 +135,15 @@ QReversiGameView::QReversiGameView(TQWidget *parent, QReversiGame *game)
m_humanColor = Nobody;
// Connect the game to the view.
- connect(m_game, TQT_SIGNAL(sig_newGame()), this, TQT_SLOT(newGame()));
- connect(m_game, TQT_SIGNAL(sig_move(uint, Move&)),
- this, TQT_SLOT(moveMade(uint, Move&)));
- connect(m_game, TQT_SIGNAL(sig_update()), this, TQT_SLOT(updateView()));
+ connect(m_game, TQ_SIGNAL(sig_newGame()), this, TQ_SLOT(newGame()));
+ connect(m_game, TQ_SIGNAL(sig_move(uint, Move&)),
+ this, TQ_SLOT(moveMade(uint, Move&)));
+ connect(m_game, TQ_SIGNAL(sig_update()), this, TQ_SLOT(updateView()));
// The sig_gameOver signal is not used by the view.
// Reemit the signal from the board.
- connect(m_boardView, TQT_SIGNAL(signalSquareClicked(int, int)),
- this, TQT_SLOT(squareClicked(int, int)));
+ connect(m_boardView, TQ_SIGNAL(signalSquareClicked(int, int)),
+ this, TQ_SLOT(squareClicked(int, int)));
}