summaryrefslogtreecommitdiffstats
path: root/kmines/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmines/main.cpp')
-rw-r--r--kmines/main.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/kmines/main.cpp b/kmines/main.cpp
index e4dd1081..335c4208 100644
--- a/kmines/main.cpp
+++ b/kmines/main.cpp
@@ -76,10 +76,10 @@ MainWidget::MainWidget()
KStdGameAction::quit(TQT_TQOBJECT(tqApp), TQT_SLOT(quit()), actionCollection());
// keyboard
- _keybCollection = new KActionCollection(this);
+ _keybCollection = new TDEActionCollection(this);
for (uint i=0; i<NB_KEYS; i++) {
const KeyData &d = KEY_DATA[i];
- (void)new KAction(i18n(d.label), d.keycode, TQT_TQOBJECT(_status),
+ (void)new TDEAction(i18n(d.label), d.keycode, TQT_TQOBJECT(_status),
d.slot, _keybCollection, d.name);
}
@@ -103,24 +103,24 @@ MainWidget::MainWidget()
_advise =
KStdGameAction::hint(TQT_TQOBJECT(_status), TQT_SLOT(advise()), actionCollection());
_solve = KStdGameAction::solve(TQT_TQOBJECT(_status), TQT_SLOT(solve()), actionCollection());
- (void)new KAction(i18n("Solving Rate..."), 0, TQT_TQOBJECT(_status), TQT_SLOT(solveRate()),
+ (void)new TDEAction(i18n("Solving Rate..."), 0, TQT_TQOBJECT(_status), TQT_SLOT(solveRate()),
actionCollection(), "solve_rate");
// Log
- (void)new KAction(KGuiItem(i18n("View Log"), "viewmag"), 0,
+ (void)new TDEAction(KGuiItem(i18n("View Log"), "viewmag"), 0,
TQT_TQOBJECT(_status), TQT_SLOT(viewLog()),
actionCollection(), "log_view");
- (void)new KAction(KGuiItem(i18n("Replay Log"), "player_play"),
+ (void)new TDEAction(KGuiItem(i18n("Replay Log"), "player_play"),
0, TQT_TQOBJECT(_status), TQT_SLOT(replayLog()),
actionCollection(), "log_replay");
- (void)new KAction(KGuiItem(i18n("Save Log..."), "filesave"), 0,
+ (void)new TDEAction(KGuiItem(i18n("Save Log..."), "filesave"), 0,
TQT_TQOBJECT(_status), TQT_SLOT(saveLog()),
actionCollection(), "log_save");
- (void)new KAction(KGuiItem(i18n("Load Log..."), "fileopen"), 0,
+ (void)new TDEAction(KGuiItem(i18n("Load Log..."), "fileopen"), 0,
TQT_TQOBJECT(_status), TQT_SLOT(loadLog()),
actionCollection(), "log_load");
- setupGUI( KMainWindow::Save | Create );
+ setupGUI( TDEMainWindow::Save | Create );
readSettings();
setCentralWidget(_status);
init("popup");
@@ -150,7 +150,7 @@ void MainWidget::focusOutEvent(TQFocusEvent *e)
{
if ( Settings::pauseFocus() && e->reason()==TQFocusEvent::ActiveWindow
&& _status->isPlaying() ) pause();
- KMainWindow::focusOutEvent(e);
+ TDEMainWindow::focusOutEvent(e);
}
void MainWidget::configureSettings()
@@ -177,8 +177,8 @@ void MainWidget::configureHighscores()
void MainWidget::settingsChanged()
{
bool enabled = Settings::keyboardGame();
- TQValueList<KAction *> list = _keybCollection->actions();
- TQValueList<KAction *>::Iterator it;
+ TQValueList<TDEAction *> list = _keybCollection->actions();
+ TQValueList<TDEAction *>::Iterator it;
for (it = list.begin(); it!=list.end(); ++it)
(*it)->setEnabled(enabled);
_status->settingsChanged();