diff options
Diffstat (limited to 'katomic/gamewidget.cpp')
-rw-r--r-- | katomic/gamewidget.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/katomic/gamewidget.cpp b/katomic/gamewidget.cpp index 9d0ddf1a..0be6a43b 100644 --- a/katomic/gamewidget.cpp +++ b/katomic/gamewidget.cpp @@ -33,9 +33,9 @@ #include <highscore/kscoredialog.h> #include <tdemessagebox.h> #include <tdelocale.h> -#include <kstandarddirs.h> +#include <tdestandarddirs.h> #include <tdeglobal.h> -#include <ksimpleconfig.h> +#include <tdesimpleconfig.h> #include <tdeglobalsettings.h> Options settings; @@ -118,8 +118,8 @@ void GameWidget::getMoves(int moves) void GameWidget::mergeHighScores(int l) { - TDEConfigGroup oldConfig(kapp->config(), TQString("High Scores Level %1").arg(l).utf8()); - TDEConfigGroup newConfig(kapp->config(), TQString("Highscores Level %1").arg(l).utf8()); + TDEConfigGroup oldConfig(tdeApp->config(), TQString("High Scores Level %1").arg(l).utf8()); + TDEConfigGroup newConfig(tdeApp->config(), TQString("Highscores Level %1").arg(l).utf8()); newConfig.writeEntry("LastPlayer", oldConfig.readEntry("LastPlayer")); @@ -132,7 +132,7 @@ void GameWidget::mergeHighScores(int l) key = "Pos" + num + "Score"; newConfig.writeEntry(key, oldConfig.readEntry(key, "-")); } - kapp->config()->sync(); + tdeApp->config()->sync(); } void GameWidget::updateLevel (int l) @@ -143,12 +143,12 @@ void GameWidget::updateLevel (int l) return updateLevel(1); } - KSimpleConfig cfg(levelFile, true); + TDESimpleConfig cfg(levelFile, true); cfg.setGroup("Level"); feld->load(cfg); - if (!kapp->config()->hasGroup(TQString("Highscores Level %1").arg(level)) && - kapp->config()->hasGroup(TQString("High Scores Level %1").arg(level))) + if (!tdeApp->config()->hasGroup(TQString("Highscores Level %1").arg(level)) && + tdeApp->config()->hasGroup(TQString("High Scores Level %1").arg(level))) mergeHighScores(level); highScore->setConfigGroup(TQString("Highscores Level %1").arg(level)); @@ -188,17 +188,17 @@ GameWidget::GameWidget ( TQWidget *parent, const char* name ) // scrollbar scrl = new TQScrollBar(1, nlevels, 1, - 5, 1, Qt::Horizontal, vb, "scrl" ); - connect (scrl, TQT_SIGNAL (valueChanged (int)), TQT_SLOT (updateLevel (int))); + 5, 1, TQt::Horizontal, vb, "scrl" ); + connect (scrl, TQ_SIGNAL (valueChanged (int)), TQ_SLOT (updateLevel (int))); // molek�l molek = new Molek (vb, "molek"); feld->setMolek(molek); - connect (feld, TQT_SIGNAL (gameOver(int)), TQT_SLOT(gameOver(int))); - connect (feld, TQT_SIGNAL (sendMoves(int)), TQT_SLOT(getMoves(int))); - connect (feld, TQT_SIGNAL (enableRedo(bool)), TQT_SIGNAL(enableRedo(bool))); - connect (feld, TQT_SIGNAL (enableUndo(bool)), TQT_SIGNAL(enableUndo(bool))); + connect (feld, TQ_SIGNAL (gameOver(int)), TQ_SLOT(gameOver(int))); + connect (feld, TQ_SIGNAL (sendMoves(int)), TQ_SLOT(getMoves(int))); + connect (feld, TQ_SIGNAL (enableRedo(bool)), TQ_SIGNAL(enableRedo(bool))); + connect (feld, TQ_SIGNAL (enableUndo(bool)), TQ_SIGNAL(enableUndo(bool))); highScore = new KScoreDialog(KScoreDialog::Name | KScoreDialog::Score, this); |