summaryrefslogtreecommitdiffstats
path: root/kshisen
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 /kshisen
parent0e2b76239f354a9eead0b4e37d86d390ec57ffa9 (diff)
downloadtdegames-c0f375feba0103bed2bac1b1f05e76e9ae28fa89.tar.gz
tdegames-c0f375feba0103bed2bac1b1f05e76e9ae28fa89.zip
Remove additional unneeded tq method conversions
Diffstat (limited to 'kshisen')
-rw-r--r--kshisen/app.cpp22
-rw-r--r--kshisen/board.cpp4
-rw-r--r--kshisen/settings.ui12
3 files changed, 19 insertions, 19 deletions
diff --git a/kshisen/app.cpp b/kshisen/app.cpp
index 5f54a75d..98a40dde 100644
--- a/kshisen/app.cpp
+++ b/kshisen/app.cpp
@@ -299,9 +299,9 @@ void App::slotEndOfGame()
else
{
TQString s = i18n("Congratulations! You made it in %1:%2:%3")
- .tqarg(TQString().sprintf("%02d", board->getTimeForGame()/3600))
- .tqarg(TQString().sprintf("%02d", (board->getTimeForGame() / 60) % 60))
- .tqarg(TQString().sprintf("%02d", board->getTimeForGame() % 60));
+ .arg(TQString().sprintf("%02d", board->getTimeForGame()/3600))
+ .arg(TQString().sprintf("%02d", (board->getTimeForGame() / 60) % 60))
+ .arg(TQString().sprintf("%02d", board->getTimeForGame() % 60));
KMessageBox::information(this, s, i18n("End of Game"));
}
@@ -315,18 +315,18 @@ void App::updateScore()
{
int t = board->getTimeForGame();
TQString s = i18n(" Your time: %1:%2:%3 %4")
- .tqarg(TQString().sprintf("%02d", t / 3600 ))
- .tqarg(TQString().sprintf("%02d", (t / 60) % 60 ))
- .tqarg(TQString().sprintf("%02d", t % 60 ))
- .tqarg(board->isPaused()?i18n("(Paused) "):TQString());
+ .arg(TQString().sprintf("%02d", t / 3600 ))
+ .arg(TQString().sprintf("%02d", (t / 60) % 60 ))
+ .arg(TQString().sprintf("%02d", t % 60 ))
+ .arg(board->isPaused()?i18n("(Paused) "):TQString());
statusBar()->changeItem(s, SBI_TIME);
// Number of tiles
int tl = (board->x_tiles() * board->y_tiles());
s = i18n(" Removed: %1/%2 ")
- .tqarg(TQString().sprintf("%d", tl - board->tilesLeft()))
- .tqarg(TQString().sprintf("%d", tl ));
+ .arg(TQString().sprintf("%d", tl - board->tilesLeft()))
+ .arg(TQString().sprintf("%d", tl ));
statusBar()->changeItem(s, SBI_TILES);
}
@@ -685,8 +685,8 @@ void App::showHighscore(int focusitem)
if(i < highscore.size())
{
s = TQString("%1 %2")
- .tqarg(getScore(hs))
- .tqarg(hs.gravity ? i18n("(gravity)") : TQString(""));
+ .arg(getScore(hs))
+ .arg(hs.gravity ? i18n("(gravity)") : TQString(""));
}
else
{
diff --git a/kshisen/board.cpp b/kshisen/board.cpp
index a7d39640..ae2fd750 100644
--- a/kshisen/board.cpp
+++ b/kshisen/board.cpp
@@ -444,7 +444,7 @@ void Board::updateField(int x, int y, bool erase)
tiles.tileWidth(),
tiles.tileHeight());
- tqrepaint(r, erase);
+ repaint(r, erase);
}
void Board::paintEvent(TQPaintEvent *e)
@@ -900,7 +900,7 @@ void Board::dumpBoard() const
if(tile == EMPTY)
row += " --";
else
- row += TQString("%1").tqarg(getField(x, y), 3);
+ row += TQString("%1").arg(getField(x, y), 3);
}
kdDebug() << row << endl;
}
diff --git a/kshisen/settings.ui b/kshisen/settings.ui
index d0c9f2b3..9fdac201 100644
--- a/kshisen/settings.ui
+++ b/kshisen/settings.ui
@@ -78,7 +78,7 @@
<property name="text">
<string>Hard</string>
</property>
- <property name="tqalignment">
+ <property name="alignment">
<set>AlignVCenter|AlignRight</set>
</property>
</widget>
@@ -130,7 +130,7 @@
<property name="text">
<string>Fast</string>
</property>
- <property name="tqalignment">
+ <property name="alignment">
<set>AlignVCenter|AlignRight</set>
</property>
</widget>
@@ -170,7 +170,7 @@
<property name="text">
<string>18x8</string>
</property>
- <property name="tqalignment">
+ <property name="alignment">
<set>AlignCenter</set>
</property>
</widget>
@@ -181,7 +181,7 @@
<property name="text">
<string>26x14</string>
</property>
- <property name="tqalignment">
+ <property name="alignment">
<set>AlignCenter</set>
</property>
</widget>
@@ -192,7 +192,7 @@
<property name="text">
<string>30x16</string>
</property>
- <property name="tqalignment">
+ <property name="alignment">
<set>AlignVCenter|AlignRight</set>
</property>
</widget>
@@ -226,7 +226,7 @@
<property name="text">
<string>24x12</string>
</property>
- <property name="tqalignment">
+ <property name="alignment">
<set>AlignCenter</set>
</property>
</widget>