diff options
Diffstat (limited to 'doc/html/tictac-example.html')
-rw-r--r-- | doc/html/tictac-example.html | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/doc/html/tictac-example.html b/doc/html/tictac-example.html index 2975a1bb8..f9d37c782 100644 --- a/doc/html/tictac-example.html +++ b/doc/html/tictac-example.html @@ -169,7 +169,7 @@ private: #include <<a href="tqcombobox-h.html">tqcombobox.h</a>> #include <<a href="tqcheckbox-h.html">tqcheckbox.h</a>> #include <<a href="tqlabel-h.html">tqlabel.h</a>> -#include <<a href="qlayout-h.html">ntqlayout.h</a>> +#include <<a href="tqlayout-h.html">tqlayout.h</a>> #include <stdlib.h> // rand() function #include <<a href="tqdatetime-h.html">tqdatetime.h</a>> // seed for rand() @@ -443,27 +443,27 @@ void <a name="f195"></a>TicTacGameBoard::computerMove() <a name="f196"></a>TicTacToe::TicTacToe( int boardSize, TQWidget *parent, const char *name ) : <a href="tqwidget.html">TQWidget</a>( parent, name ) { - <a href="qvboxlayout.html">TQVBoxLayout</a> * l = new <a href="qvboxlayout.html">TQVBoxLayout</a>( this, 6 ); + <a href="tqvboxlayout.html">TQVBoxLayout</a> * l = new <a href="tqvboxlayout.html">TQVBoxLayout</a>( this, 6 ); // Create a message label message = new <a href="tqlabel.html">TQLabel</a>( this ); <a name="x24"></a> message-><a href="tqframe.html#setFrameStyle">setFrameStyle</a>( TQFrame::WinPanel | TQFrame::Sunken ); message-><a href="tqlabel.html#setAlignment">setAlignment</a>( AlignCenter ); - l-><a href="qboxlayout.html#addWidget">addWidget</a>( message ); + l-><a href="tqboxlayout.html#addWidget">addWidget</a>( message ); // Create the game board and connect the signal finished() to this // gameOver() slot board = new TicTacGameBoard( boardSize, this ); <a href="tqobject.html#connect">connect</a>( board, TQ_SIGNAL(finished()), TQ_SLOT(gameOver()) ); - l-><a href="qboxlayout.html#addWidget">addWidget</a>( board ); + l-><a href="tqboxlayout.html#addWidget">addWidget</a>( board ); // Create a horizontal frame line <a href="tqframe.html">TQFrame</a> *line = new <a href="tqframe.html">TQFrame</a>( this ); line-><a href="tqframe.html#setFrameStyle">setFrameStyle</a>( TQFrame::HLine | TQFrame::Sunken ); - l-><a href="qboxlayout.html#addWidget">addWidget</a>( line ); + l-><a href="tqboxlayout.html#addWidget">addWidget</a>( line ); // Create the combo box for deciding who should start, and // connect its clicked() signals to the buttonClicked() slot @@ -471,7 +471,7 @@ void <a name="f195"></a>TicTacGameBoard::computerMove() whoStarts = new <a href="tqcombobox.html">TQComboBox</a>( this ); <a name="x23"></a> whoStarts-><a href="tqcombobox.html#insertItem">insertItem</a>( "Computer starts" ); whoStarts-><a href="tqcombobox.html#insertItem">insertItem</a>( "Human starts" ); - l-><a href="qboxlayout.html#addWidget">addWidget</a>( whoStarts ); + l-><a href="tqboxlayout.html#addWidget">addWidget</a>( whoStarts ); // Create the push buttons and connect their clicked() signals // to this right slots. @@ -480,10 +480,10 @@ void <a name="f195"></a>TicTacGameBoard::computerMove() <a href="tqobject.html#connect">connect</a>( newGame, TQ_SIGNAL(<a href="tqbutton.html#clicked">clicked</a>()), TQ_SLOT(newGameClicked()) ); quit = new <a href="tqpushbutton.html">TQPushButton</a>( "Quit", this ); <a href="tqobject.html#connect">connect</a>( quit, TQ_SIGNAL(<a href="tqbutton.html#clicked">clicked</a>()), tqApp, TQ_SLOT(<a href="ntqapplication.html#quit">quit</a>()) ); - <a href="qhboxlayout.html">TQHBoxLayout</a> * b = new <a href="qhboxlayout.html">TQHBoxLayout</a>; -<a name="x19"></a> l-><a href="qboxlayout.html#addLayout">addLayout</a>( b ); - b-><a href="qboxlayout.html#addWidget">addWidget</a>( newGame ); - b-><a href="qboxlayout.html#addWidget">addWidget</a>( quit ); + <a href="tqhboxlayout.html">TQHBoxLayout</a> * b = new <a href="tqhboxlayout.html">TQHBoxLayout</a>; +<a name="x19"></a> l-><a href="tqboxlayout.html#addLayout">addLayout</a>( b ); + b-><a href="tqboxlayout.html#addWidget">addWidget</a>( newGame ); + b-><a href="tqboxlayout.html#addWidget">addWidget</a>( quit ); newState(); } |