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/t10-main-cpp.html | 46 +++++++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 23 deletions(-) (limited to 'doc/html/t10-main-cpp.html') diff --git a/doc/html/t10-main-cpp.html b/doc/html/t10-main-cpp.html index 1e575a89..857f5e2b 100644 --- a/doc/html/t10-main-cpp.html +++ b/doc/html/t10-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,14 +71,14 @@ 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)) ); TQGridLayout *grid = new TQGridLayout( this, 2, 2, 10 ); @@ -93,19 +93,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