summaryrefslogtreecommitdiffstats
path: root/ktron
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-12-19 11:55:35 -0600
committerTimothy Pearson <[email protected]>2011-12-19 11:55:35 -0600
commitc0f375feba0103bed2bac1b1f05e76e9ae28fa89 (patch)
tree9c30a9097d650343df41d867f0e008769529eb08 /ktron
parent0e2b76239f354a9eead0b4e37d86d390ec57ffa9 (diff)
downloadtdegames-c0f375feba0103bed2bac1b1f05e76e9ae28fa89.tar.gz
tdegames-c0f375feba0103bed2bac1b1f05e76e9ae28fa89.zip
Remove additional unneeded tq method conversions
Diffstat (limited to 'ktron')
-rw-r--r--ktron/appearance.ui6
-rw-r--r--ktron/general.ui4
-rw-r--r--ktron/ktron.cpp10
-rw-r--r--ktron/tron.cpp8
4 files changed, 14 insertions, 14 deletions
diff --git a/ktron/appearance.ui b/ktron/appearance.ui
index c97ccb04..0c817317 100644
--- a/ktron/appearance.ui
+++ b/ktron/appearance.ui
@@ -90,7 +90,7 @@
<property name="text">
<string>Large</string>
</property>
- <property name="tqalignment">
+ <property name="alignment">
<set>AlignVCenter|AlignRight</set>
</property>
</widget>
@@ -101,7 +101,7 @@
<property name="text">
<string>Small</string>
</property>
- <property name="tqalignment">
+ <property name="alignment">
<set>AlignVCenter|AlignLeft</set>
</property>
</widget>
@@ -112,7 +112,7 @@
<property name="text">
<string>Medium</string>
</property>
- <property name="tqalignment">
+ <property name="alignment">
<set>AlignCenter</set>
</property>
</widget>
diff --git a/ktron/general.ui b/ktron/general.ui
index c89b4b01..2db1b4ae 100644
--- a/ktron/general.ui
+++ b/ktron/general.ui
@@ -175,7 +175,7 @@
<property name="text">
<string>Default</string>
</property>
- <property name="tqalignment">
+ <property name="alignment">
<set>AlignCenter</set>
</property>
</widget>
@@ -186,7 +186,7 @@
<property name="text">
<string>Fast</string>
</property>
- <property name="tqalignment">
+ <property name="alignment">
<set>AlignVCenter|AlignRight</set>
</property>
</widget>
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();
diff --git a/ktron/tron.cpp b/ktron/tron.cpp
index 4f40dc99..40a384e4 100644
--- a/ktron/tron.cpp
+++ b/ktron/tron.cpp
@@ -81,7 +81,7 @@ void Tron::loadSettings(){
// Style
if(pixmap){
updatePixmap();
- tqrepaint();
+ repaint();
}
// Backgroundimage
@@ -96,7 +96,7 @@ void Tron::loadSettings(){
setBackgroundPix(pix);
} else {
TQString msg=i18n("Wasn't able to load wallpaper\n%1");
- msg=msg.tqarg(tmpFile);
+ msg=msg.arg(tmpFile);
KMessageBox::sorry(this, msg);
}
KIO::NetAccess::removeTempFile(tmpFile);
@@ -268,7 +268,7 @@ void Tron::showWinner(Player player)
updatePixmap();
}
- tqrepaint();
+ repaint();
emit gameEnds(player);
@@ -810,7 +810,7 @@ void Tron::showBeginHint()
if(players[0].score==0 && players[1].score==0)
{
beginHint=true;
- tqrepaint();
+ repaint();
}
}
}