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/t8-cannon-cpp.html | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'doc/html/t8-cannon-cpp.html') diff --git a/doc/html/t8-cannon-cpp.html b/doc/html/t8-cannon-cpp.html index 5579864c1..9b80cea96 100644 --- a/doc/html/t8-cannon-cpp.html +++ b/doc/html/t8-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,20 +59,20 @@ void CannonField::setAngle( int degrees ) if ( ang == degrees ) return; ang = degrees; - repaint(); + repaint(); emit angleChanged( ang ); } -void CannonField::paintEvent( TQPaintEvent * ) +void CannonField::paintEvent( TQPaintEvent * ) { - TQString s = "Angle = " + TQString::number( ang ); - TQPainter p( this ); - p.drawText( 200, 200, s ); + TQString s = "Angle = " + TQString::number( ang ); + TQPainter p( this ); + p.drawText( 200, 200, s ); } -TQSizePolicy CannonField::sizePolicy() const +TQSizePolicy CannonField::sizePolicy() const { return TQSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Expanding ); } -- cgit v1.2.1