diff options
Diffstat (limited to 'examples/tetrix')
-rw-r--r-- | examples/tetrix/qdragapp.cpp | 10 | ||||
-rw-r--r-- | examples/tetrix/qtetrix.cpp | 38 | ||||
-rw-r--r-- | examples/tetrix/qtetrixb.cpp | 2 |
3 files changed, 25 insertions, 25 deletions
diff --git a/examples/tetrix/qdragapp.cpp b/examples/tetrix/qdragapp.cpp index 41fd5eb33..19fc9fec6 100644 --- a/examples/tetrix/qdragapp.cpp +++ b/examples/tetrix/qdragapp.cpp @@ -144,11 +144,11 @@ TQDragger::TQDragger() // menu->insertItem( "Send child home", 4 ); menu->insertItem( "Send all children home", 5 ); - menu->connectItem( 1, this, SLOT(openDropWindow()) ); - menu->connectItem( 2, this, SLOT(killDropWindow()) ); - menu->connectItem( 3, this, SLOT(killAllDropWindows()) ); -// menu->connectItem( 4, this, SLOT(sendChildHome()) ); - menu->connectItem( 5, this, SLOT(sendAllChildrenHome()) ); + menu->connectItem( 1, this, TQ_SLOT(openDropWindow()) ); + menu->connectItem( 2, this, TQ_SLOT(killDropWindow()) ); + menu->connectItem( 3, this, TQ_SLOT(killAllDropWindows()) ); +// menu->connectItem( 4, this, TQ_SLOT(sendChildHome()) ); + menu->connectItem( 5, this, TQ_SLOT(sendAllChildrenHome()) ); } TQDragger::~TQDragger() diff --git a/examples/tetrix/qtetrix.cpp b/examples/tetrix/qtetrix.cpp index bd624b4ab..84941cbec 100644 --- a/examples/tetrix/qtetrix.cpp +++ b/examples/tetrix/qtetrix.cpp @@ -120,28 +120,28 @@ TQTetrix::TQTetrix( TQWidget *parent, const char *name ) startButton->setFocusPolicy( TQWidget::NoFocus ); pauseButton->setFocusPolicy( TQWidget::NoFocus ); - connect( board, SIGNAL(gameOverSignal()), SLOT(gameOver()) ); - connect( board, SIGNAL(drawNextSquareSignal(int,int,TQColor*)), showNext, - SLOT(drawNextSquare(int,int,TQColor*)) ); - connect( showNext, SIGNAL(update()), board, SLOT(updateNext()) ); + connect( board, TQ_SIGNAL(gameOverSignal()), TQ_SLOT(gameOver()) ); + connect( board, TQ_SIGNAL(drawNextSquareSignal(int,int,TQColor*)), showNext, + TQ_SLOT(drawNextSquare(int,int,TQColor*)) ); + connect( showNext, TQ_SIGNAL(update()), board, TQ_SLOT(updateNext()) ); #ifndef TQT_NO_LCDNUMBER - connect( board, SIGNAL(updateScoreSignal(int)), showScore, - SLOT(display(int)) ); - connect( board, SIGNAL(updateLevelSignal(int)), showLevel, - SLOT(display(int))); - connect( board, SIGNAL(updateRemovedSignal(int)), showLines, - SLOT(display(int))); + connect( board, TQ_SIGNAL(updateScoreSignal(int)), showScore, + TQ_SLOT(display(int)) ); + connect( board, TQ_SIGNAL(updateLevelSignal(int)), showLevel, + TQ_SLOT(display(int))); + connect( board, TQ_SIGNAL(updateRemovedSignal(int)), showLines, + TQ_SLOT(display(int))); #else - connect( board, SIGNAL(updateScoreSignal(int)), showScore, - SLOT(setNum(int)) ); - connect( board, SIGNAL(updateLevelSignal(int)), showLevel, - SLOT(setNum(int))); - connect( board, SIGNAL(updateRemovedSignal(int)), showLines, - SLOT(setNum(int))); + connect( board, TQ_SIGNAL(updateScoreSignal(int)), showScore, + TQ_SLOT(setNum(int)) ); + connect( board, TQ_SIGNAL(updateLevelSignal(int)), showLevel, + TQ_SLOT(setNum(int))); + connect( board, TQ_SIGNAL(updateRemovedSignal(int)), showLines, + TQ_SLOT(setNum(int))); #endif - connect( startButton, SIGNAL(clicked()), board, SLOT(start()) ); - connect( quitButton , SIGNAL(clicked()), SLOT(quit())); - connect( pauseButton, SIGNAL(clicked()), board, SLOT(pause()) ); + connect( startButton, TQ_SIGNAL(clicked()), board, TQ_SLOT(start()) ); + connect( quitButton , TQ_SIGNAL(clicked()), TQ_SLOT(quit())); + connect( pauseButton, TQ_SIGNAL(clicked()), board, TQ_SLOT(pause()) ); board->setGeometry( 150, 20, 153, 333 ); showNext->setGeometry( 50, 40, 78, 94 ); diff --git a/examples/tetrix/qtetrixb.cpp b/examples/tetrix/qtetrixb.cpp index fc5816a74..e3df48d70 100644 --- a/examples/tetrix/qtetrixb.cpp +++ b/examples/tetrix/qtetrixb.cpp @@ -21,7 +21,7 @@ TQTetrixBoard::TQTetrixBoard( TQWidget *p, const char *name ) paint = 0; paint_widget = 0; timer = new TQTimer(this); - connect( timer, SIGNAL(timeout()), SLOT(timeout()) ); + connect( timer, TQ_SIGNAL(timeout()), TQ_SLOT(timeout()) ); colors[0].setRgb(200,100,100); colors[1].setRgb(100,200,100); |