summaryrefslogtreecommitdiffstats
path: root/ktron/ktron.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-12-19 11:55:35 -0600
committerSlávek Banko <[email protected]>2012-06-04 01:10:53 +0200
commit00e58f1937047eb6c23edbdb3ae7ed5feec7a572 (patch)
tree33b3465e8515be992049db8cc3fd529660f9731a /ktron/ktron.cpp
parent9e8c9cf72cdda55e3c96c7ef072c3358061d53c9 (diff)
downloadtdegames-00e58f1937047eb6c23edbdb3ae7ed5feec7a572.tar.gz
tdegames-00e58f1937047eb6c23edbdb3ae7ed5feec7a572.zip
Remove additional unneeded tq method conversions
(cherry picked from commit c0f375feba0103bed2bac1b1f05e76e9ae28fa89)
Diffstat (limited to 'ktron/ktron.cpp')
-rw-r--r--ktron/ktron.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/ktron/ktron.cpp b/ktron/ktron.cpp
index 91ccdcc5..31437999 100644
--- a/ktron/ktron.cpp
+++ b/ktron/ktron.cpp
@@ -108,12 +108,12 @@ void KTron::updateStatusbar(){
TQString name;
if(tron->isComputer(Both))
- name=i18n("Computer(%1)").tqarg(i+1);
+ name=i18n("Computer(%1)").arg(i+1);
else if(tron->isComputer(player))
name=i18n("Computer");
else
name=playerName[i];
- TQString string = TQString("%1: %2").tqarg(name).tqarg(playerPoints[i]);
+ TQString string = TQString("%1: %2").arg(name).arg(playerPoints[i]);
statusBar()->changeItem(string,ID_STATUS_BASE+i+1);
}
}
@@ -158,12 +158,12 @@ void KTron::showWinner(Player winner){
if(!tron->isComputer(winner))
winnerName = playerName[winner];
- TQString message=i18n("%1 has won!").tqarg(winnerName);
+ TQString message=i18n("%1 has won!").arg(winnerName);
statusBar()->message(message,MESSAGE_TIME);
message = i18n("%1 has won versus %2 with %3 : %4 points!");
- message=message.tqarg(winnerName).tqarg(loserName);
- message=message.tqarg(playerPoints[winner]).tqarg(playerPoints[loser]);
+ message=message.arg(winnerName).arg(loserName);
+ message=message.arg(playerPoints[winner]).arg(playerPoints[loser]);
KMessageBox::information(this, message, i18n("Winner"));
tron->newGame();