summaryrefslogtreecommitdiffstats
path: root/tutorial/t14/cannon.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tutorial/t14/cannon.cpp')
-rw-r--r--tutorial/t14/cannon.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tutorial/t14/cannon.cpp b/tutorial/t14/cannon.cpp
index d181f5b30..37bc274e6 100644
--- a/tutorial/t14/cannon.cpp
+++ b/tutorial/t14/cannon.cpp
@@ -146,7 +146,7 @@ void CannonField::mouseMoveEvent( TQMouseEvent *e )
if ( pnt.y() >= height() )
pnt.setY( height() - 1 );
double rad = atan(((double)rect().bottom()-pnt.y())/pnt.x());
- setAngle( qRound ( rad*180/3.14159265 ) );
+ setAngle( tqRound ( rad*180/3.14159265 ) );
}
@@ -245,7 +245,7 @@ TQRect CannonField::shotRect() const
double y = y0 + vely*time - 0.5*gravity*time*time;
TQRect r = TQRect( 0, 0, 6, 6 );
- r.moveCenter( TQPoint( qRound(x), height() - 1 - qRound(y) ) );
+ r.moveCenter( TQPoint( tqRound(x), height() - 1 - tqRound(y) ) );
return r;
}