summaryrefslogtreecommitdiffstats
path: root/examples/tictac
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-12-27 19:25:43 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-12-31 22:16:03 +0900
commitecca365daf06c711cf30f93f4c773dabf5642790 (patch)
tree0b2f6780f60fd7eb35c84cc899e7d51db189d67d /examples/tictac
parent1c30858477bcf3a4c74866d9a3d26f57753dd36a (diff)
downloadtqt3-ecca365daf06c711cf30f93f4c773dabf5642790.tar.gz
tqt3-ecca365daf06c711cf30f93f4c773dabf5642790.zip
Rename METHOD, SIGNAL, SLOT to TQ_METHOD, TQ_SIGNAL, TQ_SLOT
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit fb401a891f1b426e9419c0cb16403df407138611)
Diffstat (limited to 'examples/tictac')
-rw-r--r--examples/tictac/tictac.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/examples/tictac/tictac.cpp b/examples/tictac/tictac.cpp
index 03e4fa276..988df2385 100644
--- a/examples/tictac/tictac.cpp
+++ b/examples/tictac/tictac.cpp
@@ -73,7 +73,7 @@ TicTacGameBoard::TicTacGameBoard( int n, TQWidget *parent, const char *name )
TicTacButton *ttb = new TicTacButton( this );
ttb->setPalette( p );
ttb->setEnabled( FALSE );
- connect( ttb, SIGNAL(clicked()), SLOT(buttonClicked()) );
+ connect( ttb, TQ_SIGNAL(clicked()), TQ_SLOT(buttonClicked()) );
grid->addWidget( ttb, i%nBoard, i/nBoard );
buttons->insert( i, ttb );
btArray->at(i) = TicTacButton::Blank; // initial button type
@@ -120,7 +120,7 @@ void TicTacGameBoard::newGame()
// --------------------------------------------------------------------------
-// TicTacGameBoard::buttonClicked() - SLOT
+// TicTacGameBoard::buttonClicked() - TQ_SLOT
//
// This slot is activated when a TicTacButton emits the signal "clicked()",
// i.e. the user has clicked on a TicTacButton.
@@ -301,7 +301,7 @@ TicTacToe::TicTacToe( int boardSize, TQWidget *parent, const char *name )
// gameOver() slot
board = new TicTacGameBoard( boardSize, this );
- connect( board, SIGNAL(finished()), SLOT(gameOver()) );
+ connect( board, TQ_SIGNAL(finished()), TQ_SLOT(gameOver()) );
l->addWidget( board );
// Create a horizontal frame line
@@ -322,9 +322,9 @@ TicTacToe::TicTacToe( int boardSize, TQWidget *parent, const char *name )
// to this right slots.
newGame = new TQPushButton( "Play!", this );
- connect( newGame, SIGNAL(clicked()), SLOT(newGameClicked()) );
+ connect( newGame, TQ_SIGNAL(clicked()), TQ_SLOT(newGameClicked()) );
quit = new TQPushButton( "Quit", this );
- connect( quit, SIGNAL(clicked()), tqApp, SLOT(quit()) );
+ connect( quit, TQ_SIGNAL(clicked()), tqApp, TQ_SLOT(quit()) );
TQHBoxLayout * b = new TQHBoxLayout;
l->addLayout( b );
b->addWidget( newGame );
@@ -335,7 +335,7 @@ TicTacToe::TicTacToe( int boardSize, TQWidget *parent, const char *name )
// --------------------------------------------------------------------------
-// TicTacToe::newGameClicked() - SLOT
+// TicTacToe::newGameClicked() - TQ_SLOT
//
// This slot is activated when the new game button is clicked.
//
@@ -349,7 +349,7 @@ void TicTacToe::newGameClicked()
// --------------------------------------------------------------------------
-// TicTacToe::gameOver() - SLOT
+// TicTacToe::gameOver() - TQ_SLOT
//
// This slot is activated when the TicTacGameBoard emits the signal
// "finished()", i.e. when a player has won or when it is a draw.