diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-06-27 21:53:17 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-06-29 13:21:04 +0900 |
commit | 2cbcca0db1343e1c40e52af729a5eb34ca8a7e37 (patch) | |
tree | 065c9e97d5bd9eb3d9869427b44acdd571ba0cc1 /doc/html/t11-cannon-cpp.html | |
parent | a09a6bc05e3f64c27e7c84dd768c7720fdf41136 (diff) | |
download | tqt-2cbcca0d.tar.gz tqt-2cbcca0d.zip |
Rename date and time nt* related files to equivalent tq*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/html/t11-cannon-cpp.html')
-rw-r--r-- | doc/html/t11-cannon-cpp.html | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/doc/html/t11-cannon-cpp.html b/doc/html/t11-cannon-cpp.html index 96e7a0545..86c56baf7 100644 --- a/doc/html/t11-cannon-cpp.html +++ b/doc/html/t11-cannon-cpp.html @@ -39,7 +39,7 @@ body { background: #ffffff; color: black; } ****************************************************************/ #include "cannon.h" -#include <<a href="qtimer-h.html">ntqtimer.h</a>> +#include <<a href="tqtimer-h.html">tqtimer.h</a>> #include <<a href="qpainter-h.html">ntqpainter.h</a>> #include <<a href="qpixmap-h.html">ntqpixmap.h</a>> @@ -52,8 +52,8 @@ body { background: #ffffff; color: black; } ang = 45; f = 0; timerCount = 0; - autoShootTimer = new <a href="ntqtimer.html">TQTimer</a>( this, "movement handler" ); - <a href="tqobject.html#connect">connect</a>( autoShootTimer, TQ_SIGNAL(<a href="ntqtimer.html#timeout">timeout</a>()), + autoShootTimer = new <a href="tqtimer.html">TQTimer</a>( this, "movement handler" ); + <a href="tqobject.html#connect">connect</a>( autoShootTimer, TQ_SIGNAL(<a href="tqtimer.html#timeout">timeout</a>()), this, TQ_SLOT(moveShot()) ); shoot_ang = 0; shoot_f = 0; @@ -88,12 +88,12 @@ void <a name="f59"></a>CannonField::setForce( int newton ) void <a name="f60"></a>CannonField::shoot() { - if ( autoShootTimer-><a href="ntqtimer.html#isActive">isActive</a>() ) + if ( autoShootTimer-><a href="tqtimer.html#isActive">isActive</a>() ) return; timerCount = 0; shoot_ang = ang; shoot_f = f; - autoShootTimer-><a href="ntqtimer.html#start">start</a>( 50 ); + autoShootTimer-><a href="tqtimer.html#start">start</a>( 50 ); } @@ -105,7 +105,7 @@ void <a name="f61"></a>CannonField::moveShot() <a href="ntqrect.html">TQRect</a> shotR = shotRect(); if ( shotR.<a href="ntqrect.html#x">x</a>() > width() || shotR.<a href="ntqrect.html#y">y</a>() > height() ) - autoShootTimer-><a href="ntqtimer.html#stop">stop</a>(); + autoShootTimer-><a href="tqtimer.html#stop">stop</a>(); else r = r.<a href="ntqrect.html#unite">unite</a>( TQRegion( shotR ) ); <a href="tqwidget.html#repaint">repaint</a>( r ); @@ -119,7 +119,7 @@ void CannonField::<a href="tqwidget.html#paintEvent">paintEvent</a>( <a href="qp if ( updateR.<a href="ntqrect.html#intersects">intersects</a>( cannonRect() ) ) paintCannon( &p ); - if ( autoShootTimer-><a href="ntqtimer.html#isActive">isActive</a>() && + if ( autoShootTimer-><a href="tqtimer.html#isActive">isActive</a>() && updateR.<a href="ntqrect.html#intersects">intersects</a>( shotRect() ) ) paintShot( &p ); } |