diff options
Diffstat (limited to 'libtdegames/highscore/khighscore.cpp')
-rw-r--r-- | libtdegames/highscore/khighscore.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/libtdegames/highscore/khighscore.cpp b/libtdegames/highscore/khighscore.cpp index da0c802c..8a36a748 100644 --- a/libtdegames/highscore/khighscore.cpp +++ b/libtdegames/highscore/khighscore.cpp @@ -160,7 +160,7 @@ KHighscore::~KHighscore() delete d; } -KConfig* KHighscore::config() const +TDEConfig* KHighscore::config() const { return (d->global ? _config : kapp->config()); } @@ -168,7 +168,7 @@ KConfig* KHighscore::config() const void KHighscore::writeEntry(int entry, const TQString& key, const TQVariant& value) { Q_ASSERT( isLocked() ); - KConfigGroupSaver cg(config(), group()); + TDEConfigGroupSaver cg(config(), group()); TQString confKey = TQString("%1_%2").arg(entry).arg(key); cg.config()->writeEntry(confKey, value); } @@ -176,7 +176,7 @@ void KHighscore::writeEntry(int entry, const TQString& key, const TQVariant& val void KHighscore::writeEntry(int entry, const TQString& key, int value) { Q_ASSERT( isLocked() ); - KConfigGroupSaver cg(config(), group()); + TDEConfigGroupSaver cg(config(), group()); TQString confKey = TQString("%1_%2").arg(entry).arg(key); cg.config()->writeEntry(confKey, value); } @@ -184,35 +184,35 @@ void KHighscore::writeEntry(int entry, const TQString& key, int value) void KHighscore::writeEntry(int entry, const TQString& key, const TQString &value) { Q_ASSERT (isLocked() ); - KConfigGroupSaver cg(config(), group()); + TDEConfigGroupSaver cg(config(), group()); TQString confKey = TQString("%1_%2").arg(entry).arg(key); cg.config()->writeEntry(confKey, value); } TQVariant KHighscore::readPropertyEntry(int entry, const TQString& key, const TQVariant& pDefault) const { - KConfigGroupSaver cg(config(), group()); + TDEConfigGroupSaver cg(config(), group()); TQString confKey = TQString("%1_%2").arg(entry).arg(key); return cg.config()->readPropertyEntry(confKey, pDefault); } TQString KHighscore::readEntry(int entry, const TQString& key, const TQString& pDefault) const { - KConfigGroupSaver cg(config(), group()); + TDEConfigGroupSaver cg(config(), group()); TQString confKey = TQString("%1_%2").arg(entry).arg(key); return cg.config()->readEntry(confKey, pDefault); } int KHighscore::readNumEntry(int entry, const TQString& key, int pDefault) const { - KConfigGroupSaver cg(config(), group()); + TDEConfigGroupSaver cg(config(), group()); TQString confKey = TQString("%1_%2").arg(entry).arg(key); return cg.config()->readNumEntry(confKey, pDefault); } bool KHighscore::hasEntry(int entry, const TQString& key) const { - KConfigGroupSaver cg(config(), group()); + TDEConfigGroupSaver cg(config(), group()); TQString confKey = TQString("%1_%2").arg(entry).arg(key); return cg.config()->hasKey(confKey); } |