diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-06-02 23:07:22 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-06-02 23:22:42 +0900 |
commit | 8ac0e970e4464d9f8f73c0fb34a178ff135be8c3 (patch) | |
tree | b95884617b9a37accc843676d5d42be4116a3f54 /doc/html/tutorial1-10.html | |
parent | 68b81013e8668f50fc18b7e26a520ec93a7a1251 (diff) | |
download | tqt3-8ac0e970e4464d9f8f73c0fb34a178ff135be8c3.tar.gz tqt3-8ac0e970e4464d9f8f73c0fb34a178ff135be8c3.zip |
Rename ntqwidget* related files to equivalent tqwidget*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/html/tutorial1-10.html')
-rw-r--r-- | doc/html/tutorial1-10.html | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/doc/html/tutorial1-10.html b/doc/html/tutorial1-10.html index 6f317fdb4..c1949dd59 100644 --- a/doc/html/tutorial1-10.html +++ b/doc/html/tutorial1-10.html @@ -82,12 +82,12 @@ separate function. <p> <pre> #include <<a href="qpixmap-h.html">ntqpixmap.h</a>> </pre> <p> We include the <a href="ntqpixmap.html">TQPixmap</a> class definition. -<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; - <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> The force (<tt>f</tt>) is initialized to zero. @@ -100,7 +100,7 @@ separate function. if ( ang == degrees ) return; ang = degrees; - <a href="ntqwidget.html#repaint">repaint</a>( cannonRect(), FALSE ); + <a href="tqwidget.html#repaint">repaint</a>( cannonRect(), FALSE ); emit angleChanged( ang ); } </pre> @@ -122,7 +122,7 @@ the drawing a little bit. <p> The implementation of setForce() is quite similar to that of setAngle(). The only difference is that because we don't show the force value, we don't need to repaint the widget. -<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="x2357"></a> if ( !e-><a href="qpaintevent.html#rect">rect</a>().intersects( cannonRect() ) ) return; @@ -165,7 +165,7 @@ bottom, and the code is 100% flicker-free. <p> <pre> TQRect CannonField::cannonRect() const { <a href="ntqrect.html">TQRect</a> r( 0, 0, 50, 50 ); - <a name="x2360"></a> r.<a href="ntqrect.html#moveBottomLeft">moveBottomLeft</a>( <a href="ntqwidget.html#rect">rect</a>().bottomLeft() ); + <a name="x2360"></a> r.<a href="ntqrect.html#moveBottomLeft">moveBottomLeft</a>( <a href="tqwidget.html#rect">rect</a>().bottomLeft() ); return r; } </pre> @@ -173,15 +173,15 @@ bottom, and the code is 100% flicker-free. coordinates. First we create a rectangle with the size 50x50 and then move it so its bottom left corner is equal to the widget's own bottom- left corner. -<p> The <a href="ntqwidget.html#rect">TQWidget::rect</a>() function returns the widget's enclosing +<p> The <a href="tqwidget.html#rect">TQWidget::rect</a>() function returns the widget's enclosing rectangle in the widget's own coordinates (where the top left corner is 0, 0). <p> <h3> <a href="t10-main-cpp.html">t10/main.cpp</a> </h3> <a name="1-3"></a><p> -<p> <pre> MyWidget::MyWidget( <a href="ntqwidget.html">TQWidget</a> *parent, const char *name ) - : <a href="ntqwidget.html">TQWidget</a>( parent, name ) +<p> <pre> MyWidget::MyWidget( <a href="tqwidget.html">TQWidget</a> *parent, const char *name ) + : <a href="tqwidget.html">TQWidget</a>( parent, name ) { </pre> <p> The constructor is mostly the same, but some new bits have been added. |