From 58a97ed3af5e4df6c4a58d043b0c267bd97056a9 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 1 Feb 2013 15:12:46 -0600 Subject: Rename a number of classes to enhance compatibility with KDE4 --- kreversi/kreversi.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'kreversi/kreversi.cpp') diff --git a/kreversi/kreversi.cpp b/kreversi/kreversi.cpp index c3a047e3..5132d730 100644 --- a/kreversi/kreversi.cpp +++ b/kreversi/kreversi.cpp @@ -108,7 +108,7 @@ KReversi::KReversi() top->addMultiCellWidget(m_gameView, 0, 1, 0, 0); // Populate the GUI. - createKActions(); + createTDEActions(); addWidget(m_gameView); // Connect the signals from the game with slots of the view @@ -144,10 +144,10 @@ KReversi::~KReversi() -// Create all KActions used in KReversi. +// Create all TDEActions used in KReversi. // -void KReversi::createKActions() +void KReversi::createTDEActions() { // Standard Game Actions. KStdGameAction::gameNew(TQT_TQOBJECT(this), TQT_SLOT(slotNewGame()), actionCollection(), @@ -161,13 +161,13 @@ void KReversi::createKActions() "game_undo"); // Non-standard Game Actions: Stop, Continue, Switch sides - stopAction = new KAction(i18n("&Stop Thinking"), "game_stop", TQt::Key_Escape, + stopAction = new TDEAction(i18n("&Stop Thinking"), "game_stop", TQt::Key_Escape, TQT_TQOBJECT(this), TQT_SLOT(slotInterrupt()), actionCollection(), "game_stop"); - continueAction = new KAction(i18n("&Continue Thinking"), "reload", 0, + continueAction = new TDEAction(i18n("&Continue Thinking"), "reload", 0, TQT_TQOBJECT(this), TQT_SLOT(slotContinue()), actionCollection(), "game_continue"); - new KAction(i18n("S&witch Sides"), 0, 0, + new TDEAction(i18n("S&witch Sides"), 0, 0, TQT_TQOBJECT(this), TQT_SLOT(slotSwitchSides()), actionCollection(), "game_switch_sides"); @@ -176,11 +176,11 @@ void KReversi::createKActions() KStdAction::preferences(TQT_TQOBJECT(this), TQT_SLOT(slotEditSettings()), actionCollection()); // Actions for the view(s). - showLastMoveAction = new KToggleAction(i18n("Show Last Move"), "lastmoves", 0, + showLastMoveAction = new TDEToggleAction(i18n("Show Last Move"), "lastmoves", 0, TQT_TQOBJECT(this), TQT_SLOT(slotShowLastMove()), actionCollection(), "show_last_move"); - showLegalMovesAction = new KToggleAction(i18n("Show Legal Moves"), "legalmoves", 0, + showLegalMovesAction = new TDEToggleAction(i18n("Show Legal Moves"), "legalmoves", 0, TQT_TQOBJECT(this), TQT_SLOT(slotShowLegalMoves()), actionCollection(), "show_legal_moves"); @@ -209,7 +209,7 @@ void KReversi::setStrength(uint strength) // ---------------------------------------------------------------- -// Slots for KActions +// Slots for TDEActions // A slot that is called when the user wants a new game. -- cgit v1.2.3