summaryrefslogtreecommitdiffstats
path: root/kreversi/qreversigameview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kreversi/qreversigameview.cpp')
-rw-r--r--kreversi/qreversigameview.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/kreversi/qreversigameview.cpp b/kreversi/qreversigameview.cpp
index e6a17cbf..87b29a60 100644
--- a/kreversi/qreversigameview.cpp
+++ b/kreversi/qreversigameview.cpp
@@ -119,10 +119,10 @@ void StatusWidget::setScore(uint s)
// ================================================================
-// class TQReversiGameView
+// class QReversiGameView
-TQReversiGameView::TQReversiGameView(TQWidget *tqparent, TQReversiGame *game)
+QReversiGameView::QReversiGameView(TQWidget *tqparent, QReversiGame *game)
: TQWidget(tqparent, "gameview")
{
// Store a pointer to the game.
@@ -147,19 +147,19 @@ TQReversiGameView::TQReversiGameView(TQWidget *tqparent, TQReversiGame *game)
}
-TQReversiGameView::~TQReversiGameView()
+QReversiGameView::~QReversiGameView()
{
}
// Create the entire view. Only called once from the constructor.
-void TQReversiGameView::createView()
+void QReversiGameView::createView()
{
TQGridLayout *tqlayout = new TQGridLayout(this, 4, 2);
// The board
- m_boardView = new TQReversiBoardView(this, m_game);
+ m_boardView = new QReversiBoardView(this, m_game);
m_boardView->loadSettings(); // Load the pixmaps used in the status widgets.
tqlayout->addMultiCellWidget(m_boardView, 0, 3, 0, 0);
@@ -189,7 +189,7 @@ void TQReversiGameView::createView()
// Recieves the sig_newGame signal from the game.
-void TQReversiGameView::newGame()
+void QReversiGameView::newGame()
{
m_boardView->updateBoard(true);
m_movesView->clear();
@@ -199,7 +199,7 @@ void TQReversiGameView::newGame()
// Recieves the sig_move signal from the game.
-void TQReversiGameView::moveMade(uint moveNum, Move &move)
+void QReversiGameView::moveMade(uint moveNum, Move &move)
{
//FIXME: Error checks.
TQString colorsWB[] = {
@@ -232,7 +232,7 @@ void TQReversiGameView::moveMade(uint moveNum, Move &move)
// Recieves the sig_update signal from the game, and can be called
// whenever a total update of the view is required.
-void TQReversiGameView::updateView()
+void QReversiGameView::updateView()
{
m_boardView->updateBoard(true);
updateMovelist();
@@ -242,7 +242,7 @@ void TQReversiGameView::updateView()
// Only updates the status widgets (score).
-void TQReversiGameView::updatetqStatus()
+void QReversiGameView::updatetqStatus()
{
m_blacktqStatus->setScore(m_game->score(Black));
m_whitetqStatus->setScore(m_game->score(White));
@@ -251,7 +251,7 @@ void TQReversiGameView::updatetqStatus()
// Only updates the status board.
-void TQReversiGameView::updateBoard(bool force)
+void QReversiGameView::updateBoard(bool force)
{
m_boardView->updateBoard(force);
}
@@ -260,7 +260,7 @@ void TQReversiGameView::updateBoard(bool force)
// Only updates the movelist. This method regenerates the list from
// scratch.
-void TQReversiGameView::updateMovelist()
+void QReversiGameView::updateMovelist()
{
// FIXME: NYI
}
@@ -270,7 +270,7 @@ void TQReversiGameView::updateMovelist()
// access to the internal board view.
//
-void TQReversiGameView::squareClicked(int row, int col)
+void QReversiGameView::squareClicked(int row, int col)
{
emit signalSquareClicked(row, col);
}
@@ -280,7 +280,7 @@ void TQReversiGameView::squareClicked(int row, int col)
// Other public methods.
-void TQReversiGameView::setHumanColor(Color color)
+void QReversiGameView::setHumanColor(Color color)
{
m_humanColor = color;