summaryrefslogtreecommitdiffstats
path: root/qtruby/rubylib/examples/qt-examples/tictac
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-01-13 11:29:06 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-01-14 20:32:49 +0900
commit1eb017313b2ebc441dfc81e73a5d6573d03ea08d (patch)
tree8d37ac85ad8a529697fc81479852a039de534b8e /qtruby/rubylib/examples/qt-examples/tictac
parent673e65a4a15e713643f4bb804f7af6dfdaa0d6d6 (diff)
downloadtdebindings-1eb017313b2ebc441dfc81e73a5d6573d03ea08d.tar.gz
tdebindings-1eb017313b2ebc441dfc81e73a5d6573d03ea08d.zip
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit faf33629bb6562a6f43f930afafe4b22e9cdb60b)
Diffstat (limited to 'qtruby/rubylib/examples/qt-examples/tictac')
-rw-r--r--qtruby/rubylib/examples/qt-examples/tictac/tictac.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/qtruby/rubylib/examples/qt-examples/tictac/tictac.rb b/qtruby/rubylib/examples/qt-examples/tictac/tictac.rb
index 1b8bbe35..f16585af 100644
--- a/qtruby/rubylib/examples/qt-examples/tictac/tictac.rb
+++ b/qtruby/rubylib/examples/qt-examples/tictac/tictac.rb
@@ -48,7 +48,7 @@ class TicTacGameBoard < TQt::Widget
ttb = TicTacButton.new(self)
ttb.setPalette(p)
ttb.setEnabled(false)
- connect(ttb, SIGNAL('clicked()'), self, SLOT('buttonClicked()'))
+ connect(ttb, TQ_SIGNAL('clicked()'), self, TQ_SLOT('buttonClicked()'))
grid.addWidget(ttb, i % @nBoard, i / @nBoard)
@buttons[i] = ttb
@btArray[i] = TicTacButton::Blank
@@ -262,7 +262,7 @@ class TicTacToe < TQt::Widget
# Create the game board and connect the signal finished()
# to this/self gameOver() slot
@board = TicTacGameBoard.new(boardSize, self)
- connect(@board, SIGNAL('finished()'), self, SLOT('gameOver()'));
+ connect(@board, TQ_SIGNAL('finished()'), self, TQ_SLOT('gameOver()'));
l.addWidget(@board)
# Create a horizontal frame line
@@ -279,9 +279,9 @@ class TicTacToe < TQt::Widget
# Create the push buttons and connect their signals to the right slots
@newGame = TQt::PushButton.new('Play!', self)
- connect(@newGame, SIGNAL('clicked()'), self, SLOT('newGameClicked()'))
+ connect(@newGame, TQ_SIGNAL('clicked()'), self, TQ_SLOT('newGameClicked()'))
@quit = TQt::PushButton.new('Quit', self)
- connect(@quit, SIGNAL('clicked()'), $qApp, SLOT('quit()'))
+ connect(@quit, TQ_SIGNAL('clicked()'), $qApp, TQ_SLOT('quit()'))
b = TQt::HBoxLayout.new
l.addLayout(b)
b.addWidget(@newGame)