From ea318d1431c89e647598c510c4245c6571aa5f46 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 26 Jan 2012 23:32:43 -0600 Subject: Update to latest tqt3 automated conversion --- doc/html/t9-cannon-cpp.html | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'doc/html/t9-cannon-cpp.html') diff --git a/doc/html/t9-cannon-cpp.html b/doc/html/t9-cannon-cpp.html index b9b5a2ae2..94bb42da8 100644 --- a/doc/html/t9-cannon-cpp.html +++ b/doc/html/t9-cannon-cpp.html @@ -39,14 +39,14 @@ body { background: #ffffff; color: black; } ****************************************************************/ #include "cannon.h" -#include <qpainter.h> +#include <ntqpainter.h> -CannonField::CannonField( TQWidget *parent, const char *name ) - : TQWidget( parent, name ) +CannonField::CannonField( TQWidget *parent, const char *name ) + : TQWidget( parent, name ) { ang = 45; - setPalette( TQPalette( TQColor( 250, 250, 200) ) ); + setPalette( TQPalette( TQColor( 250, 250, 200) ) ); } @@ -59,26 +59,26 @@ void CannonField::setAngle( int degrees ) if ( ang == degrees ) return; ang = degrees; - repaint(); + repaint(); emit angleChanged( ang ); } -void CannonField::paintEvent( TQPaintEvent * ) +void CannonField::paintEvent( TQPaintEvent * ) { - TQPainter p( this ); + TQPainter p( this ); - p.setBrush( blue ); - p.setPen( NoPen ); + p.setBrush( blue ); + p.setPen( NoPen ); - p.translate( 0, rect().bottom() ); - p.drawPie( TQRect(-35, -35, 70, 70), 0, 90*16 ); - p.rotate( -ang ); - p.drawRect( TQRect(33, -4, 15, 8) ); + p.translate( 0, rect().bottom() ); + p.drawPie( TQRect(-35, -35, 70, 70), 0, 90*16 ); + p.rotate( -ang ); + p.drawRect( TQRect(33, -4, 15, 8) ); } -TQSizePolicy CannonField::sizePolicy() const +TQSizePolicy CannonField::sizePolicy() const { return TQSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Expanding ); } -- cgit v1.2.1