diff options
Diffstat (limited to 'doc/html/tutorial1-11.html')
-rw-r--r-- | doc/html/tutorial1-11.html | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/doc/html/tutorial1-11.html b/doc/html/tutorial1-11.html index ce5de2a61..5ea46d920 100644 --- a/doc/html/tutorial1-11.html +++ b/doc/html/tutorial1-11.html @@ -61,7 +61,7 @@ implementation. <p> This private slot is used to move the shot while it is in the air, using a <a href="tqtimer.html">TQTimer</a>. <p> <pre> private: - void paintShot( <a href="ntqpainter.html">TQPainter</a> * ); + void paintShot( <a href="tqpainter.html">TQPainter</a> * ); </pre> <p> This private function paints the shot. <p> <pre> <a href="ntqrect.html">TQRect</a> shotRect() const; @@ -143,10 +143,10 @@ shot one step along its trajectory. stop the timer or we add the new shotRect() to the TQRegion. <p> Finally, we repaint the TQRegion. This will send a single paint event for just the one or two rectangles that need updating. -<p> <pre> void CannonField::<a href="tqwidget.html#paintEvent">paintEvent</a>( <a href="qpaintevent.html">TQPaintEvent</a> *e ) +<p> <pre> void CannonField::<a href="tqwidget.html#paintEvent">paintEvent</a>( <a href="tqpaintevent.html">TQPaintEvent</a> *e ) { - <a name="x2369"></a> <a href="ntqrect.html">TQRect</a> updateR = e-><a href="qpaintevent.html#rect">rect</a>(); - <a href="ntqpainter.html">TQPainter</a> p( this ); + <a name="x2369"></a> <a href="ntqrect.html">TQRect</a> updateR = e-><a href="tqpaintevent.html#rect">rect</a>(); + <a href="tqpainter.html">TQPainter</a> p( this ); <a name="x2370"></a> if ( updateR.<a href="ntqrect.html#intersects">intersects</a>( cannonRect() ) ) paintCannon( &p ); @@ -159,11 +159,11 @@ for just the one or two rectangles that need updating. chapter. Now we fetch the bounding rectangle of the region that needs painting, check whether it intersects either the cannon and/or the shot, and if necessary, call paintCannon() and/or paintShot(). -<p> <pre> void CannonField::paintShot( <a href="ntqpainter.html">TQPainter</a> *p ) +<p> <pre> void CannonField::paintShot( <a href="tqpainter.html">TQPainter</a> *p ) { - p-><a href="ntqpainter.html#setBrush">setBrush</a>( black ); - p-><a href="ntqpainter.html#setPen">setPen</a>( NoPen ); - <a name="x2366"></a> p-><a href="ntqpainter.html#drawRect">drawRect</a>( shotRect() ); + p-><a href="tqpainter.html#setBrush">setBrush</a>( black ); + p-><a href="tqpainter.html#setPen">setPen</a>( NoPen ); + <a name="x2366"></a> p-><a href="tqpainter.html#drawRect">drawRect</a>( shotRect() ); } </pre> <p> This private function paints the shot by drawing a black filled rectangle. @@ -232,7 +232,7 @@ of the CannonField. makefile and build the application.) <p> <h2> Exercises </h2> -<a name="3"></a><p> Make the shot a filled circle. Hint: <a href="ntqpainter.html#drawEllipse">TQPainter::drawEllipse</a>() may +<a name="3"></a><p> Make the shot a filled circle. Hint: <a href="tqpainter.html#drawEllipse">TQPainter::drawEllipse</a>() may help. <p> Change the color of the cannon when a shot is in the air. <p> You're now ready for <a href="tutorial1-12.html">Chapter 12.</a> |