diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-18 18:31:10 -0600 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2012-06-04 01:10:52 +0200 |
commit | 9e8c9cf72cdda55e3c96c7ef072c3358061d53c9 (patch) | |
tree | 668cc8f756c0cac76b39b63bc1f09115015a10a5 /kreversi/qreversigameview.cpp | |
parent | 7cfcd74800487ecb6246597fdc559ca8baf2c4da (diff) | |
download | tdegames-9e8c9cf72cdda55e3c96c7ef072c3358061d53c9.tar.gz tdegames-9e8c9cf72cdda55e3c96c7ef072c3358061d53c9.zip |
Rename old tq methods that no longer need a unique name
(cherry picked from commit 0e2b76239f354a9eead0b4e37d86d390ec57ffa9)
Diffstat (limited to 'kreversi/qreversigameview.cpp')
-rw-r--r-- | kreversi/qreversigameview.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/kreversi/qreversigameview.cpp b/kreversi/qreversigameview.cpp index f661d62c..0d0ea728 100644 --- a/kreversi/qreversigameview.cpp +++ b/kreversi/qreversigameview.cpp @@ -164,16 +164,16 @@ void QReversiGameView::createView() tqlayout->addMultiCellWidget(m_boardView, 0, 3, 0, 0); // The status widgets - m_blacktqStatus = new StatusWidget(TQString(), this); - m_blacktqStatus->setPixmap(m_boardView->chipPixmap(Black, 20)); - tqlayout->addWidget(m_blacktqStatus, 0, 1); - m_whitetqStatus = new StatusWidget(TQString(), this); - m_whitetqStatus->setPixmap(m_boardView->chipPixmap(White, 20)); - tqlayout->addWidget(m_whitetqStatus, 1, 1); + m_blackStatus = new StatusWidget(TQString(), this); + m_blackStatus->setPixmap(m_boardView->chipPixmap(Black, 20)); + tqlayout->addWidget(m_blackStatus, 0, 1); + m_whiteStatus = new StatusWidget(TQString(), this); + m_whiteStatus->setPixmap(m_boardView->chipPixmap(White, 20)); + tqlayout->addWidget(m_whiteStatus, 1, 1); // The "Moves" label TQLabel *movesLabel = new TQLabel( i18n("Moves"), this); - movesLabel->tqsetAlignment(AlignCenter); + movesLabel->setAlignment(AlignCenter); tqlayout->addWidget(movesLabel, 2, 1); // The list of moves. @@ -193,7 +193,7 @@ void QReversiGameView::newGame() { m_boardView->updateBoard(true); m_movesView->clear(); - updatetqStatus(); + updateStatus(); } @@ -225,7 +225,7 @@ void QReversiGameView::moveMade(uint moveNum, Move &move) m_boardView->updateBoard(); // Update the score. - updatetqStatus(); + updateStatus(); } @@ -236,16 +236,16 @@ void QReversiGameView::updateView() { m_boardView->updateBoard(true); updateMovelist(); - updatetqStatus(); + updateStatus(); } // Only updates the status widgets (score). -void QReversiGameView::updatetqStatus() +void QReversiGameView::updateStatus() { - m_blacktqStatus->setScore(m_game->score(Black)); - m_whitetqStatus->setScore(m_game->score(White)); + m_blackStatus->setScore(m_game->score(Black)); + m_whiteStatus->setScore(m_game->score(White)); } @@ -285,12 +285,12 @@ void QReversiGameView::setHumanColor(Color color) m_humanColor = color; if (color == Black) { - m_blacktqStatus->setText(i18n("You")); - m_whitetqStatus->setText(""); + m_blackStatus->setText(i18n("You")); + m_whiteStatus->setText(""); } else { - m_blacktqStatus->setText(""); - m_whitetqStatus->setText(i18n("You")); + m_blackStatus->setText(""); + m_whiteStatus->setText(i18n("You")); } } |