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/t11-main-cpp.html | 52 +++++++++++++++++++++++----------------------- 1 file changed, 26 insertions(+), 26 deletions(-) (limited to 'doc/html/t11-main-cpp.html') diff --git a/doc/html/t11-main-cpp.html b/doc/html/t11-main-cpp.html index 5c852f895..54f44f725 100644 --- a/doc/html/t11-main-cpp.html +++ b/doc/html/t11-main-cpp.html @@ -38,30 +38,30 @@ body { background: #ffffff; color: black; } ** ****************************************************************/ -#include <qapplication.h> -#include <qpushbutton.h> -#include <qlcdnumber.h> -#include <qfont.h> -#include <qlayout.h> +#include <ntqapplication.h> +#include <ntqpushbutton.h> +#include <ntqlcdnumber.h> +#include <ntqfont.h> +#include <ntqlayout.h> #include "lcdrange.h" #include "cannon.h" -class MyWidget: public TQWidget +class MyWidget: public TQWidget { public: - MyWidget( TQWidget *parent=0, const char *name=0 ); + MyWidget( TQWidget *parent=0, const char *name=0 ); }; -MyWidget::MyWidget( TQWidget *parent, const char *name ) - : TQWidget( parent, name ) +MyWidget::MyWidget( TQWidget *parent, const char *name ) + : TQWidget( parent, name ) { - TQPushButton *quit = new TQPushButton( "&Quit", this, "quit" ); - quit->setFont( TQFont( "Times", 18, TQFont::Bold ) ); + TQPushButton *quit = new TQPushButton( "&Quit", this, "quit" ); + quit->setFont( TQFont( "Times", 18, TQFont::Bold ) ); - connect( quit, SIGNAL(clicked()), qApp, SLOT(quit()) ); + connect( quit, SIGNAL(clicked()), qApp, SLOT(quit()) ); LCDRange *angle = new LCDRange( this, "angle" ); angle->setRange( 5, 70 ); @@ -71,20 +71,20 @@ public: CannonField *cannonField = new CannonField( this, "cannonField" ); - connect( angle, SIGNAL(valueChanged(int)), + connect( angle, SIGNAL(valueChanged(int)), cannonField, SLOT(setAngle(int)) ); - connect( cannonField, SIGNAL(angleChanged(int)), + connect( cannonField, SIGNAL(angleChanged(int)), angle, SLOT(setValue(int)) ); - connect( force, SIGNAL(valueChanged(int)), + connect( force, SIGNAL(valueChanged(int)), cannonField, SLOT(setForce(int)) ); - connect( cannonField, SIGNAL(forceChanged(int)), + connect( cannonField, SIGNAL(forceChanged(int)), force, SLOT(setValue(int)) ); - TQPushButton *shoot = new TQPushButton( "&Shoot", this, "shoot" ); - shoot->setFont( TQFont( "Times", 18, TQFont::Bold ) ); + TQPushButton *shoot = new TQPushButton( "&Shoot", this, "shoot" ); + shoot->setFont( TQFont( "Times", 18, TQFont::Bold ) ); - connect( shoot, SIGNAL(clicked()), cannonField, SLOT(shoot()) ); + connect( shoot, SIGNAL(clicked()), cannonField, SLOT(shoot()) ); TQGridLayout *grid = new TQGridLayout( this, 2, 2, 10 ); grid->addWidget( quit, 0, 0 ); @@ -103,19 +103,19 @@ public: angle->setValue( 60 ); force->setValue( 25 ); - angle->setFocus(); + angle->setFocus(); } int main( int argc, char **argv ) { - TQApplication::setColorSpec( TQApplication::CustomColor ); - TQApplication a( argc, argv ); + TQApplication::setColorSpec( TQApplication::CustomColor ); + TQApplication a( argc, argv ); MyWidget w; - w.setGeometry( 100, 100, 500, 355 ); - a.setMainWidget( &w ); - w.show(); - return a.exec(); + w.setGeometry( 100, 100, 500, 355 ); + a.setMainWidget( &w ); + w.show(); + return a.exec(); }


-- cgit v1.2.1