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 /examples/tetrix/qtetrix.cpp | |
parent | d796c9dd933ab96ec83b9a634feedd5d32e1ba3f (diff) | |
download | tqt3-0f92dd542b65bc910caaf190b7c623aa5158c86a.tar.gz tqt3-0f92dd542b65bc910caaf190b7c623aa5158c86a.zip |
Fix native TQt3 accidental conversion to tquit
Diffstat (limited to 'examples/tetrix/qtetrix.cpp')
-rw-r--r-- | examples/tetrix/qtetrix.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/tetrix/qtetrix.cpp b/examples/tetrix/qtetrix.cpp index 68b49c254..655c2e71a 100644 --- a/examples/tetrix/qtetrix.cpp +++ b/examples/tetrix/qtetrix.cpp @@ -111,12 +111,12 @@ TQTetrix::TQTetrix( TQWidget *parent, const char *name ) showLines->setFrameStyle(TQFrame::Sunken|TQFrame::Box); showLevel->setFrameStyle(TQFrame::Sunken|TQFrame::Box); #endif - tquitButton = new TQPushButton("&Quit",this); + quitButton = new TQPushButton("&Quit",this); startButton = new TQPushButton("&New Game",this); pauseButton = new TQPushButton("&Pause",this); // Don't let the buttons get keyboard focus - tquitButton->setFocusPolicy( TQWidget::NoFocus ); + quitButton->setFocusPolicy( TQWidget::NoFocus ); startButton->setFocusPolicy( TQWidget::NoFocus ); pauseButton->setFocusPolicy( TQWidget::NoFocus ); @@ -140,7 +140,7 @@ TQTetrix::TQTetrix( TQWidget *parent, const char *name ) SLOT(setNum(int))); #endif connect( startButton, SIGNAL(clicked()), board, SLOT(start()) ); - connect( tquitButton , SIGNAL(clicked()), SLOT(tquit())); + connect( quitButton , SIGNAL(clicked()), SLOT(quit())); connect( pauseButton, SIGNAL(clicked()), board, SLOT(pause()) ); board->setGeometry( 150, 20, 153, 333 ); @@ -158,7 +158,7 @@ TQTetrix::TQTetrix( TQWidget *parent, const char *name ) showLines->setNum( 0 ); #endif startButton->setGeometry( 46, 288, 90, 30 ); - tquitButton->setGeometry( 370, 265, 90, 30 ); + quitButton->setGeometry( 370, 265, 90, 30 ); pauseButton->setGeometry( 370, 310, 90, 30 ); board->revealNextPiece(TRUE); @@ -170,7 +170,7 @@ void TQTetrix::gameOver() } -void TQTetrix::tquit() +void TQTetrix::quit() { - qApp->tquit(); + qApp->quit(); } |