From c0f375feba0103bed2bac1b1f05e76e9ae28fa89 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Mon, 19 Dec 2011 11:55:35 -0600 Subject: Remove additional unneeded tq method conversions --- twin4/twin4/kspritecache.cpp | 6 +++--- twin4/twin4/scorewidget.cpp | 6 +++--- twin4/twin4/settings.ui | 2 +- twin4/twin4/statistics.ui | 12 ++++++------ twin4/twin4/statuswidget.ui | 10 +++++----- twin4/twin4/twin4.cpp | 2 +- twin4/twin4/twin4view.cpp | 2 +- 7 files changed, 20 insertions(+), 20 deletions(-) (limited to 'twin4') diff --git a/twin4/twin4/kspritecache.cpp b/twin4/twin4/kspritecache.cpp index bd55c418..9e3abddc 100644 --- a/twin4/twin4/kspritecache.cpp +++ b/twin4/twin4/kspritecache.cpp @@ -90,7 +90,7 @@ void KSpriteCache::deleteAllItems() void KSpriteCache::deleteItem(TQString s,int no) { TQCanvasItem *item; - TQString name=s+TQString("_%1").tqarg(no); + TQString name=s+TQString("_%1").arg(no); //kdDebug(11002) << "KSpriteCache::deleteItem name=" << name << endl; item=mItemDict[name]; if (item) @@ -122,7 +122,7 @@ void KSpriteCache::deleteItem(TQCanvasItem *item) TQCanvasItem *KSpriteCache::getItem(TQString name,int no) { - TQString dictname=name+TQString("_%1").tqarg(no); + TQString dictname=name+TQString("_%1").arg(no); TQCanvasItem *item=mItemDict[dictname]; //kdDebug(11002) << " -> getItem("<"<hasKey(anim)) { //kdDebug(11002) << "Found animation key " << anim << endl; diff --git a/twin4/twin4/scorewidget.cpp b/twin4/twin4/scorewidget.cpp index a8733583..41384da4 100644 --- a/twin4/twin4/scorewidget.cpp +++ b/twin4/twin4/scorewidget.cpp @@ -148,12 +148,12 @@ void ScoreWidget::Paint(TQPainter *p,TQRect /*cliprect*/) void ScoreWidget::setMove(int i) { - TextLabel5->setText( TQString("%1").tqarg(i)); + TextLabel5->setText( TQString("%1").arg(i)); } void ScoreWidget::setLevel(int i) { - TextLabel4->setText( TQString("%1").tqarg(i)); + TextLabel4->setText( TQString("%1").arg(i)); } void ScoreWidget::setChance(int i) @@ -165,7 +165,7 @@ void ScoreWidget::setChance(int i) else if (i<=-999) TextLabel6->setText(i18n("Loser")); else - TextLabel6->setText(TQString("%1").tqarg(i)); + TextLabel6->setText(TQString("%1").arg(i)); } void ScoreWidget::setPlayer(TQString s,int no) diff --git a/twin4/twin4/settings.ui b/twin4/twin4/settings.ui index d873f04a..7b0568de 100644 --- a/twin4/twin4/settings.ui +++ b/twin4/twin4/settings.ui @@ -81,7 +81,7 @@ Hard - + AlignVCenter|AlignRight diff --git a/twin4/twin4/statistics.ui b/twin4/twin4/statistics.ui index bb32c249..1744158a 100644 --- a/twin4/twin4/statistics.ui +++ b/twin4/twin4/statistics.ui @@ -70,7 +70,7 @@ Name - + AlignCenter @@ -81,7 +81,7 @@ Won - + AlignCenter @@ -97,7 +97,7 @@ Lost - + AlignCenter @@ -118,7 +118,7 @@ Sum - + AlignCenter @@ -129,7 +129,7 @@ Aborted - + AlignCenter @@ -201,7 +201,7 @@ Drawn - + AlignCenter diff --git a/twin4/twin4/statuswidget.ui b/twin4/twin4/statuswidget.ui index 8d0da299..a7d2fa6e 100644 --- a/twin4/twin4/statuswidget.ui +++ b/twin4/twin4/statuswidget.ui @@ -69,7 +69,7 @@ W - + AlignCenter @@ -80,7 +80,7 @@ D - + AlignCenter @@ -91,7 +91,7 @@ L - + AlignCenter @@ -102,7 +102,7 @@ No - + AlignCenter @@ -113,7 +113,7 @@ Bk - + AlignCenter diff --git a/twin4/twin4/twin4.cpp b/twin4/twin4/twin4.cpp index 25754554..dd8b3359 100644 --- a/twin4/twin4/twin4.cpp +++ b/twin4/twin4/twin4.cpp @@ -509,7 +509,7 @@ void Kwin4App::slotGameOver(int status, KPlayer * p, KGame * /*me*/) EndGame(TWin); else EndGame(TLost); - TQString msg=i18n("%1 won the game. Please restart next round.").tqarg(doc->QueryName(((FARBE)p->userId()))); + TQString msg=i18n("%1 won the game. Please restart next round.").arg(doc->QueryName(((FARBE)p->userId()))); slotStatusMsg(msg); } else if (status==2) // Abort diff --git a/twin4/twin4/twin4view.cpp b/twin4/twin4/twin4view.cpp index f8d542a2..6ee09cc4 100644 --- a/twin4/twin4/twin4view.cpp +++ b/twin4/twin4/twin4view.cpp @@ -601,7 +601,7 @@ bool Kwin4View::wrongPlayer(KPlayer *player,KGameIO::IOMode io) clearError(); int rnd=(kapp->random()%4) +1; TQString m; - m=TQString("text%1").tqarg(rnd); + m=TQString("text%1").arg(rnd); TQString ms; if (rnd==1) ms=i18n("Hold on... the other player has not been yet..."); else if (rnd==2) ms=i18n("Hold your horses..."); -- cgit v1.2.1