summaryrefslogtreecommitdiffstats
path: root/examples/tetrix
diff options
context:
space:
mode:
Diffstat (limited to 'examples/tetrix')
-rw-r--r--examples/tetrix/qtetrix.cpp12
-rw-r--r--examples/tetrix/qtetrix.h4
2 files changed, 8 insertions, 8 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();
}
diff --git a/examples/tetrix/qtetrix.h b/examples/tetrix/qtetrix.h
index 36d8bd041..5b39051b0 100644
--- a/examples/tetrix/qtetrix.h
+++ b/examples/tetrix/qtetrix.h
@@ -46,7 +46,7 @@ public:
public slots:
void gameOver();
- void tquit();
+ void quit();
private:
void keyPressEvent( TQKeyEvent *e ) { board->keyPressEvent(e); }
@@ -61,7 +61,7 @@ private:
TQLabel *showLevel;
TQLabel *showLines;
#endif
- TQPushButton *tquitButton;
+ TQPushButton *quitButton;
TQPushButton *startButton;
TQPushButton *pauseButton;
};