summaryrefslogtreecommitdiffstats
path: root/doc/html/tutorial1-11.html
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-07-15 19:08:22 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-07-18 09:31:41 +0900
commita30f5359f03c3017fa19a6770fab32d25d22cb87 (patch)
treecb365dd7a1c3666e3f972c6cad04be7b8e846cba /doc/html/tutorial1-11.html
parent25ad1267da6916e738a126ff5a9b41cd686adfc6 (diff)
downloadtqt3-a30f5359f03c3017fa19a6770fab32d25d22cb87.tar.gz
tqt3-a30f5359f03c3017fa19a6770fab32d25d22cb87.zip
Rename graphics class nt* related files to equivalent tq* (part 1)
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/html/tutorial1-11.html')
-rw-r--r--doc/html/tutorial1-11.html18
1 files changed, 9 insertions, 9 deletions
diff --git a/doc/html/tutorial1-11.html b/doc/html/tutorial1-11.html
index ce5de2a6..5ea46d92 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-&gt;<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-&gt;<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( &amp;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-&gt;<a href="ntqpainter.html#setBrush">setBrush</a>( black );
- p-&gt;<a href="ntqpainter.html#setPen">setPen</a>( NoPen );
- <a name="x2366"></a> p-&gt;<a href="ntqpainter.html#drawRect">drawRect</a>( shotRect() );
+ p-&gt;<a href="tqpainter.html#setBrush">setBrush</a>( black );
+ p-&gt;<a href="tqpainter.html#setPen">setPen</a>( NoPen );
+ <a name="x2366"></a> p-&gt;<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>