diff options
Diffstat (limited to 'doc/html/tutorial1-13.html')
| -rw-r--r-- | doc/html/tutorial1-13.html | 24 | 
1 files changed, 12 insertions, 12 deletions
| diff --git a/doc/html/tutorial1-13.html b/doc/html/tutorial1-13.html index c2a54718f..b9b83a367 100644 --- a/doc/html/tutorial1-13.html +++ b/doc/html/tutorial1-13.html @@ -90,7 +90,7 @@ except that we've added some lines at the end:  widget's children.  <p> <pre>    <a name="x2401"></a>    l-><a href="qboxlayout.html#addWidget">addWidget</a>( lcd, 1 );  </pre> -<p> At the top we add the <a href="ntqlcdnumber.html">TQLCDNumber</a> with a non-zero stretch. +<p> At the top we add the <a href="tqlcdnumber.html">TQLCDNumber</a> with a non-zero stretch.  <p> <pre>        l-><a href="qboxlayout.html#addWidget">addWidget</a>( slider );          l-><a href="qboxlayout.html#addWidget">addWidget</a>( label );  </pre> @@ -235,8 +235,8 @@ which was last seen as MyWidget.          void  newGame();      private: -        <a href="ntqlcdnumber.html">TQLCDNumber</a>  *hits; -        <a href="ntqlcdnumber.html">TQLCDNumber</a>  *shotsLeft; +        <a href="tqlcdnumber.html">TQLCDNumber</a>  *hits; +        <a href="tqlcdnumber.html">TQLCDNumber</a>  *shotsLeft;          CannonField *cannonField;      };  </pre> @@ -278,7 +278,7 @@ working with self-contained components.  <p> We also use the cannonField's canShoot() signal to enable or disable  the Shoot button appropriately.  <p> <pre>        TQPushButton *restart -            = new <a href="ntqpushbutton.html">TQPushButton</a>( "&New Game", this, "newgame" ); +            = new <a href="tqpushbutton.html">TQPushButton</a>( "&New Game", this, "newgame" );          restart->setFont( TQFont( "Times", 18, TQFont::Bold ) );          <a href="tqobject.html#connect">connect</a>( restart, TQ_SIGNAL(clicked()), this, TQ_SLOT(newGame()) ); @@ -286,8 +286,8 @@ the Shoot button appropriately.  <p> We create, set up, and connect the New Game button as we have done  with the other buttons. Clicking this button will activate the  newGame() slot in this widget. -<p> <pre>        hits = new <a href="ntqlcdnumber.html">TQLCDNumber</a>( 2, this, "hits" ); -        shotsLeft = new <a href="ntqlcdnumber.html">TQLCDNumber</a>( 2, this, "shotsleft" ); +<p> <pre>        hits = new <a href="tqlcdnumber.html">TQLCDNumber</a>( 2, this, "hits" ); +        shotsLeft = new <a href="tqlcdnumber.html">TQLCDNumber</a>( 2, this, "shotsleft" );          <a href="tqlabel.html">TQLabel</a> *hitsL = new <a href="tqlabel.html">TQLabel</a>( "HITS", this, "hitsLabel" );          TQLabel *shotsLeftL              = new <a href="tqlabel.html">TQLabel</a>( "SHOTS LEFT", this, "shotsleftLabel" ); @@ -322,7 +322,7 @@ ordinary functions, too.)      {          if ( cannonField->gameOver() || cannonField->isShooting() )              return; -        shotsLeft-><a href="ntqlcdnumber.html#display">display</a>( shotsLeft-><a href="ntqlcdnumber.html#intValue">intValue</a>() - 1 ); +        shotsLeft-><a href="tqlcdnumber.html#display">display</a>( shotsLeft-><a href="tqlcdnumber.html#intValue">intValue</a>() - 1 );          cannonField->shoot();      }  </pre> @@ -331,8 +331,8 @@ air, we return immediately. We decrement the number of shots left and tell  the cannon to shoot.  <p> <pre>    void GameBoard::hit()      { -        hits-><a href="ntqlcdnumber.html#display">display</a>( hits-><a href="ntqlcdnumber.html#intValue">intValue</a>() + 1 ); -        if ( shotsLeft-><a href="ntqlcdnumber.html#intValue">intValue</a>() == 0 ) +        hits-><a href="tqlcdnumber.html#display">display</a>( hits-><a href="tqlcdnumber.html#intValue">intValue</a>() + 1 ); +        if ( shotsLeft-><a href="tqlcdnumber.html#intValue">intValue</a>() == 0 )              cannonField->setGameOver();          else              cannonField->newTarget(); @@ -343,7 +343,7 @@ number of hits. If there are no shots left, the game is over. Otherwise,  we make the CannonField generate a new target.  <p> <pre>    void GameBoard::missed()      { -    <a name="x2415"></a>    if ( shotsLeft-><a href="ntqlcdnumber.html#intValue">intValue</a>() == 0 ) +    <a name="x2415"></a>    if ( shotsLeft-><a href="tqlcdnumber.html#intValue">intValue</a>() == 0 )              cannonField->setGameOver();      }  </pre> @@ -351,8 +351,8 @@ we make the CannonField generate a new target.  shots left, the game is over.  <p> <pre>    void GameBoard::newGame()      { -    <a name="x2414"></a>    shotsLeft-><a href="ntqlcdnumber.html#display">display</a>( 15 ); -        hits-><a href="ntqlcdnumber.html#display">display</a>( 0 ); +    <a name="x2414"></a>    shotsLeft-><a href="tqlcdnumber.html#display">display</a>( 15 ); +        hits-><a href="tqlcdnumber.html#display">display</a>( 0 );          cannonField->restartGame();          cannonField->newTarget();      } | 
