From 1e9fa8e06de5da7fcc268e9cccb2d6b21c5f53a3 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 20 Jul 2024 20:15:52 +0900 Subject: Rename graphics class nt* related files to equivalent tq* (part 2) Signed-off-by: Michele Calgaro --- doc/html/tutorial1-13.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'doc/html/tutorial1-13.html') diff --git a/doc/html/tutorial1-13.html b/doc/html/tutorial1-13.html index 135aa3b15..f8b304804 100644 --- a/doc/html/tutorial1-13.html +++ b/doc/html/tutorial1-13.html @@ -178,7 +178,7 @@ either hit() or miss().

Modifications in CannonField::paintEvent():

    void CannonField::paintEvent( TQPaintEvent *e )
     {
-        TQRect updateR = e->rect();
+        TQRect updateR = e->rect();
         TQPainter p( this );
 
         if ( gameEnded ) {
@@ -198,11 +198,11 @@ rectangle. Unfortunately, on some systems (especially X servers with
 Unicode fonts) it can take a while to load such a large font. Because
 TQt caches fonts, you will notice this only the first time the font is
 used.
-

        if ( updateR.intersects( cannonRect() ) )
+

        if ( updateR.intersects( cannonRect() ) )
             paintCannon( &p );
-        if ( isShooting() && updateR.intersects( shotRect() ) )
+        if ( isShooting() && updateR.intersects( shotRect() ) )
             paintShot( &p );
-        if ( !gameEnded && updateR.intersects( targetRect() ) )
+        if ( !gameEnded && updateR.intersects( targetRect() ) )
             paintTarget( &p );
     }
 
-- cgit v1.2.3