summaryrefslogtreecommitdiffstats
path: root/kjumpingcube
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:12:46 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:12:46 -0600
commit58a97ed3af5e4df6c4a58d043b0c267bd97056a9 (patch)
tree5a2fde6842fd422cae2d8670d382be965098cc32 /kjumpingcube
parent2ce15ee76fd2d9d18a63c035a0f5b00b94c60cdc (diff)
downloadtdegames-58a97ed3af5e4df6c4a58d043b0c267bd97056a9.tar.gz
tdegames-58a97ed3af5e4df6c4a58d043b0c267bd97056a9.zip
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'kjumpingcube')
-rw-r--r--kjumpingcube/kjumpingcube.cpp8
-rw-r--r--kjumpingcube/kjumpingcube.h8
2 files changed, 8 insertions, 8 deletions
diff --git a/kjumpingcube/kjumpingcube.cpp b/kjumpingcube/kjumpingcube.cpp
index f6ed8a87..dfab89ff 100644
--- a/kjumpingcube/kjumpingcube.cpp
+++ b/kjumpingcube/kjumpingcube.cpp
@@ -56,7 +56,7 @@ KJumpingCube::KJumpingCube()
connect(view,TQT_SIGNAL(startedThinking()),TQT_SLOT(enableStop_Thinking()));
connect(view,TQT_SIGNAL(playerWon(int)),TQT_SLOT(showWinner(int)));
- // tell the KMainWindow that this is indeed the main widget
+ // tell the TDEMainWindow that this is indeed the main widget
setCentralWidget(view);
// init statusbar
@@ -71,11 +71,11 @@ KJumpingCube::KJumpingCube()
statusBar()->addWidget(currentPlayer, ID_STATUS_TURN, false);
statusBar()->setItemAlignment(ID_STATUS_TURN, AlignLeft | AlignVCenter);
- initKAction();
+ initTDEAction();
changePlayer(1);
}
-void KJumpingCube::initKAction() {
+void KJumpingCube::initTDEAction() {
KStdGameAction::gameNew(TQT_TQOBJECT(this), TQT_SLOT(newGame()), actionCollection());
KStdGameAction::load(TQT_TQOBJECT(this), TQT_SLOT(openGame()), actionCollection());
KStdGameAction::save(TQT_TQOBJECT(this), TQT_SLOT(save()), actionCollection());
@@ -83,7 +83,7 @@ void KJumpingCube::initKAction() {
KStdGameAction::quit(TQT_TQOBJECT(this), TQT_SLOT(close()), actionCollection());
hintAction = KStdGameAction::hint(TQT_TQOBJECT(view), TQT_SLOT(getHint()), actionCollection());
- stopAction = new KAction(i18n("Stop &Thinking"), "stop",
+ stopAction = new TDEAction(i18n("Stop &Thinking"), "stop",
TQt::Key_Escape, TQT_TQOBJECT(this), TQT_SLOT(stop()), actionCollection(), "game_stop");
stopAction->setEnabled(false);
undoAction = KStdGameAction::undo(TQT_TQOBJECT(this), TQT_SLOT(undo()), actionCollection());
diff --git a/kjumpingcube/kjumpingcube.h b/kjumpingcube/kjumpingcube.h
index 4b5b895f..0da7127b 100644
--- a/kjumpingcube/kjumpingcube.h
+++ b/kjumpingcube/kjumpingcube.h
@@ -29,7 +29,7 @@
#include <kmainwindow.h>
#include <kurl.h>
-class KAction;
+class TDEAction;
class KCubeBoxWidget;
/**
@@ -40,7 +40,7 @@ class KCubeBoxWidget;
* @author Matthias Kiefer <matthias.kiefer@gmx.de>
* @version 0.7.2
*/
-class KJumpingCube : public KMainWindow {
+class KJumpingCube : public TDEMainWindow {
Q_OBJECT
@@ -51,10 +51,10 @@ public:
private:
KCubeBoxWidget *view;
TQWidget *currentPlayer;
- KAction *undoAction, *stopAction, *hintAction;
+ TDEAction *undoAction, *stopAction, *hintAction;
KURL gameURL;
- void initKAction();
+ void initTDEAction();
private slots:
void newGame();