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/t10-cannon-cpp.html | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 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 7f1b1865e..e6f41cae4 100644 --- a/doc/html/t10-cannon-cpp.html +++ b/doc/html/t10-cannon-cpp.html @@ -40,7 +40,7 @@ body { background: #ffffff; color: black; } #include "cannon.h" #include <tqpainter.h> -#include <ntqpixmap.h> +#include <tqpixmap.h> CannonField::CannonField( TQWidget *parent, const char *name ) @@ -82,28 +82,28 @@ void CannonField::paintEvent( rect().intersects( cannonRect() ) ) return; - TQRect cr = cannonRect(); - TQPixmap pix( cr.size() ); - pix.fill( this, cr.topLeft() ); + 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.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 ); + p.drawPixmap( cr.topLeft(), pix ); } TQRect CannonField::cannonRect() const { - TQRect r( 0, 0, 50, 50 ); - r.moveBottomLeft( rect().bottomLeft() ); + TQRect r( 0, 0, 50, 50 ); + r.moveBottomLeft( rect().bottomLeft() ); return r; } -- cgit v1.2.1