summaryrefslogtreecommitdiffstats
path: root/doc/html/tutorial1-13.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/tutorial1-13.html')
-rw-r--r--doc/html/tutorial1-13.html24
1 files changed, 12 insertions, 12 deletions
diff --git a/doc/html/tutorial1-13.html b/doc/html/tutorial1-13.html
index 6c566c5e4..a56d49fab 100644
--- a/doc/html/tutorial1-13.html
+++ b/doc/html/tutorial1-13.html
@@ -59,14 +59,14 @@ implementation.
</h3>
<a name="1-1"></a><p>
-<p> <pre> #include &lt;<a href="qwidget-h.html">ntqwidget.h</a>&gt;
+<p> <pre> #include &lt;<a href="tqwidget-h.html">tqwidget.h</a>&gt;
class TQSlider;
class TQLabel;
- class LCDRange : public <a href="ntqwidget.html">TQWidget</a>
+ class LCDRange : public <a href="tqwidget.html">TQWidget</a>
</pre>
-<p> We inherit <a href="ntqwidget.html">TQWidget</a> rather than <a href="ntqvbox.html">TQVBox</a>. TQVBox is very easy to use, but
+<p> We inherit <a href="tqwidget.html">TQWidget</a> rather than <a href="ntqvbox.html">TQVBox</a>. TQVBox is very easy to use, but
again it showed its limitations so we switch to the more powerful and
slightly harder to use <a href="qvboxlayout.html">TQVBoxLayout</a>. (As you remember, TQVBoxLayout is
not a widget, it manages one.)
@@ -78,8 +78,8 @@ not a widget, it manages one.)
</pre>
<p> We need to include ntqlayout.h now to get the other layout management
API.
-<p> <pre> LCDRange::LCDRange( <a href="ntqwidget.html">TQWidget</a> *parent, const char *name )
- : <a href="ntqwidget.html">TQWidget</a>( parent, name )
+<p> <pre> LCDRange::LCDRange( <a href="tqwidget.html">TQWidget</a> *parent, const char *name )
+ : <a href="tqwidget.html">TQWidget</a>( parent, name )
</pre>
<p> We inherit TQWidget in the usual way.
<p> The other constructor has the same change. init() is unchanged,
@@ -150,7 +150,7 @@ cannot shoot now.
if ( isShooting() )
autoShootTimer-&gt;<a href="ntqtimer.html#stop">stop</a>();
gameEnded = TRUE;
- <a href="ntqwidget.html#repaint">repaint</a>();
+ <a href="tqwidget.html#repaint">repaint</a>();
}
</pre>
<p> This slot ends the game. It must be called from outside CannonField,
@@ -167,7 +167,7 @@ widget.
if ( isShooting() )
<a name="x2408"></a> autoShootTimer-&gt;<a href="ntqtimer.html#stop">stop</a>();
gameEnded = FALSE;
- <a href="ntqwidget.html#repaint">repaint</a>();
+ <a href="tqwidget.html#repaint">repaint</a>();
emit canShoot( TRUE );
}
</pre>
@@ -176,7 +176,7 @@ We then reset the <tt>gameEnded</tt> variable and repaint the widget.
<p> moveShot() too emits the new canShoot(TRUE) signal at the same time as
either hit() or miss().
<p> Modifications in CannonField::paintEvent():
-<p> <pre> void CannonField::<a href="ntqwidget.html#paintEvent">paintEvent</a>( <a href="qpaintevent.html">TQPaintEvent</a> *e )
+<p> <pre> void CannonField::<a href="tqwidget.html#paintEvent">paintEvent</a>( <a href="qpaintevent.html">TQPaintEvent</a> *e )
{
<a name="x2405"></a> <a href="ntqrect.html">TQRect</a> updateR = e-&gt;<a href="qpaintevent.html#rect">rect</a>();
<a href="ntqpainter.html">TQPainter</a> p( this );
@@ -184,7 +184,7 @@ either hit() or miss().
if ( gameEnded ) {
p.<a href="ntqpainter.html#setPen">setPen</a>( black );
<a name="x2403"></a> p.<a href="ntqpainter.html#setFont">setFont</a>( TQFont( "Courier", 48, TQFont::Bold ) );
- p.<a href="ntqpainter.html#drawText">drawText</a>( <a href="ntqwidget.html#rect">rect</a>(), AlignCenter, "Game Over" );
+ p.<a href="ntqpainter.html#drawText">drawText</a>( <a href="tqwidget.html#rect">rect</a>(), AlignCenter, "Game Over" );
}
</pre>
<p> The paint event has been enhanced to display the text "Game Over" if
@@ -222,11 +222,11 @@ which was last seen as MyWidget.
#include "lcdrange.h"
#include "cannon.h"
- class GameBoard : public <a href="ntqwidget.html">TQWidget</a>
+ class GameBoard : public <a href="tqwidget.html">TQWidget</a>
{
<a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
public:
- GameBoard( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name=0 );
+ GameBoard( <a href="tqwidget.html">TQWidget</a> *parent=0, const char *name=0 );
protected slots:
void fire();
@@ -273,7 +273,7 @@ this class instead.
<p> Notice how easy it is to change the behavior of a program when you are
working with self-contained components.
<p> <pre> <a href="tqobject.html#connect">connect</a>( cannonField, TQ_SIGNAL(canShoot(bool)),
- <a name="x2416"></a> shoot, TQ_SLOT(<a href="ntqwidget.html#setEnabled">setEnabled</a>(bool)) );
+ <a name="x2416"></a> shoot, TQ_SLOT(<a href="tqwidget.html#setEnabled">setEnabled</a>(bool)) );
</pre>
<p> We also use the cannonField's canShoot() signal to enable or disable
the Shoot button appropriately.