diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-07-15 19:08:22 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-07-18 09:31:41 +0900 |
commit | a30f5359f03c3017fa19a6770fab32d25d22cb87 (patch) | |
tree | cb365dd7a1c3666e3f972c6cad04be7b8e846cba /doc/html/aclock-example.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 <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/html/aclock-example.html')
-rw-r--r-- | doc/html/aclock-example.html | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/doc/html/aclock-example.html b/doc/html/aclock-example.html index 06360b92c..e0f5d3839 100644 --- a/doc/html/aclock-example.html +++ b/doc/html/aclock-example.html @@ -62,10 +62,10 @@ public: protected: void updateMask(); - 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 drawClock( <a href="ntqpainter.html">TQPainter</a>* ); + void drawClock( <a href="tqpainter.html">TQPainter</a>* ); private slots: void timeout(); @@ -97,7 +97,7 @@ private: #include "aclock.h" #include <<a href="tqtimer-h.html">tqtimer.h</a>> -#include <<a href="qpainter-h.html">ntqpainter.h</a>> +#include <<a href="tqpainter-h.html">tqpainter.h</a>> #include <<a href="tqbitmap-h.html">tqbitmap.h</a>> // @@ -158,12 +158,12 @@ void <a name="f386"></a>AnalogClock::timeout() } -void AnalogClock::<a href="tqwidget.html#paintEvent">paintEvent</a>( <a href="qpaintevent.html">TQPaintEvent</a> * ) +void AnalogClock::<a href="tqwidget.html#paintEvent">paintEvent</a>( <a href="tqpaintevent.html">TQPaintEvent</a> * ) { if ( <a href="tqwidget.html#autoMask">autoMask</a>() ) return; - <a href="ntqpainter.html">TQPainter</a> paint( this ); -<a name="x1190"></a> paint.<a href="ntqpainter.html#setBrush">setBrush</a>( <a href="tqwidget.html#colorGroup">colorGroup</a>().foreground() ); + <a href="tqpainter.html">TQPainter</a> paint( this ); +<a name="x1190"></a> paint.<a href="tqpainter.html#setBrush">setBrush</a>( <a href="tqwidget.html#colorGroup">colorGroup</a>().foreground() ); drawClock( &paint ); } @@ -175,14 +175,14 @@ void AnalogClock::updateMask() // paint clock mask <a href="tqbitmap.html">TQBitmap</a> bm( <a href="tqwidget.html#size">size</a>() ); bm.<a href="ntqpixmap.html#fill">fill</a>( color0 ); //transparent - <a href="ntqpainter.html">TQPainter</a> paint; -<a name="x1183"></a> paint.<a href="ntqpainter.html#begin">begin</a>( &bm, this ); - paint.<a href="ntqpainter.html#setBrush">setBrush</a>( color1 ); // use non-transparent color - paint.<a href="ntqpainter.html#setPen">setPen</a>( color1 ); + <a href="tqpainter.html">TQPainter</a> paint; +<a name="x1183"></a> paint.<a href="tqpainter.html#begin">begin</a>( &bm, this ); + paint.<a href="tqpainter.html#setBrush">setBrush</a>( color1 ); // use non-transparent color + paint.<a href="tqpainter.html#setPen">setPen</a>( color1 ); drawClock( &paint ); -<a name="x1186"></a> paint.<a href="ntqpainter.html#end">end</a>(); +<a name="x1186"></a> paint.<a href="tqpainter.html#end">end</a>(); <a href="tqwidget.html#setMask">setMask</a>( bm ); } @@ -191,37 +191,37 @@ void AnalogClock::updateMask() // paint clock mask // the a centered square, as big as possible. The painter's pen and // brush colors are used. // -void <a name="f387"></a>AnalogClock::drawClock( <a href="ntqpainter.html">TQPainter</a> *paint ) +void <a name="f387"></a>AnalogClock::drawClock( <a href="tqpainter.html">TQPainter</a> *paint ) { -<a name="x1189"></a> paint-><a href="ntqpainter.html#save">save</a>(); +<a name="x1189"></a> paint-><a href="tqpainter.html#save">save</a>(); -<a name="x1193"></a> paint-><a href="ntqpainter.html#setWindow">setWindow</a>( -500,-500, 1000,1000 ); +<a name="x1193"></a> paint-><a href="tqpainter.html#setWindow">setWindow</a>( -500,-500, 1000,1000 ); -<a name="x1194"></a> <a href="ntqrect.html">TQRect</a> v = paint-><a href="ntqpainter.html#viewport">viewport</a>(); +<a name="x1194"></a> <a href="ntqrect.html">TQRect</a> v = paint-><a href="tqpainter.html#viewport">viewport</a>(); int d = TQMIN( v.<a href="ntqrect.html#width">width</a>(), v.<a href="ntqrect.html#height">height</a>() ); -<a name="x1198"></a><a name="x1192"></a> paint-><a href="ntqpainter.html#setViewport">setViewport</a>( v.<a href="ntqrect.html#left">left</a>() + (v.<a href="ntqrect.html#width">width</a>()-d)/2, +<a name="x1198"></a><a name="x1192"></a> paint-><a href="tqpainter.html#setViewport">setViewport</a>( v.<a href="ntqrect.html#left">left</a>() + (v.<a href="ntqrect.html#width">width</a>()-d)/2, <a name="x1199"></a> v.<a href="ntqrect.html#top">top</a>() + (v.<a href="ntqrect.html#height">height</a>()-d)/2, d, d ); <a href="ntqpointarray.html">TQPointArray</a> pts; - paint-><a href="ntqpainter.html#save">save</a>(); -<a name="x1188"></a> paint-><a href="ntqpainter.html#rotate">rotate</a>( 30*(time.hour()%12-3) + time.minute()/2 ); + paint-><a href="tqpainter.html#save">save</a>(); +<a name="x1188"></a> paint-><a href="tqpainter.html#rotate">rotate</a>( 30*(time.hour()%12-3) + time.minute()/2 ); <a name="x1196"></a> pts.setPoints( 4, -20,0, 0,-20, 300,0, 0,20 ); -<a name="x1184"></a> paint-><a href="ntqpainter.html#drawConvexPolygon">drawConvexPolygon</a>( pts ); -<a name="x1187"></a> paint-><a href="ntqpainter.html#restore">restore</a>(); +<a name="x1184"></a> paint-><a href="tqpainter.html#drawConvexPolygon">drawConvexPolygon</a>( pts ); +<a name="x1187"></a> paint-><a href="tqpainter.html#restore">restore</a>(); - paint-><a href="ntqpainter.html#save">save</a>(); - paint-><a href="ntqpainter.html#rotate">rotate</a>( (time.minute()-15)*6 ); + paint-><a href="tqpainter.html#save">save</a>(); + paint-><a href="tqpainter.html#rotate">rotate</a>( (time.minute()-15)*6 ); pts.setPoints( 4, -10,0, 0,-10, 400,0, 0,10 ); - paint-><a href="ntqpainter.html#drawConvexPolygon">drawConvexPolygon</a>( pts ); - paint-><a href="ntqpainter.html#restore">restore</a>(); + paint-><a href="tqpainter.html#drawConvexPolygon">drawConvexPolygon</a>( pts ); + paint-><a href="tqpainter.html#restore">restore</a>(); for ( int i=0; i<12; i++ ) { -<a name="x1185"></a> paint-><a href="ntqpainter.html#drawLine">drawLine</a>( 440,0, 460,0 ); - paint-><a href="ntqpainter.html#rotate">rotate</a>( 30 ); +<a name="x1185"></a> paint-><a href="tqpainter.html#drawLine">drawLine</a>( 440,0, 460,0 ); + paint-><a href="tqpainter.html#rotate">rotate</a>( 30 ); } - paint-><a href="ntqpainter.html#restore">restore</a>(); + paint-><a href="tqpainter.html#restore">restore</a>(); } |