diff options
author | Michele Calgaro <[email protected]> | 2024-07-15 19:08:22 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2024-07-18 09:31:41 +0900 |
commit | a30f5359f03c3017fa19a6770fab32d25d22cb87 (patch) | |
tree | cb365dd7a1c3666e3f972c6cad04be7b8e846cba /doc/html/tutorial1-14.html | |
parent | 25ad1267da6916e738a126ff5a9b41cd686adfc6 (diff) | |
download | tqt3-a30f5359f03c3017fa19a6770fab32d25d22cb87.tar.gz tqt3-a30f5359f03c3017fa19a6770fab32d25d22cb87.zip |
Rename graphics class nt* related files to equivalent tq* (part 1)
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'doc/html/tutorial1-14.html')
-rw-r--r-- | doc/html/tutorial1-14.html | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/doc/html/tutorial1-14.html b/doc/html/tutorial1-14.html index c0fcc00fe..962f6866e 100644 --- a/doc/html/tutorial1-14.html +++ b/doc/html/tutorial1-14.html @@ -62,14 +62,14 @@ wall. <p> <p> <pre> protected: - void paintEvent( <a href="qpaintevent.html">TQPaintEvent</a> * ); + void paintEvent( <a href="tqpaintevent.html">TQPaintEvent</a> * ); void mousePressEvent( <a href="qmouseevent.html">TQMouseEvent</a> * ); void mouseMoveEvent( <a href="qmouseevent.html">TQMouseEvent</a> * ); void mouseReleaseEvent( <a href="qmouseevent.html">TQMouseEvent</a> * ); </pre> <p> In addition to the familiar event handlers, CannonField implements three mouse event handlers. The names say it all. -<p> <pre> void paintBarrier( <a href="ntqpainter.html">TQPainter</a> * ); +<p> <pre> void paintBarrier( <a href="tqpainter.html">TQPainter</a> * ); </pre> <p> This private function paints the barrier wall. <p> <pre> <a href="ntqrect.html">TQRect</a> barrierRect() const; @@ -154,11 +154,11 @@ longer pressed. </pre> <p> paintBarrier() does the same sort of thing as paintShot(), paintTarget(), and paintCannon(). -<p> <pre> void CannonField::paintBarrier( <a href="ntqpainter.html">TQPainter</a> *p ) +<p> <pre> void CannonField::paintBarrier( <a href="tqpainter.html">TQPainter</a> *p ) { - p-><a href="ntqpainter.html#setBrush">setBrush</a>( yellow ); - p-><a href="ntqpainter.html#setPen">setPen</a>( black ); - p-><a href="ntqpainter.html#drawRect">drawRect</a>( barrierRect() ); + p-><a href="tqpainter.html#setBrush">setBrush</a>( yellow ); + p-><a href="tqpainter.html#setPen">setPen</a>( black ); + p-><a href="tqpainter.html#drawRect">drawRect</a>( barrierRect() ); } </pre> <p> This private function paints the barrier as a rectangle filled with @@ -182,9 +182,9 @@ the bottom edge of the barrier to the bottom edge of the widget. <p> This function returns TRUE if the point is in the barrel; otherwise it returns FALSE. <p> Here we use the class <a href="ntqwmatrix.html">TQWMatrix</a>. It is defined in the header file -ntqwmatrix.h, which is included by ntqpainter.h. +ntqwmatrix.h, which is included by tqpainter.h. <p> <a href="ntqwmatrix.html">TQWMatrix</a> defines a coordinate system mapping. It can perform the same -transformations as the <a href="ntqpainter.html">TQPainter</a>. +transformations as the <a href="tqpainter.html">TQPainter</a>. <p> Here we perform the same transformation steps as we do when drawing the barrel in the paintCannon() function. First we translate the coordinate system and then we rotate it. |