From a30f5359f03c3017fa19a6770fab32d25d22cb87 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Mon, 15 Jul 2024 19:08:22 +0900 Subject: Rename graphics class nt* related files to equivalent tq* (part 1) Signed-off-by: Michele Calgaro --- doc/html/t10-cannon-cpp.html | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'doc/html/t10-cannon-cpp.html') diff --git a/doc/html/t10-cannon-cpp.html b/doc/html/t10-cannon-cpp.html index 508b70b26..7f1b1865e 100644 --- a/doc/html/t10-cannon-cpp.html +++ b/doc/html/t10-cannon-cpp.html @@ -39,7 +39,7 @@ body { background: #ffffff; color: black; } ****************************************************************/ #include "cannon.h" -#include <ntqpainter.h> +#include <tqpainter.h> #include <ntqpixmap.h> @@ -77,26 +77,26 @@ void CannonField::setForce( int newton ) } -void CannonField::paintEvent( TQPaintEvent *e ) +void CannonField::paintEvent( TQPaintEvent *e ) { - if ( !e->rect().intersects( cannonRect() ) ) + if ( !e->rect().intersects( cannonRect() ) ) return; TQRect cr = cannonRect(); TQPixmap pix( cr.size() ); pix.fill( this, cr.topLeft() ); - TQPainter p( &pix ); - p.setBrush( blue ); - p.setPen( NoPen ); - p.translate( 0, pix.height() - 1 ); - p.drawPie( TQRect( -35,-35, 70, 70 ), 0, 90*16 ); - p.rotate( -ang ); - p.drawRect( TQRect(33, -4, 15, 8) ); - p.end(); - - p.begin( this ); - p.drawPixmap( cr.topLeft(), pix ); + TQPainter p( &pix ); + p.setBrush( blue ); + p.setPen( NoPen ); + p.translate( 0, pix.height() - 1 ); + p.drawPie( TQRect( -35,-35, 70, 70 ), 0, 90*16 ); + p.rotate( -ang ); + p.drawRect( TQRect(33, -4, 15, 8) ); + p.end(); + + p.begin( this ); + p.drawPixmap( cr.topLeft(), pix ); } -- cgit v1.2.1