diff options
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); |