diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-16 09:58:53 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-16 09:58:53 -0600 |
commit | 84ace1135cac57993b72fee7105b92def1638d32 (patch) | |
tree | b8871eb76e3db4a062731b0ce7c99c24fac119e8 /libtdegames/highscore/kexthighscore_internal.cpp | |
parent | 97d1732e257f8700488d7ca1660ae7eba8fc6065 (diff) | |
download | tdegames-84ace1135cac57993b72fee7105b92def1638d32.tar.gz tdegames-84ace1135cac57993b72fee7105b92def1638d32.zip |
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit 97d1732e257f8700488d7ca1660ae7eba8fc6065.
Diffstat (limited to 'libtdegames/highscore/kexthighscore_internal.cpp')
-rw-r--r-- | libtdegames/highscore/kexthighscore_internal.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/libtdegames/highscore/kexthighscore_internal.cpp b/libtdegames/highscore/kexthighscore_internal.cpp index 4803909a..a679002c 100644 --- a/libtdegames/highscore/kexthighscore_internal.cpp +++ b/libtdegames/highscore/kexthighscore_internal.cpp @@ -24,7 +24,7 @@ #include <unistd.h> #include <tqfile.h> -#include <layout.h> +#include <tqlayout.h> #include <tqdom.h> #include <kglobal.h> @@ -314,7 +314,7 @@ PlayerInfos::PlayerInfos() #ifdef HIGHSCORE_DIRECTORY if (_oldLocalPlayer) { // player already exists in local config file // copy player data - TQString prefix = TQString("%1_").arg(_oldLocalId+1); + TQString prefix = TQString("%1_").tqarg(_oldLocalId+1); TQMap<TQString, TQString> entries = cg.config()->entryMap("KHighscore_players"); TQMap<TQString, TQString>::const_iterator it; @@ -378,8 +378,8 @@ TQString PlayerInfos::histoName(uint i) const const TQMemArray<uint> &sh = _histogram; Q_ASSERT( i<sh.size() || (_bound || i==sh.size()) ); if ( i==sh.size() ) - return TQString("nb scores greater than %1").arg(sh[sh.size()-1]); - return TQString("nb scores less than %1").arg(sh[i]); + return TQString("nb scores greater than %1").tqarg(sh[sh.size()-1]); + return TQString("nb scores less than %1").tqarg(sh[i]); } uint PlayerInfos::histoSize() const @@ -497,10 +497,10 @@ void PlayerInfos::removeKey() TQString sk; do { i++; - sk = str.arg(HS_KEY).arg(i); + sk = str.tqarg(HS_KEY).tqarg(i); } while ( !cg.config()->readEntry(sk, TQString()).isEmpty() ); cg.config()->writeEntry(sk, key()); - cg.config()->writeEntry(str.arg(HS_REGISTERED_NAME).arg(i), + cg.config()->writeEntry(str.tqarg(HS_REGISTERED_NAME).tqarg(i), registeredName()); // clear current key/nickname @@ -609,7 +609,7 @@ bool ManagerPrivate::doQuery(const KURL &url, TQWidget *parent, TQString tmpFile; if ( !KIO::NetAccess::download(url, tmpFile, parent) ) { - TQString details = i18n("Server URL: %1").arg(url.host()); + TQString details = i18n("Server URL: %1").tqarg(url.host()); KMessageBox::detailedSorry(parent, i18n(UNABLE_TO_CONTACT), details); return false; } @@ -647,7 +647,7 @@ bool ManagerPrivate::doQuery(const KURL &url, TQWidget *parent, } } TQString msg = i18n("Invalid answer from world-wide highscores server."); - TQString details = i18n("Raw message: %1").arg(content); + TQString details = i18n("Raw message: %1").tqarg(content); KMessageBox::detailedSorry(parent, msg, details); return false; } @@ -660,7 +660,7 @@ bool ManagerPrivate::getFromQuery(const TQDomNamedNodeMap &map, if ( attr.isNull() ) { KMessageBox::sorry(parent, i18n("Invalid answer from world-wide " - "highscores server (missing item: %1).").arg(name)); + "highscores server (missing item: %1).").tqarg(name)); return false; } value = attr.value(); @@ -780,7 +780,7 @@ int ManagerPrivate::submitScore(const Score &ascore, Score score = ascore; score.setData("id", _playerInfos->id() + 1); - score.setData("date", TQDateTime::currentDateTime()); + score.setData("date", TQDateTime::tqcurrentDateTime()); // ask new name if anonymous and winner const char *dontAskAgainName = "highscore_ask_name_dialog"; |