diff options
author | Timothy Pearson <[email protected]> | 2011-12-19 11:55:35 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2011-12-19 11:55:35 -0600 |
commit | c0f375feba0103bed2bac1b1f05e76e9ae28fa89 (patch) | |
tree | 9c30a9097d650343df41d867f0e008769529eb08 /ksmiletris | |
parent | 0e2b76239f354a9eead0b4e37d86d390ec57ffa9 (diff) | |
download | tdegames-c0f375feba0103bed2bac1b1f05e76e9ae28fa89.tar.gz tdegames-c0f375feba0103bed2bac1b1f05e76e9ae28fa89.zip |
Remove additional unneeded tq method conversions
Diffstat (limited to 'ksmiletris')
-rw-r--r-- | ksmiletris/gamewidget.cpp | 14 | ||||
-rw-r--r-- | ksmiletris/gamewindow.cpp | 4 |
2 files changed, 9 insertions, 9 deletions
diff --git a/ksmiletris/gamewidget.cpp b/ksmiletris/gamewidget.cpp index 04d5e543..b0cc3316 100644 --- a/ksmiletris/gamewidget.cpp +++ b/ksmiletris/gamewidget.cpp @@ -206,9 +206,9 @@ void GameWidget::newGame() void GameWidget::repaintChilds() { - screen->tqrepaint(false); - mirror->tqrepaint(false); - next->tqrepaint(false); + screen->repaint(false); + mirror->repaint(false); + next->repaint(false); } void GameWidget::putPiece() @@ -218,7 +218,7 @@ void GameWidget::putPiece() if (piece[2] != bg_sprite) ref(xpos + 0, ypos + 1) = piece[2]; if (piece[3] != bg_sprite) ref(xpos + 1, ypos + 1) = piece[3]; updateMirror(); - screen->tqrepaint(false); + screen->repaint(false); } void GameWidget::getPiece() @@ -241,7 +241,7 @@ void GameWidget::newPiece() next_piece[i] = (Sprite)(Sprite_Block1 + random.getLong(num_pieces_level)); else next_piece[i] = bg_sprite; - next->tqrepaint(false); + next->repaint(false); } void GameWidget::nextPiece() @@ -272,7 +272,7 @@ void GameWidget::updateMirror() mirror_sprites[x] = bg_sprite; mirror_sprites[xpos] = piece[2] == bg_sprite ? piece[0] : piece[2]; mirror_sprites[xpos+1] = piece[3] == bg_sprite ? piece[1] : piece[3]; - mirror->tqrepaint(false); + mirror->repaint(false); } void GameWidget::keyUp() @@ -390,7 +390,7 @@ void GameWidget::broke(int x, int y, bool *xmap) emit changedStats(num_level, num_points); #ifdef HAVE_USLEEP - screen->tqrepaint(false); + screen->repaint(false); usleep(75 * 1000); #endif } diff --git a/ksmiletris/gamewindow.cpp b/ksmiletris/gamewindow.cpp index 2d5824c8..004c60e2 100644 --- a/ksmiletris/gamewindow.cpp +++ b/ksmiletris/gamewindow.cpp @@ -182,8 +182,8 @@ void GameWindow::updateStats(int level, int points) TQString l, p; l.setNum(level); p.setNum(points); - status->changeItem(i18n("Level: %1").tqarg(l), 1); - status->changeItem(i18n("Score: %1").tqarg(p), 2); + status->changeItem(i18n("Level: %1").arg(l), 1); + status->changeItem(i18n("Score: %1").arg(p), 2); } void GameWindow::gameOver() |