diff options
author | Timothy Pearson <[email protected]> | 2013-02-01 15:12:46 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2013-02-01 15:12:46 -0600 |
commit | 58a97ed3af5e4df6c4a58d043b0c267bd97056a9 (patch) | |
tree | 5a2fde6842fd422cae2d8670d382be965098cc32 /katomic | |
parent | 2ce15ee76fd2d9d18a63c035a0f5b00b94c60cdc (diff) | |
download | tdegames-58a97ed3af5e4df6c4a58d043b0c267bd97056a9.tar.gz tdegames-58a97ed3af5e4df6c4a58d043b0c267bd97056a9.zip |
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'katomic')
-rw-r--r-- | katomic/toplevel.cpp | 16 | ||||
-rw-r--r-- | katomic/toplevel.h | 6 |
2 files changed, 11 insertions, 11 deletions
diff --git a/katomic/toplevel.cpp b/katomic/toplevel.cpp index 56244c3a..1a26d4ac 100644 --- a/katomic/toplevel.cpp +++ b/katomic/toplevel.cpp @@ -40,7 +40,7 @@ extern Options settings; void AtomTopLevel::createMenu() { - KAction *act = KStdGameAction::highscores(TQT_TQOBJECT(main), TQT_SLOT(showHighscores()), actionCollection()); + TDEAction *act = KStdGameAction::highscores(TQT_TQOBJECT(main), TQT_SLOT(showHighscores()), actionCollection()); act->setText(i18n("Show &Highscores")); KStdGameAction::quit(TQT_TQOBJECT(this), TQT_SLOT(close()), actionCollection()); KStdGameAction::restart(TQT_TQOBJECT(main), TQT_SLOT(restartLevel()), actionCollection()); @@ -54,13 +54,13 @@ void AtomTopLevel::createMenu() connect (main, TQT_SIGNAL (enableRedo(bool)), TQT_SLOT(enableRedo(bool))); connect (main, TQT_SIGNAL (enableUndo(bool)), TQT_SLOT(enableUndo(bool))); - new KAction(i18n("Atom Up"), Key_Up, TQT_TQOBJECT(main), TQT_SLOT(moveUp()), actionCollection(), "atom_up"); - new KAction(i18n("Atom Down"), Key_Down, TQT_TQOBJECT(main), TQT_SLOT(moveDown()), actionCollection(), "atom_down"); - new KAction(i18n("Atom Left"), Key_Left, TQT_TQOBJECT(main), TQT_SLOT(moveLeft()), actionCollection(), "atom_left"); - new KAction(i18n("Atom Right"), Key_Right, TQT_TQOBJECT(main), TQT_SLOT(moveRight()), actionCollection(), "atom_right"); + new TDEAction(i18n("Atom Up"), Key_Up, TQT_TQOBJECT(main), TQT_SLOT(moveUp()), actionCollection(), "atom_up"); + new TDEAction(i18n("Atom Down"), Key_Down, TQT_TQOBJECT(main), TQT_SLOT(moveDown()), actionCollection(), "atom_down"); + new TDEAction(i18n("Atom Left"), Key_Left, TQT_TQOBJECT(main), TQT_SLOT(moveLeft()), actionCollection(), "atom_left"); + new TDEAction(i18n("Atom Right"), Key_Right, TQT_TQOBJECT(main), TQT_SLOT(moveRight()), actionCollection(), "atom_right"); - new KAction(i18n("Next Atom"), Key_Tab, TQT_TQOBJECT(main), TQT_SLOT(nextAtom()), actionCollection(), "next_atom"); - new KAction(i18n("Previous Atom"), SHIFT+Key_Tab, TQT_TQOBJECT(main), TQT_SLOT(previousAtom()), actionCollection(), "prev_atom"); + new TDEAction(i18n("Next Atom"), Key_Tab, TQT_TQOBJECT(main), TQT_SLOT(nextAtom()), actionCollection(), "next_atom"); + new TDEAction(i18n("Previous Atom"), SHIFT+Key_Tab, TQT_TQOBJECT(main), TQT_SLOT(previousAtom()), actionCollection(), "prev_atom"); } void AtomTopLevel::configopts() @@ -93,7 +93,7 @@ AtomTopLevel::AtomTopLevel() initConfig(); setCentralWidget(main); - setupGUI( KMainWindow::Save | Keys | Create ); + setupGUI( TDEMainWindow::Save | Keys | Create ); } AtomTopLevel::~AtomTopLevel() diff --git a/katomic/toplevel.h b/katomic/toplevel.h index 274b28a0..2f29229b 100644 --- a/katomic/toplevel.h +++ b/katomic/toplevel.h @@ -8,7 +8,7 @@ #define TOPLEVEL_H class GameWidget; -class KAction; +class TDEAction; class TDEConfig; #include <kmainwindow.h> @@ -21,7 +21,7 @@ class TDEConfig; * @author Andreas W�st */ -class AtomTopLevel : public KMainWindow +class AtomTopLevel : public TDEMainWindow { Q_OBJECT @@ -51,7 +51,7 @@ class AtomTopLevel : public KMainWindow GameWidget *main; - KAction *redoAction, *undoAction; + TDEAction *redoAction, *undoAction; protected slots: void enableRedo(bool enable); |