diff options
Diffstat (limited to 'doc/html/tictac-example.html')
-rw-r--r-- | doc/html/tictac-example.html | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/doc/html/tictac-example.html b/doc/html/tictac-example.html index efd2b2f59..fae1bdba3 100644 --- a/doc/html/tictac-example.html +++ b/doc/html/tictac-example.html @@ -54,7 +54,7 @@ widget. #define TICTAC_H -#include <<a href="qpushbutton-h.html">ntqpushbutton.h</a>> +#include <<a href="tqpushbutton-h.html">tqpushbutton.h</a>> #include <<a href="tqptrvector-h.html">tqptrvector.h</a>> class TQComboBox; @@ -65,7 +65,7 @@ class TQLabel; // TicTacButton implements a single tic-tac-toe button // -class TicTacButton : public <a href="ntqpushbutton.html">TQPushButton</a> +class TicTacButton : public <a href="tqpushbutton.html">TQPushButton</a> { <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a> public: @@ -139,9 +139,9 @@ private slots: void gameOver(); private: void newState(); - <a href="ntqcombobox.html">TQComboBox</a> *whoStarts; - <a href="ntqpushbutton.html">TQPushButton</a> *newGame; - <a href="ntqpushbutton.html">TQPushButton</a> *quit; + <a href="tqcombobox.html">TQComboBox</a> *whoStarts; + <a href="tqpushbutton.html">TQPushButton</a> *newGame; + <a href="tqpushbutton.html">TQPushButton</a> *quit; <a href="tqlabel.html">TQLabel</a> *message; TicTacGameBoard *board; }; @@ -166,8 +166,8 @@ private: #include <<a href="qapplication-h.html">ntqapplication.h</a>> #include <<a href="tqpainter-h.html">tqpainter.h</a>> #include <<a href="qdrawutil-h.html">ntqdrawutil.h</a>> -#include <<a href="qcombobox-h.html">ntqcombobox.h</a>> -#include <<a href="qcheckbox-h.html">ntqcheckbox.h</a>> +#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 <stdlib.h> // rand() function @@ -182,7 +182,7 @@ private: // Creates a TicTacButton // -<a name="f188"></a>TicTacButton::TicTacButton( <a href="tqwidget.html">TQWidget</a> *parent ) : <a href="ntqpushbutton.html">TQPushButton</a>( parent ) +<a name="f188"></a>TicTacButton::TicTacButton( <a href="tqwidget.html">TQWidget</a> *parent ) : <a href="tqpushbutton.html">TQPushButton</a>( parent ) { t = Blank; // initial type } @@ -468,17 +468,17 @@ void <a name="f195"></a>TicTacGameBoard::computerMove() // Create the combo box for deciding who should start, and // connect its clicked() signals to the buttonClicked() slot - whoStarts = new <a href="ntqcombobox.html">TQComboBox</a>( this ); -<a name="x23"></a> whoStarts-><a href="ntqcombobox.html#insertItem">insertItem</a>( "Computer starts" ); - whoStarts-><a href="ntqcombobox.html#insertItem">insertItem</a>( "Human starts" ); + 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 ); // Create the push buttons and connect their clicked() signals // to this right slots. - newGame = new <a href="ntqpushbutton.html">TQPushButton</a>( "Play!", this ); + newGame = new <a href="tqpushbutton.html">TQPushButton</a>( "Play!", this ); <a href="tqobject.html#connect">connect</a>( newGame, TQ_SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), TQ_SLOT(newGameClicked()) ); - quit = new <a href="ntqpushbutton.html">TQPushButton</a>( "Quit", this ); + quit = new <a href="tqpushbutton.html">TQPushButton</a>( "Quit", this ); <a href="tqobject.html#connect">connect</a>( quit, TQ_SIGNAL(<a href="ntqbutton.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 ); @@ -497,7 +497,7 @@ void <a name="f195"></a>TicTacGameBoard::computerMove() void <a name="f197"></a>TicTacToe::newGameClicked() { -<a name="x22"></a> board->computerStarts( whoStarts-><a href="ntqcombobox.html#currentItem">currentItem</a>() == 0 ); +<a name="x22"></a> board->computerStarts( whoStarts-><a href="tqcombobox.html#currentItem">currentItem</a>() == 0 ); board->newGame(); newState(); } |