summaryrefslogtreecommitdiffstats
path: root/libtdegames/highscore
diff options
context:
space:
mode:
Diffstat (limited to 'libtdegames/highscore')
-rw-r--r--libtdegames/highscore/kexthighscore_gui.cpp2
-rw-r--r--libtdegames/highscore/kexthighscore_internal.h2
-rw-r--r--libtdegames/highscore/khighscore.cpp4
-rw-r--r--libtdegames/highscore/khighscore.h2
-rw-r--r--libtdegames/highscore/kscoredialog.cpp6
5 files changed, 8 insertions, 8 deletions
diff --git a/libtdegames/highscore/kexthighscore_gui.cpp b/libtdegames/highscore/kexthighscore_gui.cpp
index 286fb97a..2a598a21 100644
--- a/libtdegames/highscore/kexthighscore_gui.cpp
+++ b/libtdegames/highscore/kexthighscore_gui.cpp
@@ -444,7 +444,7 @@ void ConfigDialog::accept()
{
if ( save() ) {
KDialogBase::accept();
- kapp->config()->sync(); // safer
+ tdeApp->config()->sync(); // safer
}
}
diff --git a/libtdegames/highscore/kexthighscore_internal.h b/libtdegames/highscore/kexthighscore_internal.h
index c1d166bb..76f4eb65 100644
--- a/libtdegames/highscore/kexthighscore_internal.h
+++ b/libtdegames/highscore/kexthighscore_internal.h
@@ -177,7 +177,7 @@ class ConfigGroup : public TDEConfigGroupSaver
{
public:
ConfigGroup(const TQString &group = TQString())
- : TDEConfigGroupSaver(kapp->config(), group) {}
+ : TDEConfigGroupSaver(tdeApp->config(), group) {}
};
//-----------------------------------------------------------------------------
diff --git a/libtdegames/highscore/khighscore.cpp b/libtdegames/highscore/khighscore.cpp
index bfed1534..35503301 100644
--- a/libtdegames/highscore/khighscore.cpp
+++ b/libtdegames/highscore/khighscore.cpp
@@ -143,7 +143,7 @@ bool KHighscore::lockForWriting(TQWidget *widget)
void KHighscore::writeAndUnlock()
{
if ( !d->global ) {
- kapp->config()->sync();
+ tdeApp->config()->sync();
return;
}
if ( !isLocked() ) return;
@@ -162,7 +162,7 @@ KHighscore::~KHighscore()
TDEConfig* KHighscore::config() const
{
- return (d->global ? _config : kapp->config());
+ return (d->global ? _config : tdeApp->config());
}
void KHighscore::writeEntry(int entry, const TQString& key, const TQVariant& value)
diff --git a/libtdegames/highscore/khighscore.h b/libtdegames/highscore/khighscore.h
index d75a26e9..b313ac9f 100644
--- a/libtdegames/highscore/khighscore.h
+++ b/libtdegames/highscore/khighscore.h
@@ -295,7 +295,7 @@ protected:
/**
* @return A pointer to the TDEConfig object to be used. This is
- * either kapp->config() (default) or a KSimpleConfig object for
+ * either tdeApp->config() (default) or a KSimpleConfig object for
* a system-wide highscore file.
**/
TDEConfig* config() const;
diff --git a/libtdegames/highscore/kscoredialog.cpp b/libtdegames/highscore/kscoredialog.cpp
index 0f35c191..98aab883 100644
--- a/libtdegames/highscore/kscoredialog.cpp
+++ b/libtdegames/highscore/kscoredialog.cpp
@@ -275,7 +275,7 @@ void KScoreDialog::loadScores()
TQString key, value;
d->loaded = true;
d->scores.clear();
- TDEConfigGroup config(kapp->config(), d->configGroup.utf8());
+ TDEConfigGroup config(tdeApp->config(), d->configGroup.utf8());
d->player = config.readEntry("LastPlayer");
@@ -298,7 +298,7 @@ void KScoreDialog::loadScores()
void KScoreDialog::saveScores()
{
TQString key, value;
- TDEConfigGroup config(kapp->config(), d->configGroup.utf8());
+ TDEConfigGroup config(tdeApp->config(), d->configGroup.utf8());
config.writeEntry("LastPlayer", d->player);
@@ -315,7 +315,7 @@ void KScoreDialog::saveScores()
}
}
}
- kapp->config()->sync();
+ tdeApp->config()->sync();
}
int KScoreDialog::addScore(int newScore, const FieldInfo &newInfo, bool askName)