summaryrefslogtreecommitdiffstats
path: root/doc/html/tutorial1-12.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/tutorial1-12.html')
-rw-r--r--doc/html/tutorial1-12.html18
1 files changed, 9 insertions, 9 deletions
diff --git a/doc/html/tutorial1-12.html b/doc/html/tutorial1-12.html
index 799a80b74..5f7ee92e8 100644
--- a/doc/html/tutorial1-12.html
+++ b/doc/html/tutorial1-12.html
@@ -171,9 +171,9 @@ hit the target).
</h3>
<a name="1-4"></a><p>
-<p> <pre> #include &lt;<a href="qdatetime-h.html">ntqdatetime.h</a>&gt;
+<p> <pre> #include &lt;<a href="tqdatetime-h.html">tqdatetime.h</a>&gt;
</pre>
-<p> We include the <a href="qdate.html">TQDate</a>, <a href="qtime.html">TQTime</a>, and <a href="ntqdatetime.html">TQDateTime</a> class definitions.
+<p> We include the <a href="tqdate.html">TQDate</a>, <a href="tqtime.html">TQTime</a>, and <a href="tqdatetime.html">TQDateTime</a> class definitions.
<p> <pre> #include &lt;stdlib.h&gt;
</pre>
<p> We include the stdlib library because we need the rand() function.
@@ -189,8 +189,8 @@ repaint() on a hidden widget.
static bool first_time = TRUE;
if ( first_time ) {
first_time = FALSE;
- <a href="qtime.html">TQTime</a> midnight( 0, 0, 0 );
- <a name="x2399"></a><a name="x2398"></a> srand( midnight.<a href="qtime.html#secsTo">secsTo</a>(TQTime::<a href="qtime.html#currentTime">currentTime</a>()) );
+ <a href="tqtime.html">TQTime</a> midnight( 0, 0, 0 );
+ <a name="x2399"></a><a name="x2398"></a> srand( midnight.<a href="tqtime.html#secsTo">secsTo</a>(TQTime::<a href="tqtime.html#currentTime">currentTime</a>()) );
}
<a href="ntqregion.html">TQRegion</a> r( targetRect() );
target = TQPoint( 200 + rand() % 190,
@@ -211,10 +211,10 @@ passed since midnight as a pseudo-random value.
this one is guaranteed to keep its value between calls to the function.
<p> The <tt>if</tt> test will succeed only the first time this function is called
because we set <tt>first_time</tt> to FALSE inside the <tt>if</tt> block.
-<p> Then we create the <a href="qtime.html">TQTime</a> object <tt>midnight</tt>, which represents the time
+<p> Then we create the <a href="tqtime.html">TQTime</a> object <tt>midnight</tt>, which represents the time
00:00:00. Next we fetch the number of seconds from midnight until
-now and use it as a random seed. See the documentation for <a href="qdate.html">TQDate</a>,
-<a href="qtime.html">TQTime</a>, and <a href="ntqdatetime.html">TQDateTime</a> for more information.
+now and use it as a random seed. See the documentation for <a href="tqdate.html">TQDate</a>,
+<a href="tqtime.html">TQTime</a>, and <a href="tqdatetime.html">TQDateTime</a> for more information.
<p> Finally we calculate the target's center point. We keep it within
the rectangle (x=200, y=35, width=190, height=255), (i.e., the
possible x and y values are x = 200..389 and y = 35..289) in a
@@ -232,7 +232,7 @@ the left edge and with x values increasing to the right.
</pre>
<p> This part of the timer event has not changed from the previous chapter.
<p> <pre> if ( shotR.<a href="ntqrect.html#intersects">intersects</a>( targetRect() ) ) {
- <a name="x2400"></a> autoShootTimer-&gt;<a href="ntqtimer.html#stop">stop</a>();
+ <a name="x2400"></a> autoShootTimer-&gt;<a href="tqtimer.html#stop">stop</a>();
emit hit();
</pre>
<p> This <tt>if</tt> statement checks whether the shot rectangle intersects the
@@ -243,7 +243,7 @@ world that a target was destroyed, and return.
CannonField is a component we leave such decisions to the user of the
component.
<p> <pre> <a name="x2397"></a><a name="x2396"></a> } else if ( shotR.<a href="ntqrect.html#x">x</a>() &gt; width() || shotR.<a href="ntqrect.html#y">y</a>() &gt; height() ) {
- autoShootTimer-&gt;<a href="ntqtimer.html#stop">stop</a>();
+ autoShootTimer-&gt;<a href="tqtimer.html#stop">stop</a>();
emit missed();
</pre>
<p> This <tt>if</tt> statement is the same as in the previous chapter, except that