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 --- kreversi/Move.cpp | 2 +- kreversi/board.cpp | 4 ++-- kreversi/kreversi.cpp | 10 +++++----- kreversi/qreversigameview.cpp | 6 +++--- kreversi/settings.ui | 10 +++++----- 5 files changed, 16 insertions(+), 16 deletions(-) (limited to 'kreversi') diff --git a/kreversi/Move.cpp b/kreversi/Move.cpp index f1f50872..3916925e 100644 --- a/kreversi/Move.cpp +++ b/kreversi/Move.cpp @@ -66,7 +66,7 @@ TQString SimpleMove::asString() const if (m_x == -1) return TQString("pass"); else - return TQString("%1%2").tqarg(" ABCDEFGH"[m_x]).tqarg(" 12345678"[m_y]); + return TQString("%1%2").arg(" ABCDEFGH"[m_x]).arg(" 12345678"[m_y]); } diff --git a/kreversi/board.cpp b/kreversi/board.cpp index d24dccd1..8950fc8f 100644 --- a/kreversi/board.cpp +++ b/kreversi/board.cpp @@ -308,7 +308,7 @@ void QReversiBoardView::updateBoard (bool force) // If we are showing legal moves, we have to erase the old ones // before we can show the new ones. The easiest way to do that is - // to tqrepaint everything. + // to repaint everything. // // FIXME: A better way, perhaps, is to do the repainting in // drawPiece (which should be renamed drawSquare). @@ -498,7 +498,7 @@ void QReversiBoardView::drawOnePiece(uint row, uint col, int i) } -// We got a tqrepaint event. We make it easy for us and redraw the +// We got a repaint event. We make it easy for us and redraw the // entire board. // diff --git a/kreversi/kreversi.cpp b/kreversi/kreversi.cpp index 4c72251b..eee245b0 100644 --- a/kreversi/kreversi.cpp +++ b/kreversi/kreversi.cpp @@ -329,9 +329,9 @@ void KReversi::slotUndo() } if (m_game->toMove() == computerColor()) { - // Must tqrepaint so that the new move is not shown before the old + // Must repaint so that the new move is not shown before the old // one is removed on the screen. - m_gameView->tqrepaint(); + m_gameView->repaint(); computerMakeMove(); } else @@ -609,21 +609,21 @@ void KReversi::showGameOver(Color color) if ( color == Nobody ) { KNotifyClient::event(winId(), "draw", i18n("Draw!")); TQString s = i18n("Game is drawn!\n\nYou : %1\nComputer: %2") - .tqarg(human).tqarg(computer); + .arg(human).arg(computer); KMessageBox::information(this, s, i18n("Game Ended")); score.setType(KExtHighscore::Draw); } else if ( humanColor() == color ) { KNotifyClient::event(winId(), "won", i18n("Game won!")); TQString s = i18n("Congratulations, you have won!\n\nYou : %1\nComputer: %2") - .tqarg(human).tqarg(computer); + .arg(human).arg(computer); KMessageBox::information(this, s, i18n("Game Ended")); score.setType(KExtHighscore::Won); } else { KNotifyClient::event(winId(), "lost", i18n("Game lost!")); TQString s = i18n("You have lost the game!\n\nYou : %1\nComputer: %2") - .tqarg(human).tqarg(computer); + .arg(human).arg(computer); KMessageBox::information(this, s, i18n("Game Ended")); score.setType(KExtHighscore::Lost); } diff --git a/kreversi/qreversigameview.cpp b/kreversi/qreversigameview.cpp index 0d0ea728..7581ddf0 100644 --- a/kreversi/qreversigameview.cpp +++ b/kreversi/qreversigameview.cpp @@ -213,10 +213,10 @@ void QReversiGameView::moveMade(uint moveNum, Move &move) // Insert the new move in the listbox and mark it as the current one. m_movesView->insertItem(TQString("%1. %2 %3") - .tqarg(moveNum) - .tqarg(Prefs::grayscale() ? colorsWB[move.color()] + .arg(moveNum) + .arg(Prefs::grayscale() ? colorsWB[move.color()] : colorsRB[move.color()]) - .tqarg(move.asString())); + .arg(move.asString())); m_movesView->setCurrentItem(moveNum - 1); m_movesView->ensureCurrentVisible(); diff --git a/kreversi/settings.ui b/kreversi/settings.ui index fe7dc1a5..ead4757a 100644 --- a/kreversi/settings.ui +++ b/kreversi/settings.ui @@ -143,7 +143,7 @@ Beginner - + AlignVCenter|AlignLeft @@ -154,7 +154,7 @@ Expert - + AlignVCenter|AlignRight @@ -165,7 +165,7 @@ Average - + AlignCenter @@ -189,7 +189,7 @@ Slow - + AlignVCenter|AlignLeft @@ -200,7 +200,7 @@ Fast - + AlignVCenter|AlignRight -- cgit v1.2.1