diff options
author | Timothy Pearson <[email protected]> | 2011-11-14 22:33:41 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2011-11-14 22:33:41 -0600 |
commit | 0f92dd542b65bc910caaf190b7c623aa5158c86a (patch) | |
tree | 120ab7e08fa0ffc354ef58d100f79a33c92aa6e6 /tutorial | |
parent | d796c9dd933ab96ec83b9a634feedd5d32e1ba3f (diff) | |
download | tqt3-0f92dd542b65bc910caaf190b7c623aa5158c86a.tar.gz tqt3-0f92dd542b65bc910caaf190b7c623aa5158c86a.zip |
Fix native TQt3 accidental conversion to tquit
Diffstat (limited to 'tutorial')
-rw-r--r-- | tutorial/t10/main.cpp | 8 | ||||
-rw-r--r-- | tutorial/t11/main.cpp | 8 | ||||
-rw-r--r-- | tutorial/t12/main.cpp | 8 | ||||
-rw-r--r-- | tutorial/t13/gamebrd.cpp | 8 | ||||
-rw-r--r-- | tutorial/t14/gamebrd.cpp | 10 | ||||
-rw-r--r-- | tutorial/t2/main.cpp | 12 | ||||
-rw-r--r-- | tutorial/t3/main.cpp | 6 | ||||
-rw-r--r-- | tutorial/t4/main.cpp | 8 | ||||
-rw-r--r-- | tutorial/t5/main.cpp | 6 | ||||
-rw-r--r-- | tutorial/t6/main.cpp | 6 | ||||
-rw-r--r-- | tutorial/t7/main.cpp | 6 | ||||
-rw-r--r-- | tutorial/t8/main.cpp | 8 | ||||
-rw-r--r-- | tutorial/t9/main.cpp | 8 |
13 files changed, 51 insertions, 51 deletions
diff --git a/tutorial/t10/main.cpp b/tutorial/t10/main.cpp index a0c659d72..47f86fc34 100644 --- a/tutorial/t10/main.cpp +++ b/tutorial/t10/main.cpp @@ -24,10 +24,10 @@ public: MyWidget::MyWidget( TQWidget *parent, const char *name ) : TQWidget( parent, name ) { - TQPushButton *tquit = new TQPushButton( "&Quit", this, "tquit" ); - tquit->setFont( TQFont( "Times", 18, TQFont::Bold ) ); + TQPushButton *quit = new TQPushButton( "&Quit", this, "quit" ); + quit->setFont( TQFont( "Times", 18, TQFont::Bold ) ); - connect( tquit, SIGNAL(clicked()), qApp, SLOT(tquit()) ); + connect( quit, SIGNAL(clicked()), qApp, SLOT(quit()) ); LCDRange *angle = new LCDRange( this, "angle" ); angle->setRange( 5, 70 ); @@ -48,7 +48,7 @@ MyWidget::MyWidget( TQWidget *parent, const char *name ) force, SLOT(setValue(int)) ); TQGridLayout *grid = new TQGridLayout( this, 2, 2, 10 ); - grid->addWidget( tquit, 0, 0 ); + grid->addWidget( quit, 0, 0 ); grid->addWidget( cannonField, 1, 1 ); grid->setColStretch( 1, 10 ); diff --git a/tutorial/t11/main.cpp b/tutorial/t11/main.cpp index cdfb36ebf..64704783d 100644 --- a/tutorial/t11/main.cpp +++ b/tutorial/t11/main.cpp @@ -24,10 +24,10 @@ public: MyWidget::MyWidget( TQWidget *parent, const char *name ) : TQWidget( parent, name ) { - TQPushButton *tquit = new TQPushButton( "&Quit", this, "tquit" ); - tquit->setFont( TQFont( "Times", 18, TQFont::Bold ) ); + TQPushButton *quit = new TQPushButton( "&Quit", this, "quit" ); + quit->setFont( TQFont( "Times", 18, TQFont::Bold ) ); - connect( tquit, SIGNAL(clicked()), qApp, SLOT(tquit()) ); + connect( quit, SIGNAL(clicked()), qApp, SLOT(quit()) ); LCDRange *angle = new LCDRange( this, "angle" ); angle->setRange( 5, 70 ); @@ -53,7 +53,7 @@ MyWidget::MyWidget( TQWidget *parent, const char *name ) connect( shoot, SIGNAL(clicked()), cannonField, SLOT(shoot()) ); TQGridLayout *grid = new TQGridLayout( this, 2, 2, 10 ); - grid->addWidget( tquit, 0, 0 ); + grid->addWidget( quit, 0, 0 ); grid->addWidget( cannonField, 1, 1 ); grid->setColStretch( 1, 10 ); diff --git a/tutorial/t12/main.cpp b/tutorial/t12/main.cpp index 20c291b39..8ee86522b 100644 --- a/tutorial/t12/main.cpp +++ b/tutorial/t12/main.cpp @@ -24,10 +24,10 @@ public: MyWidget::MyWidget( TQWidget *parent, const char *name ) : TQWidget( parent, name ) { - TQPushButton *tquit = new TQPushButton( "&Quit", this, "tquit" ); - tquit->setFont( TQFont( "Times", 18, TQFont::Bold ) ); + TQPushButton *quit = new TQPushButton( "&Quit", this, "quit" ); + quit->setFont( TQFont( "Times", 18, TQFont::Bold ) ); - connect( tquit, SIGNAL(clicked()), qApp, SLOT(tquit()) ); + connect( quit, SIGNAL(clicked()), qApp, SLOT(quit()) ); LCDRange *angle = new LCDRange( "ANGLE", this, "angle" ); angle->setRange( 5, 70 ); @@ -53,7 +53,7 @@ MyWidget::MyWidget( TQWidget *parent, const char *name ) connect( shoot, SIGNAL(clicked()), cannonField, SLOT(shoot()) ); TQGridLayout *grid = new TQGridLayout( this, 2, 2, 10 ); - grid->addWidget( tquit, 0, 0 ); + grid->addWidget( quit, 0, 0 ); grid->addWidget( cannonField, 1, 1 ); grid->setColStretch( 1, 10 ); diff --git a/tutorial/t13/gamebrd.cpp b/tutorial/t13/gamebrd.cpp index cf15f9ef2..0380f2dd6 100644 --- a/tutorial/t13/gamebrd.cpp +++ b/tutorial/t13/gamebrd.cpp @@ -19,10 +19,10 @@ GameBoard::GameBoard( TQWidget *parent, const char *name ) : TQWidget( parent, name ) { - TQPushButton *tquit = new TQPushButton( "&Quit", this, "tquit" ); - tquit->setFont( TQFont( "Times", 18, TQFont::Bold ) ); + TQPushButton *quit = new TQPushButton( "&Quit", this, "quit" ); + quit->setFont( TQFont( "Times", 18, TQFont::Bold ) ); - connect( tquit, SIGNAL(clicked()), qApp, SLOT(tquit()) ); + connect( quit, SIGNAL(clicked()), qApp, SLOT(quit()) ); LCDRange *angle = new LCDRange( "ANGLE", this, "angle" ); angle->setRange( 5, 70 ); @@ -67,7 +67,7 @@ GameBoard::GameBoard( TQWidget *parent, const char *name ) = new TQLabel( "SHOTS LEFT", this, "shotsleftLabel" ); TQGridLayout *grid = new TQGridLayout( this, 2, 2, 10 ); - grid->addWidget( tquit, 0, 0 ); + grid->addWidget( quit, 0, 0 ); grid->addWidget( cannonField, 1, 1 ); grid->setColStretch( 1, 10 ); diff --git a/tutorial/t14/gamebrd.cpp b/tutorial/t14/gamebrd.cpp index 2570eb423..078c5c85d 100644 --- a/tutorial/t14/gamebrd.cpp +++ b/tutorial/t14/gamebrd.cpp @@ -21,10 +21,10 @@ GameBoard::GameBoard( TQWidget *parent, const char *name ) : TQWidget( parent, name ) { - TQPushButton *tquit = new TQPushButton( "&Quit", this, "tquit" ); - tquit->setFont( TQFont( "Times", 18, TQFont::Bold ) ); + TQPushButton *quit = new TQPushButton( "&Quit", this, "quit" ); + quit->setFont( TQFont( "Times", 18, TQFont::Bold ) ); - connect( tquit, SIGNAL(clicked()), qApp, SLOT(tquit()) ); + connect( quit, SIGNAL(clicked()), qApp, SLOT(quit()) ); LCDRange *angle = new LCDRange( "ANGLE", this, "angle" ); angle->setRange( 5, 70 ); @@ -78,10 +78,10 @@ GameBoard::GameBoard( TQWidget *parent, const char *name ) accel->connectItem( accel->insertItem( Key_Return ), this, SLOT(fire()) ); accel->connectItem( accel->insertItem( CTRL+Key_Q ), - qApp, SLOT(tquit()) ); + qApp, SLOT(quit()) ); TQGridLayout *grid = new TQGridLayout( this, 2, 2, 10 ); - grid->addWidget( tquit, 0, 0 ); + grid->addWidget( quit, 0, 0 ); grid->addWidget( box, 1, 1 ); grid->setColStretch( 1, 10 ); diff --git a/tutorial/t2/main.cpp b/tutorial/t2/main.cpp index 1b3da3f1d..93ab932df 100644 --- a/tutorial/t2/main.cpp +++ b/tutorial/t2/main.cpp @@ -13,13 +13,13 @@ int main( int argc, char **argv ) { TQApplication a( argc, argv ); - TQPushButton tquit( "Quit", 0 ); - tquit.resize( 75, 30 ); - tquit.setFont( TQFont( "Times", 18, TQFont::Bold ) ); + TQPushButton quit( "Quit", 0 ); + quit.resize( 75, 30 ); + quit.setFont( TQFont( "Times", 18, TQFont::Bold ) ); - TQObject::connect( &tquit, SIGNAL(clicked()), &a, SLOT(tquit()) ); + TQObject::connect( &quit, SIGNAL(clicked()), &a, SLOT(quit()) ); - a.setMainWidget( &tquit ); - tquit.show(); + a.setMainWidget( &quit ); + quit.show(); return a.exec(); } diff --git a/tutorial/t3/main.cpp b/tutorial/t3/main.cpp index 34f47fc95..26aaaf468 100644 --- a/tutorial/t3/main.cpp +++ b/tutorial/t3/main.cpp @@ -16,10 +16,10 @@ int main( int argc, char **argv ) TQVBox box; box.resize( 200, 120 ); - TQPushButton tquit( "Quit", &box ); - tquit.setFont( TQFont( "Times", 18, TQFont::Bold ) ); + TQPushButton quit( "Quit", &box ); + quit.setFont( TQFont( "Times", 18, TQFont::Bold ) ); - TQObject::connect( &tquit, SIGNAL(clicked()), &a, SLOT(tquit()) ); + TQObject::connect( &quit, SIGNAL(clicked()), &a, SLOT(quit()) ); a.setMainWidget( &box ); box.show(); diff --git a/tutorial/t4/main.cpp b/tutorial/t4/main.cpp index 04562d076..e50ec6630 100644 --- a/tutorial/t4/main.cpp +++ b/tutorial/t4/main.cpp @@ -22,11 +22,11 @@ MyWidget::MyWidget( TQWidget *parent, const char *name ) setMinimumSize( 200, 120 ); setMaximumSize( 200, 120 ); - TQPushButton *tquit = new TQPushButton( "Quit", this, "tquit" ); - tquit->setGeometry( 62, 40, 75, 30 ); - tquit->setFont( TQFont( "Times", 18, TQFont::Bold ) ); + TQPushButton *quit = new TQPushButton( "Quit", this, "quit" ); + quit->setGeometry( 62, 40, 75, 30 ); + quit->setFont( TQFont( "Times", 18, TQFont::Bold ) ); - connect( tquit, SIGNAL(clicked()), qApp, SLOT(tquit()) ); + connect( quit, SIGNAL(clicked()), qApp, SLOT(quit()) ); } diff --git a/tutorial/t5/main.cpp b/tutorial/t5/main.cpp index 64ee0436f..44dfcc031 100644 --- a/tutorial/t5/main.cpp +++ b/tutorial/t5/main.cpp @@ -22,10 +22,10 @@ public: MyWidget::MyWidget( TQWidget *parent, const char *name ) : TQVBox( parent, name ) { - TQPushButton *tquit = new TQPushButton( "Quit", this, "tquit" ); - tquit->setFont( TQFont( "Times", 18, TQFont::Bold ) ); + TQPushButton *quit = new TQPushButton( "Quit", this, "quit" ); + quit->setFont( TQFont( "Times", 18, TQFont::Bold ) ); - connect( tquit, SIGNAL(clicked()), qApp, SLOT(tquit()) ); + connect( quit, SIGNAL(clicked()), qApp, SLOT(quit()) ); TQLCDNumber *lcd = new TQLCDNumber( 2, this, "lcd" ); diff --git a/tutorial/t6/main.cpp b/tutorial/t6/main.cpp index 16d593f2e..a296d4875 100644 --- a/tutorial/t6/main.cpp +++ b/tutorial/t6/main.cpp @@ -38,10 +38,10 @@ public: MyWidget::MyWidget( TQWidget *parent, const char *name ) : TQVBox( parent, name ) { - TQPushButton *tquit = new TQPushButton( "Quit", this, "tquit" ); - tquit->setFont( TQFont( "Times", 18, TQFont::Bold ) ); + TQPushButton *quit = new TQPushButton( "Quit", this, "quit" ); + quit->setFont( TQFont( "Times", 18, TQFont::Bold ) ); - connect( tquit, SIGNAL(clicked()), qApp, SLOT(tquit()) ); + connect( quit, SIGNAL(clicked()), qApp, SLOT(quit()) ); TQGrid *grid = new TQGrid( 4, this ); diff --git a/tutorial/t7/main.cpp b/tutorial/t7/main.cpp index 246797707..c2221a6d1 100644 --- a/tutorial/t7/main.cpp +++ b/tutorial/t7/main.cpp @@ -24,10 +24,10 @@ public: MyWidget::MyWidget( TQWidget *parent, const char *name ) : TQVBox( parent, name ) { - TQPushButton *tquit = new TQPushButton( "Quit", this, "tquit" ); - tquit->setFont( TQFont( "Times", 18, TQFont::Bold ) ); + TQPushButton *quit = new TQPushButton( "Quit", this, "quit" ); + quit->setFont( TQFont( "Times", 18, TQFont::Bold ) ); - connect( tquit, SIGNAL(clicked()), qApp, SLOT(tquit()) ); + connect( quit, SIGNAL(clicked()), qApp, SLOT(quit()) ); TQGrid *grid = new TQGrid( 4, this ); diff --git a/tutorial/t8/main.cpp b/tutorial/t8/main.cpp index 9acd0382d..1aef5b4ed 100644 --- a/tutorial/t8/main.cpp +++ b/tutorial/t8/main.cpp @@ -24,10 +24,10 @@ public: MyWidget::MyWidget( TQWidget *parent, const char *name ) : TQWidget( parent, name ) { - TQPushButton *tquit = new TQPushButton( "Quit", this, "tquit" ); - tquit->setFont( TQFont( "Times", 18, TQFont::Bold ) ); + TQPushButton *quit = new TQPushButton( "Quit", this, "quit" ); + quit->setFont( TQFont( "Times", 18, TQFont::Bold ) ); - connect( tquit, SIGNAL(clicked()), qApp, SLOT(tquit()) ); + connect( quit, SIGNAL(clicked()), qApp, SLOT(quit()) ); LCDRange *angle = new LCDRange( this, "angle" ); angle->setRange( 5, 70 ); @@ -43,7 +43,7 @@ MyWidget::MyWidget( TQWidget *parent, const char *name ) TQGridLayout *grid = new TQGridLayout( this, 2, 2, 10 ); //2x2, 10 pixel border - grid->addWidget( tquit, 0, 0 ); + grid->addWidget( quit, 0, 0 ); grid->addWidget( angle, 1, 0, TQt::AlignTop ); grid->addWidget( cannonField, 1, 1 ); grid->setColStretch( 1, 10 ); diff --git a/tutorial/t9/main.cpp b/tutorial/t9/main.cpp index 506b66f9b..cf1862aff 100644 --- a/tutorial/t9/main.cpp +++ b/tutorial/t9/main.cpp @@ -24,10 +24,10 @@ public: MyWidget::MyWidget( TQWidget *parent, const char *name ) : TQWidget( parent, name ) { - TQPushButton *tquit = new TQPushButton( "&Quit", this, "tquit" ); - tquit->setFont( TQFont( "Times", 18, TQFont::Bold ) ); + TQPushButton *quit = new TQPushButton( "&Quit", this, "quit" ); + quit->setFont( TQFont( "Times", 18, TQFont::Bold ) ); - connect( tquit, SIGNAL(clicked()), qApp, SLOT(tquit()) ); + connect( quit, SIGNAL(clicked()), qApp, SLOT(quit()) ); LCDRange *angle = new LCDRange( this, "angle" ); angle->setRange( 5, 70 ); @@ -40,7 +40,7 @@ MyWidget::MyWidget( TQWidget *parent, const char *name ) angle, SLOT(setValue(int)) ); TQGridLayout *grid = new TQGridLayout( this, 2, 2, 10 ); - grid->addWidget( tquit, 0, 0 ); + grid->addWidget( quit, 0, 0 ); grid->addWidget( angle, 1, 0, TQt::AlignTop ); grid->addWidget( cannonField, 1, 1 ); grid->setColStretch( 1, 10 ); |