diff options
Diffstat (limited to 'klines/linesboard.cpp')
-rw-r--r-- | klines/linesboard.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/klines/linesboard.cpp b/klines/linesboard.cpp index 81e7eb77..eebcf21e 100644 --- a/klines/linesboard.cpp +++ b/klines/linesboard.cpp @@ -51,15 +51,15 @@ LinesBoard::LinesBoard( BallPainter * abPainter, TQWidget* parent, const char* n bPainter = abPainter; - setFocusPolicy( TQ_NoFocus ); + setFocusPolicy( TQWidget::NoFocus ); setBackgroundColor( gray ); - setMouseTracking( FALSE ); + setMouseTracking( false ); setFixedSize(wHint(), hHint()); timer = new TQTimer(this); - connect( timer, TQT_SIGNAL(timeout()), TQT_SLOT(timerSlot()) ); - timer->start( TIMERCLOCK, FALSE ); + connect( timer, TQ_SIGNAL(timeout()), TQ_SLOT(timerSlot()) ); + timer->start( TIMERCLOCK, false ); } @@ -163,7 +163,7 @@ void LinesBoard::placeBall( ) /*id LinesBoard::doAfterBalls() { erase5Balls(); - repaint(FALSE); + repaint(false); } */ /* @@ -306,7 +306,7 @@ void LinesBoard::moveFocus(int dx, int dy) focusX = (focusX + dx + NUMCELLSW) % NUMCELLSW; focusY = (focusY + dy + NUMCELLSH) % NUMCELLSH; } - repaint(FALSE); + repaint(false); } void LinesBoard::moveLeft() @@ -401,7 +401,7 @@ int LinesBoard::AnimEnd( ) else if ( oldanim == ANIM_BURN ) { emit eraseLine( deleteAnimatedBalls() ); - repaint(FALSE); + repaint(false); if ( nextBallToPlace < BALLSDROP ) { placeBall(); @@ -455,7 +455,7 @@ void LinesBoard::AnimNext() { if ( (direction > 0 && animstep == animmax) || ( direction < 0 && animstep == 0)) direction = -direction; animstep += direction; - repaint(FALSE); + repaint(false); } else { if ( animstep >= animmax ) AnimEnd(); @@ -466,7 +466,7 @@ void LinesBoard::AnimNext() { moveBall(way[animstep].x,way[animstep].y,way[animstep+1].x,way[animstep+1].y); animstep++; animdelaycount = animdelaystart; - repaint( FALSE ); + repaint( false ); } } } @@ -698,7 +698,7 @@ void LinesBoard::undo() AnimEnd(); restoreUndo(); restoreRandomState(); - repaint( FALSE ); + repaint( false ); } void LinesBoard::showDemoText(const TQString &text) @@ -708,7 +708,7 @@ void LinesBoard::showDemoText(const TQString &text) demoLabel = new TQLabel(0, "demoTip", WStyle_StaysOnTop | WStyle_Customize | WStyle_NoBorder | WStyle_Tool | WX11BypassWM ); demoLabel->setMargin(1); demoLabel->setIndent(0); - demoLabel->setAutoMask( FALSE ); + demoLabel->setAutoMask( false ); demoLabel->setFrameStyle( TQFrame::Plain | TQFrame::Box ); demoLabel->setLineWidth( 1 ); demoLabel->setAlignment( AlignHCenter | AlignTop ); @@ -740,15 +740,15 @@ void LinesBoard::demoClick(int x, int y) TQPoint p = cur + i*(dest-cur) / 25; TQCursor::setPos(p); TQApplication::flushX(); - TQTimer::singleShot(80, this, TQT_SLOT(demoClickStep())); - kapp->enter_loop(); + TQTimer::singleShot(80, this, TQ_SLOT(demoClickStep())); + tdeApp->enter_loop(); } TQCursor::setPos(dest); - TQMouseEvent ev(TQEvent::MouseButtonPress, lDest, dest, Qt::LeftButton, Qt::LeftButton); + TQMouseEvent ev(TQEvent::MouseButtonPress, lDest, dest, TQt::LeftButton, TQt::LeftButton); mousePressEvent(&ev); } void LinesBoard::demoClickStep() { - kapp->exit_loop(); + tdeApp->exit_loop(); } |