From 373fe6f2b90bcd2e452f16115a4950a4b46c1f34 Mon Sep 17 00:00:00 2001 From: tpearson Date: Thu, 7 Jul 2011 21:14:06 +0000 Subject: Rename incorrect instances of tqrepaint[...] to repaint[...] git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegames@1240369 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- ksmiletris/gamewidget.cpp | 8 ++++---- ksmiletris/gamewidget.h | 2 +- ksmiletris/gamewindow.cpp | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) (limited to 'ksmiletris') diff --git a/ksmiletris/gamewidget.cpp b/ksmiletris/gamewidget.cpp index 3ba3051a..bf1e78ef 100644 --- a/ksmiletris/gamewidget.cpp +++ b/ksmiletris/gamewidget.cpp @@ -131,7 +131,7 @@ void GameWidget::setPieces(PiecesType type) sprites[Sprite_Broken1 + i] = pm; } - if (in_game) tqrepaintChilds(); + if (in_game) repaintChilds(); } void GameWidget::loadSprites() @@ -198,13 +198,13 @@ void GameWidget::newGame() updateMirror(); in_game = true; - tqrepaintChilds(); + repaintChilds(); emit changedStats(num_level, num_points); timer_interval = 700; timer->start(timer_interval); } -void GameWidget::tqrepaintChilds() +void GameWidget::repaintChilds() { screen->tqrepaint(false); mirror->tqrepaint(false); @@ -258,7 +258,7 @@ void GameWidget::nextPiece() || (piece[2] != bg_sprite && ref(xpos + 0, ypos + 1) != bg_sprite) || (piece[3] != bg_sprite && ref(xpos + 1, ypos + 1) != bg_sprite)) { in_game = false; - tqrepaintChilds(); + repaintChilds(); KMessageBox::sorry(this, i18n("Game Over")); emit gameOver(); } diff --git a/ksmiletris/gamewidget.h b/ksmiletris/gamewidget.h index 3eeaac96..4b4371b2 100644 --- a/ksmiletris/gamewidget.h +++ b/ksmiletris/gamewidget.h @@ -63,7 +63,7 @@ public: return s; } - void tqrepaintChilds(); + void repaintChilds(); private: TQPixmap *sprites; diff --git a/ksmiletris/gamewindow.cpp b/ksmiletris/gamewindow.cpp index c28a81d2..2d5824c8 100644 --- a/ksmiletris/gamewindow.cpp +++ b/ksmiletris/gamewindow.cpp @@ -137,7 +137,7 @@ void GameWindow::menu_pause() if (game->in_game) { game->in_pause = !game->in_pause; ((KToggleAction*)actionCollection()->action(KStdGameAction::stdName(KStdGameAction::Pause)))->setChecked(game->in_pause); - game->tqrepaintChilds(); + game->repaintChilds(); } } @@ -145,7 +145,7 @@ void GameWindow::menu_endGame() { if (game->in_game) { game->in_game = false; - game->tqrepaintChilds(); + game->repaintChilds(); ((KToggleAction*)actionCollection()->action(KStdGameAction::stdName(KStdGameAction::Pause)))->setChecked(false); gameOver(); } -- cgit v1.2.1