summaryrefslogtreecommitdiffstats
path: root/kpat/gamestatsimpl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kpat/gamestatsimpl.cpp')
-rw-r--r--kpat/gamestatsimpl.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kpat/gamestatsimpl.cpp b/kpat/gamestatsimpl.cpp
index 11b95fee..59e37b79 100644
--- a/kpat/gamestatsimpl.cpp
+++ b/kpat/gamestatsimpl.cpp
@@ -24,7 +24,7 @@ GameStatsImpl::GameStatsImpl(TQWidget* aParent, const char* aname)
if (list.count() <= i)
list.append("unknown");
list[index] = i18n((*it)->name);
- list[index].replace('&',"");
+ list[index].tqreplace('&',"");
}
GameType->insertStringList(list);
showGameType(0);
@@ -42,16 +42,16 @@ void GameStatsImpl::setGameType(int id)
languageChange();
KConfig *config = kapp->config();
KConfigGroupSaver kcs(config, scores_group);
- unsigned int t = config->readUnsignedNumEntry(TQString("total%1").arg(id),0);
- Played->setText(Played->text().arg(t));
- unsigned int w = config->readUnsignedNumEntry(TQString("won%1").arg(id),0);
- Won->setText(Won->text().arg(w));
+ unsigned int t = config->readUnsignedNumEntry(TQString("total%1").tqarg(id),0);
+ Played->setText(Played->text().tqarg(t));
+ unsigned int w = config->readUnsignedNumEntry(TQString("won%1").tqarg(id),0);
+ Won->setText(Won->text().tqarg(w));
if (t)
- WonPerc->setText(WonPerc->text().arg(w*100/t));
+ WonPerc->setText(WonPerc->text().tqarg(w*100/t));
else
- WonPerc->setText(WonPerc->text().arg(0));
+ WonPerc->setText(WonPerc->text().tqarg(0));
WinStreak->setText(
- WinStreak->text().arg(config->readUnsignedNumEntry(TQString("maxwinstreak%1").arg(id),0)));
+ WinStreak->text().tqarg(config->readUnsignedNumEntry(TQString("maxwinstreak%1").tqarg(id),0)));
LooseStreak->setText(
- LooseStreak->text().arg(config->readUnsignedNumEntry(TQString("maxloosestreak%1").arg(id),0)));
+ LooseStreak->text().tqarg(config->readUnsignedNumEntry(TQString("maxloosestreak%1").tqarg(id),0)));
}