From 8ac0e970e4464d9f8f73c0fb34a178ff135be8c3 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sun, 2 Jun 2024 23:07:22 +0900 Subject: Rename ntqwidget* related files to equivalent tqwidget* Signed-off-by: Michele Calgaro --- doc/html/t12-cannon-cpp.html | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'doc/html/t12-cannon-cpp.html') diff --git a/doc/html/t12-cannon-cpp.html b/doc/html/t12-cannon-cpp.html index cf6959169..ec0e6e0f1 100644 --- a/doc/html/t12-cannon-cpp.html +++ b/doc/html/t12-cannon-cpp.html @@ -48,8 +48,8 @@ body { background: #ffffff; color: black; } #include <stdlib.h> -CannonField::CannonField( TQWidget *parent, const char *name ) - : TQWidget( parent, name ) +CannonField::CannonField( TQWidget *parent, const char *name ) + : TQWidget( parent, name ) { ang = 45; f = 0; @@ -60,7 +60,7 @@ body { background: #ffffff; color: black; } shoot_ang = 0; shoot_f = 0; target = TQPoint( 0, 0 ); - setPalette( TQPalette( TQColor( 250, 250, 200) ) ); + setPalette( TQPalette( TQColor( 250, 250, 200) ) ); newTarget(); } @@ -74,7 +74,7 @@ void CannonField::setAngle( int degrees ) if ( ang == degrees ) return; ang = degrees; - repaint( cannonRect(), FALSE ); + repaint( cannonRect(), FALSE ); emit angleChanged( ang ); } @@ -112,7 +112,7 @@ void CannonField::newTarget() TQRegion r( targetRect() ); target = TQPoint( 200 + rand() % 190, 10 + rand() % 255 ); - repaint( r.unite( targetRect() ) ); + repaint( r.unite( targetRect() ) ); } @@ -133,11 +133,11 @@ void CannonField::moveShot() r = r.unite( TQRegion( shotR ) ); } - repaint( r ); + repaint( r ); } -void CannonField::paintEvent( TQPaintEvent *e ) +void CannonField::paintEvent( TQPaintEvent *e ) { TQRect updateR = e->rect(); TQPainter p( this ); @@ -193,7 +193,7 @@ void CannonField::paintCannon( TQPai TQRect CannonField::cannonRect() const { TQRect r( 0, 0, 50, 50 ); - r.moveBottomLeft( rect().bottomLeft() ); + r.moveBottomLeft( rect().bottomLeft() ); return r; } @@ -227,7 +227,7 @@ TQRect CannonField::targetRect() const } -TQSizePolicy CannonField::sizePolicy() const +TQSizePolicy CannonField::sizePolicy() const { return TQSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Expanding ); } -- cgit v1.2.3