diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-01 15:12:46 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-01 15:12:46 -0600 |
commit | 58a97ed3af5e4df6c4a58d043b0c267bd97056a9 (patch) | |
tree | 5a2fde6842fd422cae2d8670d382be965098cc32 /kmines/main.cpp | |
parent | 2ce15ee76fd2d9d18a63c035a0f5b00b94c60cdc (diff) | |
download | tdegames-58a97ed3af5e4df6c4a58d043b0c267bd97056a9.tar.gz tdegames-58a97ed3af5e4df6c4a58d043b0c267bd97056a9.zip |
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'kmines/main.cpp')
-rw-r--r-- | kmines/main.cpp | 22 |
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(); |