summaryrefslogtreecommitdiffstats
path: root/doc/html/tutorial1-11.html
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-06-02 23:07:22 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-06-02 23:22:42 +0900
commit8ac0e970e4464d9f8f73c0fb34a178ff135be8c3 (patch)
treeb95884617b9a37accc843676d5d42be4116a3f54 /doc/html/tutorial1-11.html
parent68b81013e8668f50fc18b7e26a520ec93a7a1251 (diff)
downloadtqt-8ac0e970.tar.gz
tqt-8ac0e970.zip
Rename ntqwidget* related files to equivalent tqwidget*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/html/tutorial1-11.html')
-rw-r--r--doc/html/tutorial1-11.html16
1 files changed, 8 insertions, 8 deletions
diff --git a/doc/html/tutorial1-11.html b/doc/html/tutorial1-11.html
index 5538dde55..e4e977a6e 100644
--- a/doc/html/tutorial1-11.html
+++ b/doc/html/tutorial1-11.html
@@ -85,8 +85,8 @@ when the shot was fired.
<p> <pre> #include &lt;math.h&gt;
</pre>
<p> We include the math library because we need the sin() and cos() functions.
-<p> <pre> CannonField::CannonField( <a href="ntqwidget.html">TQWidget</a> *parent, const char *name )
- : <a href="ntqwidget.html">TQWidget</a>( parent, name )
+<p> <pre> CannonField::CannonField( <a href="tqwidget.html">TQWidget</a> *parent, const char *name )
+ : <a href="tqwidget.html">TQWidget</a>( parent, name )
{
ang = 45;
f = 0;
@@ -96,7 +96,7 @@ when the shot was fired.
this, TQ_SLOT(moveShot()) );
shoot_ang = 0;
shoot_f = 0;
- <a href="ntqwidget.html#setPalette">setPalette</a>( TQPalette( TQColor( 250, 250, 200) ) );
+ <a href="tqwidget.html#setPalette">setPalette</a>( TQPalette( TQColor( 250, 250, 200) ) );
}
</pre>
<p> We initialize our new private variables and connect the <a href="ntqtimer.html#timeout">TQTimer::timeout</a>() signal to our moveShot() slot. We'll move the
@@ -125,7 +125,7 @@ cannon angle and force. Finally, we start the timer.
<a name="x2378"></a> autoShootTimer-&gt;<a href="ntqtimer.html#stop">stop</a>();
else
<a name="x2373"></a> r = r.<a href="ntqrect.html#unite">unite</a>( TQRegion( shotR ) );
- <a href="ntqwidget.html#repaint">repaint</a>( r );
+ <a href="tqwidget.html#repaint">repaint</a>( r );
}
</pre>
<p> moveShot() is the slot that moves the shot, called every 50
@@ -143,7 +143,7 @@ shot one step along its trajectory.
stop the timer or we add the new shotRect() to the TQRegion.
<p> Finally, we repaint the TQRegion. This will send a single paint event
for just the one or two rectangles that need updating.
-<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="x2369"></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 );
@@ -208,15 +208,15 @@ integer.
</h3>
<a name="1-3"></a><p>
-<p> <pre> class MyWidget: public <a href="ntqwidget.html">TQWidget</a>
+<p> <pre> class MyWidget: public <a href="tqwidget.html">TQWidget</a>
{
public:
- MyWidget( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name=0 );
+ MyWidget( <a href="tqwidget.html">TQWidget</a> *parent=0, const char *name=0 );
};
</pre>
<p> The only addition is the Shoot button.
<p> <pre> <a href="ntqpushbutton.html">TQPushButton</a> *shoot = new <a href="ntqpushbutton.html">TQPushButton</a>( "&amp;Shoot", this, "shoot" );
- <a name="x2382"></a> shoot-&gt;<a href="ntqwidget.html#setFont">setFont</a>( TQFont( "Times", 18, TQFont::Bold ) );
+ <a name="x2382"></a> shoot-&gt;<a href="tqwidget.html#setFont">setFont</a>( TQFont( "Times", 18, TQFont::Bold ) );
</pre>
<p> In the constructor we create and set up the Shoot button exactly like we
did with the Quit button. Note that the first argument to the constructor