diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-25 00:32:59 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-25 00:32:59 -0600 |
commit | 2f84d0e2d3d4252e6aee24aceafa45dbdb7f4d1d (patch) | |
tree | ea24a96bad3bb7356ec1a2dca2a1338692d79745 /libtdegames/highscore/khighscore.cpp | |
parent | d6f3812c8d969a673b420beca2482804177704fb (diff) | |
download | tdegames-2f84d0e2d3d4252e6aee24aceafa45dbdb7f4d1d.tar.gz tdegames-2f84d0e2d3d4252e6aee24aceafa45dbdb7f4d1d.zip |
Rename KCModule, KConfig, KIO, KServer, and KSocket to avoid conflicts with KDE4
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); } |